Question on a Formula

B

B. Levien

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.
 
S

Sandy Mann

Try:

=IF(SUM(D7:D33)<>D34,"Error!","")

If there are multiplications in the data in E7:K33 then you may need to
include a ROUND() function to prevent small errors returning the "Error!"
when the two SUMS() apparently balanance

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
Replace @mailinator.com with @tiscali.co.uk
 
B

B. Levien

Thank you all so much!

I'm not familiar with the IF functions, and they confuse me no end.

Brenda
 
S

Sandy Mann

You are welcome, thanks for the feedback

--

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
Replace @mailinator.com with @tiscali.co.uk
 
B

B. Levien

You are ALL wonderful! The formula was exactly what she was looking for!!!!

Brenda
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top