Forum Discussion

Danger_SF's avatar
Danger_SF
Brass Contributor
Jan 21, 2023
Solved

Ugh. I'm at my wits end. Trying to combine two formulas and I'm stuck.

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.

  • Danger_SF 

    This 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))
  • Patrick2788's avatar
    Patrick2788
    Silver Contributor

    Danger_SF 

    This 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))
    • Danger_SF's avatar
      Danger_SF
      Brass Contributor

      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! 😄

      • Patrick2788's avatar
        Patrick2788
        Silver Contributor

        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).

Resources