TEXT and format

charliec

New Member
Joined
Dec 2, 2010
Messages
17
Hi,

I have a number in cell A1 which is 2.02. I am using the formula =TEXT(A1,"##.#")&" years" to show that I have 2.0 years.

However, when the number is something that should be rounded to a number with a zero after it the result just says 2. years instead of 2.0 years. I don't get the zero following the number like I think I should. It works for all other values just fine.

Don't know what I am doing wrong. I am using Excel 2010 on W7. Thx.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Does something like this work?

=FIXED(A1,1,TRUE)&" years"

The Round() function should work...
 
Upvote 0
Hi,

I have a number in cell A1 which is 2.02. I am using the formula =TEXT(A1,"##.#")&" years" to show that I have 2.0 years.

However, when the number is something that should be rounded to a number with a zero after it the result just says 2. years instead of 2.0 years. I don't get the zero following the number like I think I should. It works for all other values just fine.

Don't know what I am doing wrong. I am using Excel 2010 on W7. Thx.

Charliec, I don't understand why you're not using the format function built into Excel. You wouldn't have this problem if you had just formatted the cells as shown below.

http://s5.photobucket.com/albums/y182/tushman/?action=view&current=Excelnumberformat.png
 
Upvote 0

Forum statistics

Threads
1,214,568
Messages
6,120,272
Members
448,953
Latest member
Dutchie_1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top