+ Reply to Thread
Results 1 to 7 of 7

Concatenating numbers

  1. #1
    Registered User
    Join Date
    09-23-2022
    Location
    Houston, Texas
    MS-Off Ver
    365
    Posts
    72

    Concatenating numbers

    when i use the concatenate formula to combine text and numbers, how can i make it show a zero in front of the numbers 1-9.

    in other words,
    cell A1 contains ABC, cell B1 contains 1 (even though i type in 01)

    cell C1 contains =concatenate(A1,"-",B1) resulting in ABC-1

    However, I would like the end result to be ABC-01, with the zero in front of the one. How can i do this?

  2. #2
    Registered User
    Join Date
    07-05-2023
    Location
    India
    MS-Off Ver
    office 365
    Posts
    2

    Re: Concatenating numbers

    Use the below one

    =concatenate(A1,"0",B1) resulting in ABC01

  3. #3
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,928

    Re: Concatenating numbers

    Try this,
    =CONCATENATE(A1,"-",RIGHT("00"&B1,2))

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Concatenating numbers

    Here are two other optins without CONCATENATE:

    Please try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    or
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-23-2022
    Location
    Houston, Texas
    MS-Off Ver
    365
    Posts
    72

    Re: Concatenating numbers

    Awesome guys, thank you all for the feedback!

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Concatenating numbers

    You are Welcome.
    Thanks for your feedback, Glad to have helped. .

    If you haven't already, please consider adding reputation to all helpers you think they deserve.
    In that case please click * Add Reputation left below their answers.

  7. #7
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,928

    Re: Concatenating numbers

    You are welcome.
    -----------------------------------
    If that takes care of your original question, please click on "Thread Tools" from the menu link above and mark this thread as SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Concatenating numbers with leading 0s
    By Wintchase in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-07-2019, 04:11 PM
  2. Concatenating ID Numbers with a Formula
    By Gooliath in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-20-2019, 10:06 AM
  3. Concatenating two numbers
    By BWellman in forum Excel General
    Replies: 3
    Last Post: 07-25-2016, 10:49 AM
  4. Need formula for concatenating and rounding up numbers into one cell
    By Yeager in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-11-2013, 03:56 PM
  5. Concatenating strings and numbers
    By jonsch in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-27-2006, 11:31 PM
  6. Concatenating and transposing a row of numbers
    By Colin Hayes in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 07-15-2006, 04:00 PM
  7. [SOLVED] concatenating numbers
    By Mig in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-06-2005, 09:06 PM

Tags for this Thread

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