View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
jlclyde jlclyde is offline
external usenet poster
 
Posts: 410
Default What is wrong with this simple formula?

On Oct 14, 10:13*am, "Jack B" wrote:
What is wrong with this formula:

=SUM(H10:H38) - (sumH10:H15+sumH18:H19+H22+H26)

I want to add all numbers H10 thru H38, and subtract from that the sum of
(H10:H15+H18:H19+H22+H26)

The result I'm getting is #NAME?

or, if I use =SUM(H10:H38) - (H10:H15+H18:H19+H22+H26), the result I get is
#VALUE!

Jack


There are a coupel of things wrong with each. The first one should be
=SUM(H10:H38) - sum(H10:H15)+sum(H18:H19)+H22+H26. You were putting
the parentheses in teh wrong spots

The second one shoudl be =SUM(H10:H38) - (Sum
(H10:H15)+H18:H19+H22+H26),