ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Text and formula in a same cell (Excel) (https://www.excelbanter.com/excel-programming/410285-text-formula-same-cell-excel.html)

[email protected]

Text and formula in a same cell (Excel)
 
Please help on

How can I put text and formula in a same cell i.e. This is total: ####
(sum of different cell)

Thanks

Nigel[_2_]

Text and formula in a same cell (Excel)
 
You could use a UDF (demo one below). Add this to a standard module, then in
the cell you wish to show the total use (example sums B1:F1)

= TotalMe(B1:F1)


Function TotalMe(rng As Range) As String
If Not rng Is Nothing Then
TotalMe = "This Total is: " & Application.WorksheetFunction.Sum(rng)
End If
End Function

--

Regards,
Nigel




wrote in message
...
Please help on

How can I put text and formula in a same cell i.e. This is total: ####
(sum of different cell)

Thanks



Gary Keramidas

Text and formula in a same cell (Excel)
 
if the value is in C1, for example:

="Total: " &C1

--


Gary


wrote in message
...
Please help on

How can I put text and formula in a same cell i.e. This is total: ####
(sum of different cell)

Thanks




Malik[_2_]

Text and formula in a same cell (Excel)
 
Suppose you have enteries in Rows or Columns then you can put this formula in
a cell, where you would like to show sum:

Syntax: ="Whatever text you want : " & SUM(Range)

Example:
="Total : " & SUM(A4:D4)
--
Malik


" wrote:

Please help on

How can I put text and formula in a same cell i.e. This is total: ####
(sum of different cell)

Thanks



All times are GMT +1. The time now is 09:59 AM.

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