![]() |
Question on a Formula
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. |
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. |
Question on a Formula
=IF(SUM(E34:K34)<SUM(D7:D33),"ERROR","OKAY")
Hope that helps! -- Best Regards, Luke M "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. |
Question on a Formula
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 Replace @mailinator.com with @tiscali.co.uk "B. Levien" wrote in message ... 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. |
Question on a Formula
You are welcome, thanks for the feedback
-- Sandy In Perth, the ancient capital of Scotland and the crowning place of kings Replace @mailinator.com with @tiscali.co.uk "B. Levien" wrote in message ... Thank you all so much! I'm not familiar with the IF functions, and they confuse me no end. Brenda "Sandy Mann" wrote: 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 Replace @mailinator.com with @tiscali.co.uk "B. Levien" wrote in message ... 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. |
Question on a Formula
You are ALL wonderful! The formula was exactly what she was looking for!!!!
Brenda "Sandy Mann" wrote: You are welcome, thanks for the feedback -- Sandy In Perth, the ancient capital of Scotland and the crowning place of kings Replace @mailinator.com with @tiscali.co.uk "B. Levien" wrote in message ... Thank you all so much! I'm not familiar with the IF functions, and they confuse me no end. Brenda "Sandy Mann" wrote: 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 Replace @mailinator.com with @tiscali.co.uk "B. Levien" wrote in message ... 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. |
All times are GMT +1. The time now is 01:07 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com