Loading

Got a version of Excel that uses the
menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)?
**This site is for you!** If you
use a later version of Excel, visit
our *ExcelTips* site focusing on the ribbon interface.

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company.

Learn more about Allen...

ExcelTips FAQ

ExcelTips Resources

Ask an Excel Question

Make a Comment

Free Business Forms

Free Calendars

** Please Note:** This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later),

Many times I want a description for my data. One approach is to put the description—a simple text string—near the cell containing the data that needs describing. For instance, a numeric value could go in cell B3, and the unit description in cell C3, which read together may be something like "3.27 miles."

Another approach is to put the description text and the numeric value together. Creating text strings easily accomplishes this feat. Here's a very simple example that displays "1 + 1 is 2."

="1 + 1 is " & 1+1

The quotation marks are important. By making the text string part of a formula, you can combine the description and the value within one cell.

The disadvantage of this approach is formatting the value takes more effort; since the result is a text string, numeric cell formatting does not apply. For example, consider the above formula and the need to display two decimal places. One might naturally display the Format Cell dialog box and then choose a Number format that has two decimal places, but the results would not change. (Remember, the result of the formula is text, not a number.)

To affect the value formatting, use the TEXT function. To force the above results to display the value to two decimal places, use the following formula.

="1 + 1 is " & TEXT(1+1, "0.00")

The different formats you can use with the TEXT function have been covered in other issues of *ExcelTips, *and you can also find more info in Excel's Help system. Here's an example that displays "Today is " along with today's date. Enter the following formula in some cell:

="Today is " & TEXT(NOW(),"dddd, mmm dd, yyyy")

Again, the quotation marks are important, as you are constructing a text string.

*ExcelTips* is your source for cost-effective Microsoft Excel training. This tip (2582) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Combining Numbers and Text in a Cell.

*Related Tips:*

**Program Successfully in Excel!** John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out *Excel 2013 Power Programming with VBA* today!

@Paul Onomuakpose

This formula will work: =(A1/0.159)& "bbl"

