+ Reply to Thread
Results 1 to 5 of 5

Formatting a Cell

  1. #1
    Registered User
    Join Date
    10-22-2007
    Posts
    6

    Formatting a Cell

    Hello,

    I have a number that I need to get into a certain format and I cannot figure out how to do this. Here is my problem. I have Column A that is formatted as such 24010-B05. What this represents is a general ledger number and a branch number at the end. Is there any way to take this number and put it into this format: 24010-B05 = 524010. Basically I need just the last number to be in front of the 5 digit number to make it a 6 digit number. Thanks for all your help. This site is great.

  2. #2
    Forum Contributor
    Join Date
    10-17-2007
    Location
    Washington, DC
    Posts
    103
    =int(concatenate(right(a1,1),left(a1,5)))

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

    =CONCATENATE(RIGHT(A1,1),LEFT(A1,5))*1

    or even

    =(RIGHT(A1,1)&LEFT(A1,5))*1
    Last edited by oldchippy; 11-02-2007 at 10:15 AM.
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  4. #4
    Registered User
    Join Date
    10-22-2007
    Posts
    6
    Thanks guys that worked perfect.

  5. #5
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,676
    Try

    =MID(A1&A1,9,6)

+ 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