Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
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.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default 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.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default 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.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Question on a Formula

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
formula question cinvic[_2_] Excel Worksheet Functions 1 February 1st 08 05:47 PM
formula question Steve Excel Discussion (Misc queries) 2 October 8th 07 09:18 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
IF formula question Rubix Excel Worksheet Functions 3 January 8th 06 07:36 AM
Formula Question Kent Excel Worksheet Functions 2 March 10th 05 02:41 AM


All times are GMT +1. The time now is 03:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"