Counting cells using multiple criteria

Randomhero180

New Member
Joined
Sep 14, 2011
Messages
44
Hey All, I am working with a massive spreadsheet and have tried to adapt different functions to count the number of instances multiple criteria appear.

Here are the things I need

1) Range B19:E12678 I want to count if any cell has "estimate approved", "Product Ordered", "Product Staged", or "Photography Complete"

2) Range H19:H12678 This column has a date in it and I want it to count only items that fall in this month (ie Sept for this month)

3) Range V19:V12678 contains 4 different values COP, GB, FVD, NF I am looking to get a number for each category.

For example: how many items this month (sept) in the category COP, have the status update "estimate approved", "Product Ordered", "Product Staged", or "Photography Complete"

Thanks for any help!

RH
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Assuming that you mean B19:B12678 try

=SUMPRODUCT(--ISNUMBER(MATCH(B19:B12678,{"estimate approved","Product Ordered","Product Staged","Photography Complete"},0)),--(MONTH(H19:H12678)=9),--(V19:V12678="COP"))
 
Upvote 0
No I do mean B19:E12678

can I look at that entire range? or do i need a part in the function for column b,c,d,e ?

and that code works great for the column BTW, just gotta figure out how to count the other columns as well
 
Last edited:
Upvote 0
Here is the solution I came up with that works great.

=SUMPRODUCT(--ISNUMBER(MATCH(Sheet1!B19:E12678,{"Estimate Approved","Product Ordered","Product Staged","Photography Complete"},0))*(Sheet1!V19:V12678="COP")*(MONTH(Sheet1!H19:H12678)=9))

Thanks VoG for pointing me in the right direction!
 
Upvote 0
It wouldn't let me edit my last post, but I feel this is important to mention.

Switched the end my formula to this:

(MONTH(Sheet1!H19:H12678)=MONTH(TODAY())))

This way it will automatically keep up with the current month.

RH
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,894
Members
452,948
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top