+ Reply to Thread
Results 1 to 7 of 7

change data in a cell

  1. #1
    Forum Contributor
    Join Date
    08-10-2006
    Posts
    723

    change data in a cell

    hi,

    I have a spread sheet that looks like this
    TOP/BASE/SHELF 364X445
    TOP/BASE/SHELF 364X445
    TOP/BASE/SHELF 364X445
    TOP/BASE/SHELF 764X445
    TOP/BASE/SHELF 764X445
    TOP/BASE/SHELF 764X445
    TOP/BASE 764X499
    TOP/BASE 764X499
    TOP/BASE 764X499
    FIXED SHELF 264X304
    FIXED SHELF 264X304
    364X448 INT FIXED SHELF
    364X448 INT FIXED SHELF
    364X448 INT FIXED SHELF
    470X2600 SHELF
    470X2600 SHELF
    470X2600 SHELF

    I would like to have all the descriptions first the all the numbers at the back which includes the x. the sixe of the text could vary

    thanks

    steve

  2. #2
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by stevekirk
    hi,

    I have a spread sheet that looks like this
    TOP/BASE/SHELF 364X445
    TOP/BASE/SHELF 364X445
    TOP/BASE/SHELF 364X445
    TOP/BASE/SHELF 764X445
    TOP/BASE/SHELF 764X445
    TOP/BASE/SHELF 764X445
    TOP/BASE 764X499
    TOP/BASE 764X499
    TOP/BASE 764X499
    FIXED SHELF 264X304
    FIXED SHELF 264X304
    364X448 INT FIXED SHELF
    364X448 INT FIXED SHELF
    364X448 INT FIXED SHELF
    470X2600 SHELF
    470X2600 SHELF
    470X2600 SHELF

    I would like to have all the descriptions first the all the numbers at the back which includes the x. the sixe of the text could vary

    thanks

    steve
    I suppose that your data is in col A and starts from cell A1
    put in B1 and copy it down

    =IF(LEN(IF(ISNUMBER(MID(A1,1,2)*1),MID(A1,1,FIND(" ",A1)-1),A1))=LEN(IF(LEN(A1)=LEN(IF(ISNUMBER(MID(A1,1,2)*1),MID(A1,1,FIND(" ",A1)-1),A1)),A1,RIGHT(A1,LEN(A1)-LEN(IF(ISNUMBER(MID(A1,1,2)*1),MID(A1,1,FIND(" ",A1)-1),A1))-1))),IF(ISNUMBER(MID(A1,1,2)*1),MID(A1,1,FIND(" ",A1)-1),A1),IF(LEN(A1)=LEN(IF(ISNUMBER(MID(A1,1,2)*1),MID(A1,1,FIND(" ",A1)-1),A1)),A1,RIGHT(A1,LEN(A1)-LEN(IF(ISNUMBER(MID(A1,1,2)*1),MID(A1,1,FIND(" ",A1)-1),A1))-1))&" "&IF(ISNUMBER(MID(A1,1,2)*1),MID(A1,1,FIND(" ",A1)-1),A1))

    let me know about results.

    Regards.

  3. #3
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    If your data is not in col A then copy this function from here and paste it in cell B1. then copy cell B1 and paste it to the right cell from where your data starts.

    Regards.

  4. #4
    Forum Contributor
    Join Date
    08-10-2006
    Posts
    723

    change data in a cell

    hi,

    if the numbers are at the front
    i get an NAME result

    steve

  5. #5
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Thumbs up

    Quote Originally Posted by stevekirk
    hi,

    if the numbers are at the front
    i get an NAME result

    steve
    Hi steve,

    Try this formula, move data down to start in A2, then put this in B2 and copy down

    =IF(IF(ISNUMBER(MID(LEFT(A2,1),1,1)*1),LEFT(A2,1)*1,"")="",A2,IF(ISNUMBER(IF(ISNUMBER(MID(LEFT(A2,1),1,1)*1),LEFT(A2,1)*1,"")),RIGHT(A2,LEN(A2)-SEARCH(" ",A2,1))&" "&LEFT(A2,8),""))

    Let me know if this is OK

    oldchippy

  6. #6
    Forum Contributor
    Join Date
    08-10-2006
    Posts
    723

    change data in a cell

    hi
    all ok thanks
    one problem is shown below.
    if no space between the number and string you get VALUE .if youm then put hte space in you get the firstletter at the back


    1234x1 ewqeqw ewqeqw 1234x1 e
    1234x1ewqeqw #VALUE!

    but there was only ten like this

    thanks for all your help

    steve

  7. #7
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Thumbs up

    Quote Originally Posted by stevekirk
    hi
    all ok thanks
    one problem is shown below.
    if no space between the number and string you get VALUE .if youm then put hte space in you get the firstletter at the back


    1234x1 ewqeqw ewqeqw 1234x1 e
    1234x1ewqeqw #VALUE!

    but there was only ten like this

    thanks for all your help

    steve
    Glad to be of help steve, if it's only ten you had the easy bit.

+ Reply to Thread

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