+ Reply to Thread
Results 1 to 8 of 8

Format Numbers

  1. #1
    Registered User
    Join Date
    07-02-2005
    Posts
    53

    Format Numbers

    hi i am trying to obtain numbers only

    for example:
    44-566 = 44566
    23_65 = 2365

    is there such a function? thanks.

    ernest

  2. #2
    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 ernestgoh
    hi i am trying to obtain numbers only

    for example:
    44-566 = 44566
    23_65 = 2365

    is there such a function? thanks.

    ernest
    Hi ernestgoh,

    Try this formula

    =CONCATENATE(LEFT(A1,2),RIGHT(A1,3))*1

    this assumes it is always 2 characters left, 3 characters right, adapt to suit

    oldchippy

  3. #3
    Registered User
    Join Date
    07-02-2005
    Posts
    53
    Quote Originally Posted by oldchippy
    Hi ernestgoh,

    Try this formula

    =CONCATENATE(LEFT(A1,2),RIGHT(A1,3))*1

    this assumes it is always 2 characters left, 3 characters right, adapt to suit

    oldchippy
    hi oldchippy,

    thanks for your response. trouble is the format is not fixed. thanks again!

    ernest

  4. #4
    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 ernestgoh
    hi oldchippy,

    thanks for your response. trouble is the format is not fixed. thanks again!

    ernest
    Hi ernestgoh,

    It's never simply is it? Try this

    =CONCATENATE(LEFT(A1,SEARCH("-",A1,1)-1),RIGHT(A1,SEARCH("-",A1,1)-1))*1

    This will put it into number format.

    oldchippy

  5. #5
    Registered User
    Join Date
    07-02-2005
    Posts
    53
    Quote Originally Posted by oldchippy
    Hi ernestgoh,

    It's never simply is it? Try this

    =CONCATENATE(LEFT(A1,SEARCH("-",A1,1)-1),RIGHT(A1,SEARCH("-",A1,1)-1))*1

    This will put it into number format.

    oldchippy
    still doesn't really work. would you know a function that can count how many characters it has?

    for example,
    45_674 = 6 characters
    123-456 = 7 characters

    thanks again for trying! ernest

  6. #6
    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 ernestgoh
    still doesn't really work. would you know a function that can count how many characters it has?

    for example,
    45_674 = 6 characters
    123-456 = 7 characters

    thanks again for trying! ernest
    Very sorry ernestgoh,

    this one does hopefully, it's getting late in the day, brain failing!

    =CONCATENATE(LEFT(A1,SEARCH("-",A1,1)-1),MID(A1,SEARCH("-",A1,1)+1,LEN(A1)))*1

    oldchippy

  7. #7
    Registered User
    Join Date
    07-02-2005
    Posts
    53
    Quote Originally Posted by oldchippy
    Very sorry ernestgoh,

    this one does hopefully, it's getting late in the day, brain failing!

    =CONCATENATE(LEFT(A1,SEARCH("-",A1,1)-1),MID(A1,SEARCH("-",A1,1)+1,LEN(A1)))*1

    oldchippy
    hey youngchippy!

    it works a treat!! thanks for all your help.

    ernest

  8. #8
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    We got there in the end - thanks for the feedback

+ 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