Normally, you want to maintain numeric values in Excel, because they can be used in formulas with other numbers. However, there are situations where converting numbers to text makes sense. For example, you might want to perform a lookup on numbers using wildcards, which can't be done with numeric values.
The TEXT function accepts a number as the first argument, something called "format_text" as the second. The format_text argument works like a number format, and specifies the formatting that should be used when converting the number to text. You can apply all the standard number formats that Excel provides, including dates, times, currency, and so on.
In the example, we are converting the number to text with no special formatting, so we simply use "0". The result is the number as a text string.
In this example, the values in column A are "stored as text". This means if you try to SUM column A, you'll get a result of zero. The VALUE function will try to "coerce" a number stored as text to a true number. In simple cases, it will just work...
If you need to get the month name (i.e. January, February, March, etc.) from a date, you have several options depending on your needs. Do you just want to display the month name? If you only want to display a month name, you don't need a formula –...
The TEXT function can apply number formats of any kind, including currency, date, percentage, etc. By applying a number format like "00", "000", "0000", you can "pad" numbers with as many zeros as you like. Zeros will only be added where needed...
The Excel TEXT function returns a number in a given number format, as text. You can use the TEXT function to embed formatted numbers inside text.
Excel Formula Training
Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.