Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 54
Default sum formula not working excel 03

The formula:
=sum(h10,h14,h20,h40)
The result should be:
=sum(4,5,4,4,4,) =21
I however get 20 as a result.
Tools/Options is set to automatic and the "h" cells are formatted as numbers
(1234).
The cells are dependent on other formulas (=sum(h11:h12)/2) etc. The cells
in between is formatted to numbers (1234.10)

Any suggestions anyone
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default sum formula not working excel 03

Check out whether h10,h14,h20 and h40 contain real integers..or are rounded
off. Increase the decimal points of these cells and check ..

--
Jacob


"wynand" wrote:

The formula:
=sum(h10,h14,h20,h40)
The result should be:
=sum(4,5,4,4,4,) =21
I however get 20 as a result.
Tools/Options is set to automatic and the "h" cells are formatted as numbers
(1234).
The cells are dependent on other formulas (=sum(h11:h12)/2) etc. The cells
in between is formatted to numbers (1234.10)

Any suggestions anyone

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 506
Default sum formula not working excel 03

First of all check the number of cell reference you have mentioned in your
sum formula.

=sum(h10,h14,h20,h40)

1-H10
2-H14
3-H20
4-H40

In the above sum function you have referred 4 cell references.

But in your next example (i.e.) =sum(4,5,4,4,4,) =21
1-4
2-5
3-4
4-4
5-4
The numbers of values are mentioned is 5.

So correct your example and provide the clear picture of your problem.

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"wynand" wrote:

The formula:
=sum(h10,h14,h20,h40)
The result should be:
=sum(4,5,4,4,4,) =21
I however get 20 as a result.
Tools/Options is set to automatic and the "h" cells are formatted as numbers
(1234).
The cells are dependent on other formulas (=sum(h11:h12)/2) etc. The cells
in between is formatted to numbers (1234.10)

Any suggestions anyone

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 54
Default sum formula not working excel 03

The cells are rounded off (no decimals),
so therefore 4+5+4+4+4 should be 21 and not 20
If I use the array formula
=sum(round(h10,h14,h20,h40,1))
I get to 21 as a result
Would this formula suffice or would it affect something else I'm not aware of?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default sum formula not working excel 03

I'm surprised that you say that you use =sum(round(h10,h14,h20,h40,1)) and
get 21 as a result. With Excel 2003 that formula flags a syntax error, as I
would expect it to do. Which Excel version are you using?
--
David Biddulph

"wynand" wrote in message
...
The cells are rounded off (no decimals),
so therefore 4+5+4+4+4 should be 21 and not 20
If I use the array formula
=sum(round(h10,h14,h20,h40,1))
I get to 21 as a result
Would this formula suffice or would it affect something else I'm not aware
of?





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default sum formula not working excel 03

On Fri, 18 Dec 2009 01:55:01 -0800, wynand
wrote:

The formula:
=sum(h10,h14,h20,h40)
The result should be:
=sum(4,5,4,4,4,) =21
I however get 20 as a result.
Tools/Options is set to automatic and the "h" cells are formatted as numbers
(1234).
The cells are dependent on other formulas (=sum(h11:h12)/2) etc. The cells
in between is formatted to numbers (1234.10)

Any suggestions anyone


SUM will add the *contents* of the cells. Formatting does not change the
*contents*, only what you see.

So even though you may have a cell formatted as numbers(1234) and you see 1234,
the cell might contain 1233.5 and that is the number SUM will add.

You need to use ROUND if you want the result to equal what you see. You could
also use the Precision as displayed options, but be sure you understand the
consequences.


--ron
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 54
Default sum formula not working excel 03


Ron, Thank you for the advice, can you expalin the consequences of
"precision".
If I use the sum-round formula would there be any hidden consequences?


"Ron Rosenfeld" wrote:

On Fri, 18 Dec 2009 01:55:01 -0800, wynand
wrote:


SUM will add the *contents* of the cells. Formatting does not change the
*contents*, only what you see.

So even though you may have a cell formatted as numbers(1234) and you see 1234,
the cell might contain 1233.5 and that is the number SUM will add.

You need to use ROUND if you want the result to equal what you see. You could
also use the Precision as displayed options, but be sure you understand the
consequences.


--ron
.

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default sum formula not working excel 03

Typing "Precision as displayed" into Excel help:

"Change when and how formulas are calculated ...
Change the precision of calculations in a workbook

Caution When you change the precision of the calculations in a workbook by
using the displayed (formatted) values, Excel permanently changes any
constant values on the worksheets in the workbook. If you later choose to
calculate with full precision, the original underlying values cannot be
restored.

1.. On the Tools menu, click Options, and then click the Calculation tab.
2.. Under Workbook options, select the Precision as displayed check box. "

--
David Biddulph

"wynand" wrote in message
...

Ron, Thank you for the advice, can you expalin the consequences of
"precision".
If I use the sum-round formula would there be any hidden consequences?


"Ron Rosenfeld" wrote:

On Fri, 18 Dec 2009 01:55:01 -0800, wynand

wrote:


SUM will add the *contents* of the cells. Formatting does not change the
*contents*, only what you see.

So even though you may have a cell formatted as numbers(1234) and you see
1234,
the cell might contain 1233.5 and that is the number SUM will add.

You need to use ROUND if you want the result to equal what you see. You
could
also use the Precision as displayed options, but be sure you understand
the
consequences.


--ron
.



  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default sum formula not working excel 03

On Fri, 18 Dec 2009 03:08:02 -0800, wynand
wrote:

Ron, Thank you for the advice, can you expalin the consequences of
"precision".


See Excel HELP for Precision as Displayed

If I use the sum-round formula would there be any hidden conseque


No, any consequences will be out in the open :-)
--ron
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 drag down formula not working good.. zoola ander Excel Worksheet Functions 0 May 8th 08 10:38 PM
Formula not working in excel 2007 Rao Ratan Singh Excel Discussion (Misc queries) 3 January 2nd 08 02:47 PM
I've got a problem with an Excel formula I'm working on. Bill Excel Discussion (Misc queries) 4 August 20th 07 02:15 PM
Excel formula not working James Setting up and Configuration of Excel 3 March 2nd 05 06:54 PM
Excel formula not working KC Mao Excel Discussion (Misc queries) 2 December 4th 04 01:59 PM


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

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"