#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 61
Default Sumif question

Is it possible to use a sumif function with two conditions? For Example,
SUMIF Column A = Past Due, AND Column B = Sum of Qty

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default Sumif question

An easier way might be to use SUMPRODUCT.

=SUMPRODUCT(--(A1:A100="Past Due"),--(B1:B100="Sum of Qty"),(C1:C100))

Anchor / expand the ranges as needed.
--
John C


"lightbulb" wrote:

Is it possible to use a sumif function with two conditions? For Example,
SUMIF Column A = Past Due, AND Column B = Sum of Qty

Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Sumif question

=sumproduct(--(a1:a10="past due"),--(b1:b10="sum of qty"),c1:c10)

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=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

============
This sounds like you're working with data that is (or used to be) in a
pivottable.

Maybe you can just change the layout to get what you want.

Take a look at Debra Dalgleish's site:
http://contextures.com/xlVideo001.html
and
http://contextures.com/xlPivot02.html

lightbulb wrote:

Is it possible to use a sumif function with two conditions? For Example,
SUMIF Column A = Past Due, AND Column B = Sum of Qty

Thanks!


--

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
Help Please SUMIF question baz Excel Discussion (Misc queries) 1 February 14th 08 11:39 PM
SUMIF question Billy B Excel Worksheet Functions 4 January 30th 08 10:44 PM
Sumif Question? Jay Excel Discussion (Misc queries) 8 December 14th 07 04:24 PM
Sumif question Harry Webster Excel Worksheet Functions 2 June 9th 07 01:02 AM
SUMIF question alice Excel Discussion (Misc queries) 2 November 24th 05 02:55 PM


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