It looks the same but it isn't. You used 2 times 2 apostrophes (') instead 2 quotes (").

This formula will work: =(A1/0.159)& "bbl"

It looks the same but it isn't. You used 2 times 2 apostrophes (') instead 2 quotes (").

I want to combine this formula on a cell but its not working;

=(A1/0.159)& ''bbl''

the result will be 43bbl on a cell

How can I go about it

=(A1/0.159)& ''bbl''

the result will be 43bbl on a cell

How can I go about it

I want to enter a time with AM or PM and have it displayed with the colon. i.e. 530PM and have it display 5:30 PM.

I have used ##:##;;;@ but it excel assumes it is text if I add pm or am.Ir I use h:mm AM/PM and enter 530 it assumes hours and doesn't add the colon.

I want the user to input AM or PM but not have to enter the colon.

I have used ##:##;;;@ but it excel assumes it is text if I add pm or am.Ir I use h:mm AM/PM and enter 530 it assumes hours and doesn't add the colon.

I want the user to input AM or PM but not have to enter the colon.

Hai sir,This is possible in excel F33 = 101063 F34 = 30319 =((F33-F34),"Cubicmeter")

@ Harold

Use the formula: =ROUNDUP((D8+H12+H17),0) & " MONTHS"

Use the formula: =ROUNDUP((D8+H12+H17),0) & " MONTHS"

=(D8+H12+H17)& " months"

And the result is 27.891424567 Month

The referenced cells are (d8,h12,h17)are sum formulas as well and are formatted as numbers with no decimals.

My questions is how can I get the result of my text formula to round up to a simple result of 28 Months

Thank you Harold

And the result is 27.891424567 Month

The referenced cells are (d8,h12,h17)are sum formulas as well and are formatted as numbers with no decimals.

My questions is how can I get the result of my text formula to round up to a simple result of 28 Months

Thank you Harold

Ahh never mind I have the solution:

=TEXT(J3, "0.000")&" ± "&TEXT(O3, "0.0000")

=TEXT(J3, "0.000")&" ± "&TEXT(O3, "0.0000")

Here's a good one. I want to take a calculated value from a cell then put a symbol "±" then bring in a calculated value from a different cell. I got it to work once however the decimal places are way to high and formatting cell to number did not fix it.

Here is my cell now:

=(J3)&" ± "&(O3)

Here is my cell now:

=(J3)&" ± "&(O3)

If you are trying to present the min and max range in a single cell then do the following.

Have a cell for the min and have a cell for the max (can use the min and max functions for this). Then have a cell set a side for the range.

A B

Data 1 34

Data 2 2

Data 3 11

Min 2

Max 34

Range =B4 &- B5

The Range would then look like 2-34

Have a cell for the min and have a cell for the max (can use the min and max functions for this). Then have a cell set a side for the range.

A B

Data 1 34

Data 2 2

Data 3 11

Min 2

Max 34

Range =B4 &- B5

The Range would then look like 2-34

Create a custom number format and enter

'dd/mm/yyyy hh:mm:ss

in the type box

'dd/mm/yyyy hh:mm:ss

in the type box

I am trying to keep date format and would like add text with out using formula

Example

current cell have 07/04/2012 13:52:09

i would like to add '07/04/2012 13:52:09

but when i add ' it is converting to another format like general

how can we maintain the date format and add this ' for all the cells in one go

Example

current cell have 07/04/2012 13:52:09

i would like to add '07/04/2012 13:52:09

but when i add ' it is converting to another format like general

how can we maintain the date format and add this ' for all the cells in one go

Hi.

Am trying to use different numbers like this (132.08-130.01=2.07

178.556-172.321=6.235

etc...) and with same comments like(132.08-130.01=2.07 Gas usage charges for June-15.

178.556-172.321=6.235 Gas usage charges for June-15).

<<<<<Please help me anyone>>>>>>

Am trying to use different numbers like this (132.08-130.01=2.07

178.556-172.321=6.235

etc...) and with same comments like(132.08-130.01=2.07 Gas usage charges for June-15.

178.556-172.321=6.235 Gas usage charges for June-15).

<<<<<Please help me anyone>>>>>>

I'm using Microsoft Excel 97-2003 Worksheet.xls.

When I want to sum text(currency) with numbers, it does not function. How can i do it.

When I want to sum text(currency) with numbers, it does not function. How can i do it.

I am trying to write a schedule with w hole numbers(got that part) but also in the cell I would like to put "RDO" for requested day off and at the end of the week I would like it to show the total hours I scheduled divided by 100 in help would be great.

Monday 0800 1200 400/100 4 hrs

Tuesday Rdo

etc

total hours 4

Monday 0800 1200 400/100 4 hrs

Tuesday Rdo

etc

total hours 4

Use the round function and number of decimals and then "&". E.G to get age of the people from a table all you need is a dob. so here is the formula that i used =ROUND(($E$1-C5)/365,2) & " Years"

where E1 contains Current date as NOW() and c5 is the date of birth. if you subtract 2 dates it will give you number of days by default so divide that by 365 you get nuimber of days with plenty of decimal places with round you can control the number of decimal places and i have used 2 .Answer will be like 45.8 Years

where E1 contains Current date as NOW() and c5 is the date of birth. if you subtract 2 dates it will give you number of days by default so divide that by 365 you get nuimber of days with plenty of decimal places with round you can control the number of decimal places and i have used 2 .Answer will be like 45.8 Years

I want to combine Sum of amount and a text in one cell

For Example The result should be :

"Chq No. 1251 -35000.00"

I can combine number and text but the decimal is missing

For Example The result should be :

"Chq No. 1251 -35000.00"

I can combine number and text but the decimal is missing

hey

You can use Custom Formatting to achieve that. Select your cells > Right click> Format Cells> Number> Custom. Now in the Type field write (#,##) after pressing the enter button you'll notice that your value will look like 5,166,451,235. Now go to Type field again write (,) this will shed last three numbers and your number will look like this 5,166,451. Adding another (,,) will shed 6 numbers and so on. For the decimal places just write (0) in the Type field and then change it to (0.0) try adding more zeros after the decimal and you'll notice that it controls the number of decimal places you want to have. For adding colors try writing ([Red]) in the Type field. You can have more fun by using ([Green];[Red];[Black]) what this will do is all the positive numbers will be displayed in green, all the negative numbers will be displayed in red and if there's a 0 it'll be displayed in black. You can always play with the colors. Finally, here's the final thing try putting this in the Type box ([Red]#,##0,,;[Green]-#,##0,,;[Black]) I hope this answers your query. If there's anything you want to know feel free to post I'm not an excel guru but I'll sure try to help you out!

Cheers..

ps ignore the brackets!

You can use Custom Formatting to achieve that. Select your cells > Right click> Format Cells> Number> Custom. Now in the Type field write (#,##) after pressing the enter button you'll notice that your value will look like 5,166,451,235. Now go to Type field again write (,) this will shed last three numbers and your number will look like this 5,166,451. Adding another (,,) will shed 6 numbers and so on. For the decimal places just write (0) in the Type field and then change it to (0.0) try adding more zeros after the decimal and you'll notice that it controls the number of decimal places you want to have. For adding colors try writing ([Red]) in the Type field. You can have more fun by using ([Green];[Red];[Black]) what this will do is all the positive numbers will be displayed in green, all the negative numbers will be displayed in red and if there's a 0 it'll be displayed in black. You can always play with the colors. Finally, here's the final thing try putting this in the Type box ([Red]#,##0,,;[Green]-#,##0,,;[Black]) I hope this answers your query. If there's anything you want to know feel free to post I'm not an excel guru but I'll sure try to help you out!

Cheers..

ps ignore the brackets!

Hi

How can i change the color , formating or

number of decemicals in a combination

Imagine that a cell involved in the combination is a number result from a formula i.e 5,166451235

and i want this to appear red and 5,17

Thancs in advance

How can i change the color , formating or

number of decemicals in a combination

Imagine that a cell involved in the combination is a number result from a formula i.e 5,166451235

and i want this to appear red and 5,17

Thancs in advance