# Combining text and functions in excel

So let's add the padding back using the TEXT function , which will let us apply a number format inside a formula. I just need to wrap the existing formula in the TEXT function, and use "" as the number format.

To do that, I'll just hard-code the text "Item " at the start of the formula, then use the ampersand to join the text to the padded number we already created. When you face a problem like this, the key is to work in small steps, and verify your progress as you go.

The final result may look complex, but in most cases each piece of the formula is doing something quite simple. You can use the TEXT function to embed formatted numbers inside text.

View the discussion thread. Skip to main content. This video comes from our online video training for Excel. How to combine functions in a formula. In this video, we show how to split, manipulate, and reassemble values using multiple functions in a single formula. However, now I can add the value from column C.

OK now we have our incremented number, padded with zeros. The final step is to rejoin this number to the original text string using simple concatenation. When I hit return, we get our final result. Now I can copy the formula down the table to increment the remaining values. Excel formulas - 23 tips to save you time today. How to build a complex formula step by step.

Some formulas you see in Excel can be extraordinarily complex. But all complex formulas are built from simple steps. In this video, we built a more complex formula step by step. How to evaluate complex formulas. In this video, I'm going to show you how you can use multiple Excel functions to split, manipulate, and rejoin values inside a single formula.

Here we have some sample data and in column B, we have text values with a number at the end. What we want to do is increment these numbers using the value in column C. Now if I try to do this directly, with a formula that adds C5 to B5, I'll get an error, because the value in B is text, and Excel won't let you add numbers and text. So what I need to do is extract the number, then do the math, then put things back together again.

Let's do that step by step. This gives us the number. You can see by the left alignment that the number is still in text format.

This time it works, because Excel is able to convert the text to a number automatically as part of the math operation. We get a correct result of 2, but we loose the padding with zeros. So let's add the padding back using the TEXT function , which will let us apply a number format inside a formula. I just need to wrap the existing formula in the TEXT function, and use "" as the number format. To do that, I'll just hard-code the text "Item " at the start of the formula, then use the ampersand to join the text to the padded number we already created.

When you face a problem like this, the key is to work in small steps, and verify your progress as you go. The final result may look complex, but in most cases each piece of the formula is doing something quite simple. You can use the TEXT function to embed formatted numbers inside text.

View the discussion thread. Skip to main content. This video comes from our online video training for Excel. How to combine functions in a formula. In this video, we show how to split, manipulate, and reassemble values using multiple functions in a single formula.