Count the data in column on sheet 2 from results in column on sheet 1 after matching data in corresponding column

DanJones

New Member
Joined
Jan 31, 2022
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Sheet1
1643627655808.png
Sheet 2
1643627768389.png


Hi, I am trying to do a calculation if column D in Sheet 1 = As Built, it takes the corresponding data in Column K and counts the occurrences of it in Column H on Sheet 2. I have tried all sorts of combinations of INDEX, COUNT, SUMPRODUCT etc. the closest I am getting is =SUMPRODUCT(--ISNUMBER(MATCH('CBT OR Chamber'!K:K,'SY-property-statuses'!H:H,0))) but that is not taking into account the column D in Sheet 1 = As Built. Please help, new to this forum and it's the first time I have been this stuck, so sorry if it is a stupid repeated question!
 
=COUNT(FILTER(ROW('SY-property-statuses'!H2:H1000),ISNUMBER(MATCH('SY-property-statuses'!H2:H1000,FILTER('CBT OR Pole'!K2:K1000,'CBT OR Pole'!D2:D1000=A4),0)),""))
Brilliant, thank you so much
 
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,757
Messages
6,126,693
Members
449,331
Latest member
smckenzie2016

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