#1   Report Post  
 
Posts: n/a
Default Sumif 2 criteria

Hey,

I'm having some difficulty extracting some of the information I need
from my database. What I need to do is do a count based on 2 criteria
in 2 columns. HELP please :)
This is totaly incorrect code but it will help get the idea across

sumif(a1:a5600, 3) & sumif(b1:b5600, 1)

Thanks
Andrew

  #2   Report Post  
Domenic
 
Posts: n/a
Default

Try...

=SUMPRODUCT(--(A1:A5600=3),--(B1:B5600=1))

or

=SUMPRODUCT(--(A1:A5600=D1),--(B1:B5600=E1))

....where D1 contains your first criterion, such as 3, and E1 contains
your second criterion, such as 1.

Hope this helps!

In article .com,
wrote:

Hey,

I'm having some difficulty extracting some of the information I need
from my database. What I need to do is do a count based on 2 criteria
in 2 columns. HELP please :)
This is totaly incorrect code but it will help get the idea across

sumif(a1:a5600, 3) & sumif(b1:b5600, 1)

Thanks
Andrew

  #3   Report Post  
 
Posts: n/a
Default

worked perfect, Thanks

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
How do I use the sumif if I have multiple criteria (i.e. greater . Kellyatisl Excel Worksheet Functions 3 June 4th 06 06:33 AM
SUMIF with Mutiple Ranges & Criteria PokerZan Excel Discussion (Misc queries) 5 August 4th 05 10:31 PM
SumIf Criteria Matches Debbie Dies Excel Worksheet Functions 4 August 1st 05 11:18 PM
"criteria" in a sumif refering to the value in another cell mark Excel Discussion (Misc queries) 1 January 31st 05 07:39 PM
Can I use a cell reference in the criteria for the sumif function. Number Cruncher Excel Worksheet Functions 2 November 4th 04 07:52 PM


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