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
 

Some videos you may like

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
Joined
Feb 17, 2002
Messages
3,853
Foemat | Cells | Number

Check thosands seperator and the number of digits you want.
 

GorD

Well-known Member
Joined
Jan 17, 2004
Messages
1,446
Why not just do the sum and use a custom format to add the "Tot :" bit.
 

rasmus79

Board Regular
Joined
Sep 4, 2003
Messages
66
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
Joined
Jan 17, 2004
Messages
1,446
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,089,858
Messages
5,410,820
Members
403,330
Latest member
roxmasters2020

This Week's Hot Topics

Top