# TEXT and format

#### charliec

##### New Member
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

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Does something like this work?

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

The Round() function should work...

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

Thanks Nate. That worked!

Does something like this work?

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

The Round() function should work...

Replies
5
Views
220
Replies
10
Views
477
Replies
2
Views
266
Replies
6
Views
300
Replies
6
Views
280

1,203,562
Messages
6,056,086
Members
444,845
Latest member
dpkane512

### 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.

### Which adblocker are you using?

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

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