Countifs with multiple criterias

wrkforce1

New Member
Joined
Jan 15, 2019
Messages
6
I'm trying to get a total count of how many times a tag was used, but the table export I have isn't the best to work with. I'm not able to just add in two criterias for countifs like I typically do. I'm thinking I would need to do a countif+index match, any one can find the easiest way to do this?

The tags are listed horizontally after the scores. I'm able to get the total number of times each tag was used, but I want to know how many times the tag was used with a score # criteria.

I tried =countifs($D:$AF,B2,C:C,"<=4") but getting an error. The intention was to see how many times the tag in cell B2 (a cell on another sheet where I have a running list of the tags listed) with the score of 1-4 were used.

Sample of the table I'm using:

1600119685543.png
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Assuming your data on Sheet1 like this:
varios 14sep2020.xlsm
ABCDEFGH
1datescore
201-sep1GB Plus - upSWATSWATSWATSWAT
302-sep2SWATGB PlusSWATSWATSWAT
403-sep3SWATSWATGB PlusSWATSWAT
504-sep4SWATSWATSWATT2 PHSWAT
605-sep5SWATSWATSWATSWATSWAT
706-sep6SWATSWATGB PlusSWATSWAT
807-sep7SWATSWATSWATSWATSWAT
908-sep3SWATGB Plus - upSWATSWATSWAT
1009-sep4SWATSWATSWATSWATGB Plus
1110-sep5GB PlusSWATSWATSWATSWAT
1211-sep6SWATSWATSWATSWATGB Plus
Sheet1


Put the following formula on sheet2 in cell C2 and copy down:
varios 14sep2020.xlsm
ABC
1
2GB Plus3
3GB Plus - up2
4
Sheet2
Cell Formulas
RangeFormula
C2:C3C2=SUMPRODUCT((Sheet1!$D$2:$AF$1000=Sheet2!B2)*(Sheet1!$B$2:$B$1000<=4))
 
Upvote 0
@DanteAmor - Thanks so much!! That worked! I didn't know I could use sumproduct like that, but this was so much easier.

If I'm looking for total count between two numbers, ie. scores between 5 -7, how would I write that using sumproduct.
 
Upvote 0
If I'm looking for total count between two numbers, ie. scores between 5 -

Excel Formula:
=SUMPRODUCT((Sheet1!$D$2:$AF$1000=Sheet2!B2)*(Sheet1!$B$2:$B$1000>=5)*(Sheet1!$B$2:$B$1000<=7))
 
Upvote 0

Forum statistics

Threads
1,214,589
Messages
6,120,416
Members
448,960
Latest member
AKSMITH

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