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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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,213,538
Messages
6,114,220
Members
448,554
Latest member
Gleisner2

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