Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Enter text and formula in a cell

Is there a way I can enter text and a formula in a cell. For example: I
want to have the word "Total" and the count of the column in a cell.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 142
Default Enter text and formula in a cell

=IF(1=1,""&(" Total ")&SUM(C1:C4)&"","")

this works, but you can clean it up if you want ( it will sum c1 through c4
right now)

"Carter68" wrote:

Is there a way I can enter text and a formula in a cell. For example: I
want to have the word "Total" and the count of the column in a cell.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Enter text and formula in a cell

If the formula for your total is, for example, =SUM(A1:A20)
Then use
="TOTAL "&SUM(A1:A20)

You may not like the formatting of the total.

Put the simple form of the SUM formula in a cell and format as required. Then, with that cell selected: FormatCellsNumberCustom
tab, and copy or write down what's in the Type box. Let's say #,##0.00
Now change your formula to
="TOTAL "&TEXT(SUM(A1:A20),"#,##0.00")


--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Carter68" wrote in message ...
| Is there a way I can enter text and a formula in a cell. For example: I
| want to have the word "Total" and the count of the column in a cell.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Enter text and formula in a cell

Thank you! That is exactly what I was looking for.

"Niek Otten" wrote:

If the formula for your total is, for example, =SUM(A1:A20)
Then use
="TOTAL "&SUM(A1:A20)

You may not like the formatting of the total.

Put the simple form of the SUM formula in a cell and format as required. Then, with that cell selected: FormatCellsNumberCustom
tab, and copy or write down what's in the Type box. Let's say #,##0.00
Now change your formula to
="TOTAL "&TEXT(SUM(A1:A20),"#,##0.00")


--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Carter68" wrote in message ...
| Is there a way I can enter text and a formula in a cell. For example: I
| want to have the word "Total" and the count of the column in a cell.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 947
Default Enter text and formula in a cell

Just another option. Note the double quote.

=TEXT(SUM(A1:A20),"""Total:"" #,##0.00")

--
HTH :)
Dana DeLouis
Windows XP & Office 2003


"Carter68" wrote in message
...
Is there a way I can enter text and a formula in a cell. For example: I
want to have the word "Total" and the count of the column in a cell.





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Enter text and formula in a cell

An another option

FormatCellsNumberCustom "Total: " #,##0.00
In cell just use
=SUM(A1:A20)

--
Regards

Roger Govier


"Dana DeLouis" wrote in message
...
Just another option. Note the double quote.

=TEXT(SUM(A1:A20),"""Total:"" #,##0.00")

--
HTH :)
Dana DeLouis
Windows XP & Office 2003


"Carter68" wrote in message
...
Is there a way I can enter text and a formula in a cell. For
example: I
want to have the word "Total" and the count of the column in a cell.





  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Enter text and formula in a cell

This is much better; you can still calculate with it

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Roger Govier" wrote in message ...
| An another option
|
| FormatCellsNumberCustom "Total: " #,##0.00
| In cell just use
| =SUM(A1:A20)
|
| --
| Regards
|
| Roger Govier
|
|
| "Dana DeLouis" wrote in message
| ...
| Just another option. Note the double quote.
|
| =TEXT(SUM(A1:A20),"""Total:"" #,##0.00")
|
| --
| HTH :)
| Dana DeLouis
| Windows XP & Office 2003
|
|
| "Carter68" wrote in message
| ...
| Is there a way I can enter text and a formula in a cell. For
| example: I
| want to have the word "Total" and the count of the column in a cell.
|
|
|
|


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default Enter text and formula in a cell

What a great tip Roger, it saves all the complicated formual entries (which
are great) and I can just SUM each cell now which is easier and quicker than
typing the long formula.

Thanks for sharing.

AW

"Roger Govier" wrote:

An another option

FormatCellsNumberCustom "Total: " #,##0.00
In cell just use
=SUM(A1:A20)

--
Regards

Roger Govier


"Dana DeLouis" wrote in message
...
Just another option. Note the double quote.

=TEXT(SUM(A1:A20),"""Total:"" #,##0.00")

--
HTH :)
Dana DeLouis
Windows XP & Office 2003


"Carter68" wrote in message
...
Is there a way I can enter text and a formula in a cell. For
example: I
want to have the word "Total" and the count of the column in a cell.






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
Copy from a Cell to a text box. AJL Excel Worksheet Functions 9 November 7th 06 04:58 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Text in formula bar is not displaying in cell Mike Excel Discussion (Misc queries) 0 August 29th 05 09:47 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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

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

About Us

"It's about Microsoft Excel"