+ Reply to Thread
Results 1 to 2 of 2

How do I retain leading zeros in a cell when I combine the values of two cells with =A&C

Hybrid View

  1. #1
    Registered User
    Join Date
    10-24-2012
    Location
    Ireland
    MS-Off Ver
    Excel 2003
    Posts
    1

    Post How do I retain leading zeros in a cell when I combine the values of two cells with =A&C

    Hi,

    I have managed to retain leading zeros in a cell by formatting the cell and selecting Number and Custom and adding the maximum number of zeros I want to have in front of the number in the cell i.e. 000002.
    I want to have another cell in the spread sheet which contains the value 35394000002 using the formula =A24&B24.
    When I use this formula I get 353942. How can I retain these zeros?

    Thanks in advance.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,415

    Re: How do I retain leading zeros in a cell when I combine the values of two cells with =A

    =TEXT(A24,"000000")&TEXT(B24,"000000")


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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