Countifs with match and multiple criteria between two tables

BlueRuby001

New Member
Joined
Mar 24, 2022
Messages
9
Office Version
  1. 2013
Platform
  1. Windows
Wracking brain for two days on this.
Have two tables and trying to count how many in table 1 column A match table 2 column A and of those in table 1 that have matches, how many of those have the value "Y" in table 2 column B.

Tried variations of countifs with match, sumproduct etc with no luck so far and im sure i missed something stupidly simple.

Help is greatly appreciated.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hi & welcome to MrExcel.
How about
Excel Formula:
=SUMPRODUCT((ISNUMBER(MATCH(Table2[Column1],Table1[Column1],0)))*(Table2[Column2]="Y"))
 
Upvote 0
Solution
Hi & welcome to MrExcel.
How about
Excel Formula:
=SUMPRODUCT((ISNUMBER(MATCH(Table2[Column1],Table1[Column1],0)))*(Table2[Column2]="Y"))
OMG! That works!! Thank you thank you thank you!!! I think i messed my variations previously up by incorporating the second criteria in the same brackets as the ISNUMBER function.
One last question, how would I incorporate a third criteria such as "of those that are matches and "Y" are also greater than or equal to today()? i tried adding a *(third criteria) onto the end but it didn't take:
1648226777273.png


again i cannot thank you enough for your help, I normally figure these out on my own, but this is the first one to stump me.
 
Upvote 0
You need to remove the quotes from the >=
 
Upvote 0
Are both tables the same size?
 
Upvote 0
Ok, how about
Excel Formula:
=SUMPRODUCT((COUNTIFS(Table2[Column1],Table1[Column1],Table2[Column2],"y"))*(Table1[Date]>=TODAY()))
 
Upvote 0
it
Ok, how about
Excel Formula:
=SUMPRODUCT((COUNTIFS(Table2[Column1],Table1[Column1],Table2[Column2],"y"))*(Table1[Date]>=TODAY()))
it returns the wrong count value (same count as without the date criteria):

1648239209798.png
 
Upvote 0

Forum statistics

Threads
1,215,371
Messages
6,124,529
Members
449,169
Latest member
mm424

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