Formating text and numbers in same cell

rasmus79

Board Regular
Joined
Sep 4, 2003
Messages
66
Hi - I have the following formula in a cell
=+"Tot: "&SUM(B14:R14)+SUM(B22:R22)

The problem is that the output is

Tot: -227.360000000001

This is due to the fact that one of the cells has a large number of digits after the .
Do anyone know how I can format the number to be ex. 0 digits after . and have the thousand seperator?

Thanks
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Foemat | Cells | Number

Check thosands seperator and the number of digits you want.
 
Upvote 0
Why not just do the sum and use a custom format to add the "Tot :" bit.
 
Upvote 0
On this one it would work to do a custom format like GorD suggested, but sometimes I make it for larger, with lots of different numbers and text.
The format option doesnt work when you mix text with numbers, but Aladin's formating text worked quite perfect.
Also for when I use it for larger "more intricate" mixes.
Thanks!
 
Upvote 0
It's a pity that the format option dosen't work for yor application. One advantage of this method would be that you can perform further mathematical operations on the total, add totals together ,averages etc, as the cell itself only contains a number.
 
Upvote 0

Forum statistics

Threads
1,215,853
Messages
6,127,328
Members
449,376
Latest member
karenmccabe

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