Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default 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



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Formula, text & number in cell Need a Guru Excel Discussion (Misc queries) 1 December 29th 08 10:11 PM
Excel Formula if cell is empty then no if text in cell then yes Kathy Excel Worksheet Functions 2 December 20th 06 05:24 PM
Can a cell in excel contain text and have a formula included? pennpro Excel Discussion (Misc queries) 3 October 4th 06 10:54 PM
My Excel formula is using my text as a cell range. Aeryn635 Excel Programming 3 February 4th 05 01:29 AM
Excel 2000 Returning text value Not formula from Cell scain2004[_17_] Excel Programming 3 June 13th 04 03:13 AM


All times are GMT +1. The time now is 11:08 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"