View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default Question on a Formula

Perhaps:

=IF(SUM(E34:K34)=SUM(D7:D33),"o.k.","no good")
--
Gary''s Student - gsnu200777


"B. Levien" wrote:

I have been asked how to create a formula to return an error if the rows and
columns to not add up.

The cells in Column D - D7:D33 contain the totals for the rows.
The cells in Row 34 - E34:K34 contain the totals for the columns.

The user wants a formula to return an error message if the total of the rows
does not equal the total of the columns (this formula should be in D34).
Right now, she has the formula of =SUM(E34:K34) in D34.

I'm stumped.

Any help would be greatly appreciated.