# Formating text and numbers in same cell

#### rasmus79

##### Board Regular
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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

#### DRJ

##### MrExcel MVP
Foemat | Cells | Number

Check thosands seperator and the number of digits you want.

##### MrExcel MVP
="Tot: "&TEXT(SUM(B14:R14,B22:R22),"#,##0")

#### GorD

##### Well-known Member
Why not just do the sum and use a custom format to add the "Tot :" bit.

#### rasmus79

##### Board Regular
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!

#### GorD

##### Well-known Member
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.