combining formulas

Megan F 20 Reputation points
2025-11-24T13:36:07.6766667+00:00

Hello,

I would like to combine two different formulas together but I am not sure how to do so. With the first formula I am pulling information from multiple cells on a different tab and combing them into one cell. I need to combine this with a second formula that will stop leading zeroes from disappearing from my data. How can I do this?

First Formula:

=CONCATENATE('Converter Tab'!A16&"-"&'Converter Tab'!B16&"-"&'Converter Tab'!C16&"-"&'Converter Tab'!D16&"-"&'Converter Tab'!E16)

Second Formula:

=TEXT(A14, "00")&"-"&TEXT(B14, "0")&"-"&TEXT(C14, "0")&"-"&TEXT(D14, "00000")&"-"&TEXT(E14, "0000")

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments
{count} votes

Answer accepted by question author
  1. Q&A Assist
    2025-11-24T13:36:15.98+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To combine your two formulas while ensuring that leading zeros are preserved, you can modify your first formula to incorporate the TEXT function from your second formula. Here’s how you can do it:

    =TEXT('Converter Tab'!A16, "00") & "-" & TEXT('Converter Tab'!B16, "0") & "-" & TEXT('Converter Tab'!C16, "0") & "-" & TEXT('Converter Tab'!D16, "00000") & "-" & TEXT('Converter Tab'!E16, "0000")
    

    This formula will concatenate the values from the specified cells in the 'Converter Tab', while applying the TEXT function to each cell to format them with leading zeros as specified.

    Make sure to replace A16, B16, C16, D16, and E16 with the appropriate cell references if they differ in your actual spreadsheet.


    References:

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.