adding another criteria

Patcheen

Active Member
Joined
Sep 28, 2015
Messages
391
Office Version
  1. 365
Platform
  1. Windows
Hi all

im trying to add 1 more criteria to this formula but cant seem to work out what exactly i need.

this is the current criteria
=IF(I5<>"home","",COUNTIFS($I$5:$I5,$I5,$K$5:$K5,$K5))

i is the home / Away column

k is the score result 3-1 ext etc

what i want to add is the league to the above criteria

in column N i have the league name LC

how do i add the above column to the above criteria

i tried this but to no avial

=IF(I5<>"home","",COUNTIFS($I$5:$I5,$I5,$K$5:$K5,$K5,N5:N5,L2)) (L2 is the reference to where all the games that match L2 (LC in column N)

TIA
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Without test data I can only assume:

=IF(I5<>"home","",COUNTIFS($I$5:$I5,$I5,$K$5:$K5,$K5,$N5:$N5,$L$2))
 
Upvote 0
i tried this but to no avial

=IF(I5<>"home","",COUNTIFS($I$5:$I5,$I5,$K$5:$K5,$K5,N5:N5,L2))
I think that you may need to add these two red $ signs into your formula.
=IF(I5<>"home","",COUNTIFS($I$5:$I5,$I5,$K$5:$K5,$K5,N$5:N5,L$2))
 
Upvote 0
Solution
Without test data I can only assume:

=IF(I5<>"home","",COUNTIFS($I$5:$I5,$I5,$K$5:$K5,$K5,$N5:$N5,$L$2))
Thanks Dante but this only threw up the #Value! i know it wasnt easy without a sample workbook and thank you for taking the time for trying to help. Appreciated.
 
Upvote 0
I think that you may need to add these two red $ signs into your formula.
=IF(I5<>"home","",COUNTIFS($I$5:$I5,$I5,$K$5:$K5,$K5,N$5:N5,L$2))
Thank you so much Peter for your solution it worked a treat and thank you for taking the time for helping. Appreciated.
 
Upvote 0
You are welcome. Thanks for giving feedback on the suggestions. (y)
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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