Jan 21 2023 08:11 AM
Good morning!
I am trying to count the number of vacancies in site GHI if the square footage (SF) is created by the use of a formula. But I want to do it as it is laid out on the attached.
I am looking for the fight formula to enter into the yellow highlighted cell on the attached (cell C12).
I believe it is a combination of COUNTIFS(SITES!B:B,B2,SITES!N:N,B12) and SUMPRODUCT(--ISFORMULA(SITES!P:P)) but I don’t know how to merge them in order to understand the answer to this question:
Depending on the text in USE:B2, filter SITES: B:B by that text, then count cells in SITES: N:N which include the text that exists in USE:B12, if SITES: P:P is a formula.
Jan 21 2023 08:19 AM
On which Excel platform/version you are?
Jan 21 2023 08:24 AM
SolutionThis may work for you if you've got access to FILTER.
=LET(sites,SITES!B3:B13,type,SITES!N3:N13,SF,SITES!P3:P13,filtered,FILTER(sites,(sites=$B$2)*(type=$B$12)*(ISFORMULA(SF))),ROWS(filtered))
Jan 21 2023 08:37 AM
Jan 21 2023 08:41 AM - edited Jan 21 2023 08:41 AM
You guys are amazing. I am in awe. It actually indices uncontrollable laughter to see this artistry at work. SMH. I'm at a loss. Thank you for your help.
OH, and I'll be back for more help soon!
Jan 21 2023 08:46 AM - edited Jan 22 2023 02:28 PM
Glad I could help! Thank you for providing the sample workbook. That goes a long way in this forum in getting a quick solution (or three).
Jan 22 2023 02:17 PM
An alternative for older versions of Excel could be SUMPRODUCT.
=SUMPRODUCT(($B$2=SITES!$B$3:$B$13)*(USE!$B$12=SITES!$N$3:$N$13)*ISFORMULA(SITES!$P$3:$P$13))