ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   in excel how to display results of a function and text in the sam. (https://www.excelbanter.com/excel-worksheet-functions/6691-excel-how-display-results-function-text-sam.html)

ez123

in excel how to display results of a function and text in the sam.
 
in excel how to display results of a function and text in the same cell, for
example:
The total is <here come the results of a function

JulieD

Hi

this can be achieved by changing the formatting of the cell, put your
formula in the cell first and then click on the cell, choose format / cells
and click on the number tab. Click on custom and on the right hand side
you'll see "General" change it to look like this:
"The total is" General
and click OK
This method leaves the format of the cell as a number so you can use it in
future calculations.

alternatively, you can modify the formula in the cell to read
="The total is " & SUM(A2:A11)
this, however, makes the field a text field so it can not be used in future
calculations.

Cheers
JulieD

"ez123" wrote in message
...
in excel how to display results of a function and text in the same cell,
for
example:
The total is <here come the results of a function




Arvi Laanemets

Hi

="The total is " & YourFormula


--
Arvi Laanemets
(When sending e-mail, use address arvil<Attarkon.ee)



"ez123" wrote in message
...
in excel how to display results of a function and text in the same cell,

for
example:
The total is <here come the results of a function




Ron Rosenfeld

On Thu, 18 Nov 2004 21:27:01 -0800, "ez123"
wrote:

in excel how to display results of a function and text in the same cell, for
example:
The total is <here come the results of a function


If the text is always the same, you could use a Custom Format.

For example, with you formula in A1, select A1 and Format/Cells/Number Custom
Type: "The result is "0.00




--ron


All times are GMT +1. The time now is 07:28 PM.

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