Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default How do you add related cells in a sum?

I am trying to add certain groups within a spreadsheet. For example:

A group will have a type and an amount. If the type is "Check" then I want
it to add the amount in the sum "Total Checks." If the type is anything
else, then I want it to add the amount in the sum "Total Everything."

How do I tell it to add all of the related amount cells for "Checks," but
not ALL of the cells with amounts? I have a temp setup right now with IF
statements, but I'm limited to 30 cells due to the formula length. I feel
like this should be REALLY easy.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default How do you add related cells in a sum?

You can use SUMIF, along the lines of:

=SUMIF(T1:T100,"Check",A1:A100)

where I have assumed that your Type is in column T and the Amount is
in column A, and that you have 100 rows of data - adjust to suit your
situation.

Hope this helps.

Pete

On May 13, 1:41*am, Jarod wrote:
I am trying to add certain groups within a spreadsheet. *For example:

A group will have a type and an amount. *If the type is "Check" then I want
it to add the amount in the sum "Total Checks." *If the type is anything
else, then I want it to add the amount in the sum "Total Everything."

How do I tell it to add all of the related amount cells for "Checks," but
not ALL of the cells with amounts? *I have a temp setup right now with IF
statements, but I'm limited to 30 cells due to the formula length. *I feel
like this should be REALLY easy.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 353
Default How do you add related cells in a sum?

With Sumif..
Checks - =SUMIF(D2:D101,"check",E2:E101)
Everything but checks - =SUMIF(D2:D101,"<Check",E2:E101)

Or with Sumproduct...
Checks - =SUMPRODUCT((D2:D101="check")*(E2:E101))
Everything but checks - =SUMPRODUCT((D2:D101<"check")*(E2:E101))

Both with Type in column D and amount in Column E - adjust ranges as
necessary.

"Jarod" wrote:

I am trying to add certain groups within a spreadsheet. For example:

A group will have a type and an amount. If the type is "Check" then I want
it to add the amount in the sum "Total Checks." If the type is anything
else, then I want it to add the amount in the sum "Total Everything."

How do I tell it to add all of the related amount cells for "Checks," but
not ALL of the cells with amounts? I have a temp setup right now with IF
statements, but I'm limited to 30 cells due to the formula length. I feel
like this should be REALLY easy.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 903
Default How do you add related cells in a sum?

Hi Jarod,

Check HELP (if your version still has a decent HELP) for SUMIF

SUMIF Example
http://www.mvps.org/dmcritchie/excel/sumif.htm

Tip 74: Summing and Counting Using Multiple Criteria
http://www.j-walk.com/ss/excel/tips/tip74.htm
--
HTH,
David McRitchie, Microsoft MVP -- Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm



"Jarod" wrote...
I am trying to add certain groups within a spreadsheet. For example:

A group will have a type and an amount. If the type is "Check" then I want
it to add the amount in the sum "Total Checks." If the type is anything
else, then I want it to add the amount in the sum "Total Everything."

How do I tell it to add all of the related amount cells for "Checks," but
not ALL of the cells with amounts? I have a temp setup right now with IF
statements, but I'm limited to 30 cells due to the formula length. I feel
like this should be REALLY easy.

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
Sum.if criteria related to range of cells Desiree Excel Worksheet Functions 3 July 10th 07 12:40 AM
Select a category from a list that populates related cells Jules73 Excel Worksheet Functions 1 March 21st 07 07:28 PM
Temporarily highlighting related cells [email protected] Excel Discussion (Misc queries) 2 March 19th 07 02:35 PM
Count dollars in related cells My View Excel Discussion (Misc queries) 10 August 20th 06 12:35 PM
Search a worksheet and add related cells izbryte Excel Worksheet Functions 1 November 22nd 04 09:57 PM


All times are GMT +1. The time now is 05:05 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"