Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Tim Tim is offline
external usenet poster
 
Posts: 408
Default SUMIF with multiple conditions

I am using Excel 2010 to track purchases. I have 2 sheets in one workbook
and need to do a SUMIF that has 3 conditions.

Condition 1 is Status=processed (Column B)
Condition 2 is Quarter (1,2,3 or 4) (Column D)
Condition 3 is Line Item (Item1, Item2, etc.) (Column L)

The dollar amount is in Column J.


If the conditions on sheet2 are met then it will sum the dollar amount in
Sheet1.

How can I do this?

thank you.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,533
Default SUMIF with multiple conditions

Hi

You need a SumProduct formula:

=SUMPRODUCT(--(Sheet2!B2:B1000="processed"),--(Sheet2!D2:D1000=1),--(Sheet2!L2:L1000="Item1"),Sheet2!J2:J1000)

Regards,
Per

"Tim" skrev i meddelelsen
...
I am using Excel 2010 to track purchases. I have 2 sheets in one workbook
and need to do a SUMIF that has 3 conditions.

Condition 1 is Status=processed (Column B)
Condition 2 is Quarter (1,2,3 or 4) (Column D)
Condition 3 is Line Item (Item1, Item2, etc.) (Column L)

The dollar amount is in Column J.


If the conditions on sheet2 are met then it will sum the dollar amount in
Sheet1.

How can I do this?

thank you.


  #3   Report Post  
Posted to microsoft.public.excel.misc
Tim Tim is offline
external usenet poster
 
Posts: 408
Default SUMIF with multiple conditions

I'm sorry, but what the -- for?

Do I use + between each () argument or just ,?

"Per Jessen" wrote:

Hi

You need a SumProduct formula:

=SUMPRODUCT(--(Sheet2!B2:B1000="processed"),--(Sheet2!D2:D1000=1),--(Sheet2!L2:L1000="Item1"),Sheet2!J2:J1000)

Regards,
Per

"Tim" skrev i meddelelsen
...
I am using Excel 2010 to track purchases. I have 2 sheets in one workbook
and need to do a SUMIF that has 3 conditions.

Condition 1 is Status=processed (Column B)
Condition 2 is Quarter (1,2,3 or 4) (Column D)
Condition 3 is Line Item (Item1, Item2, etc.) (Column L)

The dollar amount is in Column J.


If the conditions on sheet2 are met then it will sum the dollar amount in
Sheet1.

How can I do this?

thank you.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default SUMIF with multiple conditions

If your list separator is the comma character (common in the USA), you'll use
the formula as written--no changes.

If your list separator is something else (a semicolon is common in other parts
of the world), then you'd use a semicolon (;) instead of the comma.

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

Tim wrote:

I'm sorry, but what the -- for?

Do I use + between each () argument or just ,?

"Per Jessen" wrote:

Hi

You need a SumProduct formula:

=SUMPRODUCT(--(Sheet2!B2:B1000="processed"),--(Sheet2!D2:D1000=1),--(Sheet2!L2:L1000="Item1"),Sheet2!J2:J1000)

Regards,
Per

"Tim" skrev i meddelelsen
...
I am using Excel 2010 to track purchases. I have 2 sheets in one workbook
and need to do a SUMIF that has 3 conditions.

Condition 1 is Status=processed (Column B)
Condition 2 is Quarter (1,2,3 or 4) (Column D)
Condition 3 is Line Item (Item1, Item2, etc.) (Column L)

The dollar amount is in Column J.


If the conditions on sheet2 are met then it will sum the dollar amount in
Sheet1.

How can I do this?

thank you.




--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
Tim Tim is offline
external usenet poster
 
Posts: 408
Default SUMIF with multiple conditions

I want to thank folks for their replies.

I was digging into trying to figure out how to make sumproduct work when I
ran acors SUMIFS and as it turns out that did exactly what I needed done.

Here's a sample of the SUMIFS function I used in my spreadsheet:
=SUMIFS('Sheet2'!J:J,'Sheet2'!B:B,"Processed",'She et2'!D:D,"1",'Sheet2'!L:L,B3)

Thanks again :-)


"Dave Peterson" wrote:

If your list separator is the comma character (common in the USA), you'll use
the formula as written--no changes.

If your list separator is something else (a semicolon is common in other parts
of the world), then you'd use a semicolon (;) instead of the comma.

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

Tim wrote:

I'm sorry, but what the -- for?

Do I use + between each () argument or just ,?

"Per Jessen" wrote:

Hi

You need a SumProduct formula:

=SUMPRODUCT(--(Sheet2!B2:B1000="processed"),--(Sheet2!D2:D1000=1),--(Sheet2!L2:L1000="Item1"),Sheet2!J2:J1000)

Regards,
Per

"Tim" skrev i meddelelsen
...
I am using Excel 2010 to track purchases. I have 2 sheets in one workbook
and need to do a SUMIF that has 3 conditions.

Condition 1 is Status=âprocessed❠(Column B)
Condition 2 is Quarter (1,2,3 or 4) (Column D)
Condition 3 is Line Item (âœItem1â, âœItem2â, etc.) (Column L)

The dollar amount is in Column J.


If the conditions on sheet2 are met then it will sum the dollar amount in
Sheet1.

How can I do this?

thank you.



--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default SUMIF with multiple conditions

=sumifs() was added in xl2007. If you have to revert to xl2003 or earlier,
you'll want to remember the =sumproduct() function.

Tim wrote:

I want to thank folks for their replies.

I was digging into trying to figure out how to make sumproduct work when I
ran acors SUMIFS and as it turns out that did exactly what I needed done.

Here's a sample of the SUMIFS function I used in my spreadsheet:
=SUMIFS('Sheet2'!J:J,'Sheet2'!B:B,"Processed",'She et2'!D:D,"1",'Sheet2'!L:L,B3)

Thanks again :-)

"Dave Peterson" wrote:

If your list separator is the comma character (common in the USA), you'll use
the formula as written--no changes.

If your list separator is something else (a semicolon is common in other parts
of the world), then you'd use a semicolon (;) instead of the comma.

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

Tim wrote:

I'm sorry, but what the -- for?

Do I use + between each () argument or just ,?

"Per Jessen" wrote:

Hi

You need a SumProduct formula:

=SUMPRODUCT(--(Sheet2!B2:B1000="processed"),--(Sheet2!D2:D1000=1),--(Sheet2!L2:L1000="Item1"),Sheet2!J2:J1000)

Regards,
Per

"Tim" skrev i meddelelsen
...
I am using Excel 2010 to track purchases. I have 2 sheets in one workbook
and need to do a SUMIF that has 3 conditions.

Condition 1 is Status=âprocessed❠(Column B)
Condition 2 is Quarter (1,2,3 or 4) (Column D)
Condition 3 is Line Item (âœItem1â, âœItem2â, etc.) (Column L)

The dollar amount is in Column J.


If the conditions on sheet2 are met then it will sum the dollar amount in
Sheet1.

How can I do this?

thank you.



--

Dave Peterson


--

Dave Peterson
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
SUMIF with multiple conditions Michelle Excel Worksheet Functions 8 February 4th 09 11:17 AM
Multiple Sumif conditions Alcala Excel Worksheet Functions 2 August 18th 08 05:30 PM
sumif with multiple conditions myl Excel Worksheet Functions 1 July 8th 08 09:35 PM
SUMIF with multiple conditions Johan Excel Worksheet Functions 3 June 23rd 08 12:10 PM
sumif with multiple conditions Slax Excel Worksheet Functions 5 April 12th 06 10:27 PM


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