Count If with Index/Match formula

Gliffix101

Board Regular
Joined
Apr 1, 2014
Messages
81
Hello,

I am looking for some assistance with a formula. I found one thread that references a similar ask, but since it's dated I did not want to post any follow up questions/clarifications.

I have the following formula:

=COUNTIFS(Data!$C:$C,'Master Summary'!B13,Data!E:E,"Pass")

This formula is counting only if Column C:C equals the value in Cell B13 and any references of "Pass" in Column E:E.

I'd like to make this formula dynamic so that instead of a direct reference to "Data!E:E" I can have it find the column header (rage E1:CE1) and when it finds the header, it counts the passes in that column.

Basically, the formula should say:
1) Find B13 in Column C (this will never change)
2) Find M13 and search E1:CE1 for this value (this will identify the search column)
3) Count all values of "Pass" in the Search column

Any help would be appreciated.

Thank you,

Bill
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
If I'm understanding correctly, put this as your 3rd argument:

INDEX(Data!$E:$CE, 0, MATCH([string to find], Data!$E$1:$CE$1, 0))
 
Upvote 0

Forum statistics

Threads
1,215,042
Messages
6,122,810
Members
449,095
Latest member
m_smith_solihull

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