ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I combine text and formula within the same cell? (https://www.excelbanter.com/excel-discussion-misc-queries/177875-how-do-i-combine-text-formula-within-same-cell.html)

Office

How do I combine text and formula within the same cell?
 
if I wanted to have the word TOTAL or any other general text (eg Total cost
of project) then a formula that sums a number of values
total =SUM(A2:A10) in the SAME cell Everything I have tried to do this
either end up with the text staying and the formula doesn't calculate....or
the text is removed and the formula calculates
Your help would be greatly appreciated :)

T. Valko

How do I combine text and formula within the same cell?
 
Try it like this:

="Total cost of project "&SUM(A2:A10)

--
Biff
Microsoft Excel MVP


"Office" wrote in message
...
if I wanted to have the word TOTAL or any other general text (eg Total
cost
of project) then a formula that sums a number of values
total =SUM(A2:A10) in the SAME cell Everything I have tried to do this
either end up with the text staying and the formula doesn't
calculate....or
the text is removed and the formula calculates
Your help would be greatly appreciated :)




Dave Peterson

How do I combine text and formula within the same cell?
 
Another way to give the amount a nice format:
="Total cost of project: " & text(sum(a2:a10),"$#,##0.00")

But you could keep the value in the cell a number and use a custom format:
Put
=sum(a2:a10)
in the cell
Format|Cells|Number tab|custom|
"Total cost of project: " $#,##0.00





Office wrote:

if I wanted to have the word TOTAL or any other general text (eg Total cost
of project) then a formula that sums a number of values
total =SUM(A2:A10) in the SAME cell Everything I have tried to do this
either end up with the text staying and the formula doesn't calculate....or
the text is removed and the formula calculates
Your help would be greatly appreciated :)


--

Dave Peterson


All times are GMT +1. The time now is 06:25 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com