Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=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. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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. |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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. |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
formula question | Excel Worksheet Functions | |||
formula question | Excel Discussion (Misc queries) | |||
Newbie Question - Subtraction Formula Question | Excel Discussion (Misc queries) | |||
IF formula question | Excel Worksheet Functions | |||
Formula Question | Excel Worksheet Functions |