Results 1 to 9 of 9

Replace Function problem

Threaded View

  1. #1
    Forum Contributor
    Join Date
    04-11-2008
    Location
    Malaysia
    MS-Off Ver
    Office for Mac 2016
    Posts
    138

    Arrow Replace Function problem

    Hi guys again...Another small problem im face..hehe

    I have this set of number..

    987654.

    What im trying to do is this..I read this number and check for the first number with the 2nd number. If its greater then i will swap it. Im trying to do this so that my number can be rearranged as 456789.

    =IF(MID(A1,1,1)>MID(A,2,1),REPLACE(A1,1,1,MID(A1,2,1)),0)
    As you see i tryied this code can replace the 2nd number to the first and i get 887654. How can i put 2 replace statements at the same time so that i can swap the 98 to 89...

    Kinda confused...Anyone care to help out..
    Last edited by newbie1234; 12-17-2008 at 12:23 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1