+ Reply to Thread
Results 1 to 13 of 13

Excel 2007 : join cells with 00 values

  1. #1
    Registered User
    Join Date
    06-16-2012
    Location
    Athens, Greece
    MS-Off Ver
    Excel 2007
    Posts
    7

    join cells with 00 values

    hello,

    i would like to join 3 cells with 00 values

    for example:
    A1=6050020
    B1=00
    C1=09

    the result that i want to have is a 11 digit number 60500200009

    how can i merge these three cells into one?

    i tried ampersand but the first zero of B1 and C1 cells is not recognizable.

    i would appreciate it if you could help me with this.

    thank you!

  2. #2
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: join cells with 00 values

    Are the cells formatted at text?
    Does the number in B1 show as 00 or 0?
    Last edited by Spencer101; 06-16-2012 at 10:53 AM.
    If I've been of help, please hit the star

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: join cells with 00 values

    Try

    =TEXT(A1,"000000#")&TEXT(B1,"0#")&TEXT(C1,"0#)

    for numeric result

    =(TEXT(A1,"000000#")&TEXT(B1,"0#")&TEXT(C1,"0#))*1

    actually just this: =(A1&TEXT(B1,"0#")&TEXT(C1,"0#"))*1
    and format to show lead 0's if wanted
    Last edited by Cutter; 06-16-2012 at 10:54 AM.

  4. #4
    Registered User
    Join Date
    06-16-2012
    Location
    Athens, Greece
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: join cells with 00 values

    the number in B1 showed as 0 but i formatted as custom 00

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: join cells with 00 values

    =text(a1,"0000000")&text(b1,"00")&text(c1,"00")
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: join cells with 00 values

    And the result of trying my suggestion is......................??

  7. #7
    Registered User
    Join Date
    06-16-2012
    Location
    Athens, Greece
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: join cells with 00 values

    i'm trying to make this work but the result is 6050020009
    missing the the first 0 of B1 cell
    i tried to add another 0 to your formula =(A1&TEXT(B1,"00#")&TEXT(C1,"0#"))*1 and it worked
    but when i' m trying to drag it down to next row i don;t get the desired result.

    here are the next rows and cells

    6050020 00 09
    9000028 00 00
    9000028 02 00
    9000028 04 00
    9000028 06 00
    9000028 10 00

  8. #8
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: join cells with 00 values

    Sorry, my mistake, use this

    =(A1&TEXT(B1,"00")&TEXT(C1,"00"))*1

    as suggested by martindwilson in post #5

  9. #9
    Registered User
    Join Date
    06-16-2012
    Location
    Athens, Greece
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: join cells with 00 values

    ok thank you!!

    the problem has been solved!!

  10. #10
    Registered User
    Join Date
    06-16-2012
    Location
    Athens, Greece
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: join cells with 00 values

    ok thank you!!

    problem solved!

  11. #11
    Registered User
    Join Date
    06-16-2012
    Location
    Athens, Greece
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: join cells with 00 values

    thank you so much!!

  12. #12
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: join cells with 00 values

    You're welcome so much. Here's hoping your elections tomorrow can solve your country's problems.

  13. #13
    Registered User
    Join Date
    06-16-2012
    Location
    Athens, Greece
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: join cells with 00 values

    Quote Originally Posted by Cutter View Post
    You're welcome so much. Here's hoping your elections tomorrow can solve your country's problems.
    thank you! we hope also!

+ 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