Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-21-2013, 07:55 AM
officeboy09 officeboy09 is offline Using the sum function to display number as well as words in a single cell Windows XP Using the sum function to display number as well as words in a single cell Office 2003
Advanced Beginner
Using the sum function to display number as well as words in a single cell
 
Join Date: Oct 2013
Location: Australia
Posts: 40
officeboy09 is on a distinguished road
Default Using the sum function to display number as well as words in a single cell

Hi,



If I want the cell H10 to display the sum number of all cells from H1 to H9 in a column, I'd just need to use the simple sum function below.


=SUM(H1:H9)

But my problem is that I also need to display the word 'Total:' for the sum of all nine cells above, say if =SUM(H1:H9) is 56, then I want it to be displayed as Total: 56 in cell H10. What can I do?

Thanks!

http://office.microsoft.com/en-us/ex...005200127.aspx
Reply With Quote
  #2  
Old 10-21-2013, 08:04 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Using the sum function to display number as well as words in a single cell Windows 7 64bit Using the sum function to display number as well as words in a single cell Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Try ="Total: "&sum(h1:h9)
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 10-21-2013, 08:09 AM
officeboy09 officeboy09 is offline Using the sum function to display number as well as words in a single cell Windows XP Using the sum function to display number as well as words in a single cell Office 2003
Advanced Beginner
Using the sum function to display number as well as words in a single cell
 
Join Date: Oct 2013
Location: Australia
Posts: 40
officeboy09 is on a distinguished road
Default

Quote:
Originally Posted by Pecoflyer View Post
Try ="Total: "&sum(h1:h9)
Thanks Peco, it works!!
Reply With Quote
  #4  
Old 10-21-2013, 11:31 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Using the sum function to display number as well as words in a single cell Windows 7 64bit Using the sum function to display number as well as words in a single cell Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

You're welcome
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #5  
Old 10-24-2013, 12:21 AM
officeboy09 officeboy09 is offline Using the sum function to display number as well as words in a single cell Windows XP Using the sum function to display number as well as words in a single cell Office 2003
Advanced Beginner
Using the sum function to display number as well as words in a single cell
 
Join Date: Oct 2013
Location: Australia
Posts: 40
officeboy09 is on a distinguished road
Default

Just a follow-on question.

I applied this to another column to calculate the sum.

It displayed the word "Total: " as well as the number from its calculation.

But it gives too many decimals. The 'reduce decimal' button on the toolbar doesn't work on numbers generated by functions?

I only need the number in two decimal places.
Reply With Quote
  #6  
Old 10-24-2013, 12:37 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Using the sum function to display number as well as words in a single cell Windows 7 64bit Using the sum function to display number as well as words in a single cell Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Ask yourself how you would do it without the text part.

What are you trying to do ? Round the result to two decimals.

Did I say ROUND ? OK then let's use the ROUND function

=ROUND(sum(your_range),2)

Now use this new formula the same way we used SUM alone before...

I trust you now have the answer
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #7  
Old 10-24-2013, 07:47 AM
BobBridges's Avatar
BobBridges BobBridges is offline Using the sum function to display number as well as words in a single cell Windows 7 64bit Using the sum function to display number as well as words in a single cell Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

I'm going to differ with Peco on this occasion, for one picky reason: Suppose your sum is 234.501, and you use ROUND(234.501,2)? The answer is then displayed as "234.5", whereas you (I suppose) want "234.50". My solution is to use TEXT(234.501,"0.00"), which turns 234.501 into "234.50".

Now, if this works for you then we can stop there, but it has one drawback: The whole cell cannot be used for further calculation, because it's a character string "Total: 234.50" rather than the value 234.5. There is a way you can have both the "Total:" and the numeric value available for calculation.

Go back to the formatting dialogue for this cell, and select the Custom category. Fill in the following as the custom format string:
Code:
"Total: "0.00
Excel fills in the format just as though you'd typed in a standard number format but preceded by the word "Total: ", and still lets you use that cell for arithmetic calculation. If you don't need to do arithmetic on that cell then you may as well use whichever method is easiest; but this method can be pretty handy on occasion.
Reply With Quote
  #8  
Old 10-30-2013, 01:45 AM
officeboy09 officeboy09 is offline Using the sum function to display number as well as words in a single cell Windows XP Using the sum function to display number as well as words in a single cell Office 2003
Advanced Beginner
Using the sum function to display number as well as words in a single cell
 
Join Date: Oct 2013
Location: Australia
Posts: 40
officeboy09 is on a distinguished road
Default

Quote:
Originally Posted by Pecoflyer View Post
Ask yourself how you would do it without the text part.

What are you trying to do ? Round the result to two decimals.

Did I say ROUND ? OK then let's use the ROUND function

=ROUND(sum(your_range),2)

Now use this new formula the same way we used SUM alone before...

I trust you now have the answer
I didn't used SUM alone. I tried this but didn't work.

=ROUND(("Total: "&SUM(G2:G6)),2)
Reply With Quote
  #9  
Old 10-30-2013, 05:38 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Using the sum function to display number as well as words in a single cell Windows 7 64bit Using the sum function to display number as well as words in a single cell Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Quote:
Originally Posted by Pecoflyer View Post

=ROUND(sum(your_range),2)

Now use this new formula the same way we used SUM alone before...
="Total: "&ROUND(SUM(G2:G6),2)
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using the sum function to display number as well as words in a single cell How to count multiple values in a single cell, except zero? iuliandonici Excel 1 04-13-2011 09:45 PM
Using the sum function to display number as well as words in a single cell Sum & difference between multiple values in a single cell iuliandonici Excel 4 04-13-2011 09:27 PM
Using the sum function to display number as well as words in a single cell How can I break a single group of words into three sets? Learner7 Excel 1 03-22-2011 02:35 PM
Using the sum function to display number as well as words in a single cell How can I write the following (whole) formula in a single cell? Learner7 Excel 1 07-19-2010 10:06 AM
Pasting multiple photos - one photo per cell in a single oepration mccruise Word 0 04-07-2010 04:13 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:57 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft