I'm trying to substitute text in an excel formula with a cell reference to the text in a dropdown.
First formula that yields the correct answer is:
=(SUM(COUNTIFS('LP - All Properties'!G:G,{"Phoenix","Tucson"},'LP - All Properties'!L:L,"Leased")))/SUM(COUNTIF('LP - All Properties'!G:G,{"Phoenix","Tucson"}))
I want to replace the text "Phoenix" and "Tucson" with a cell reference to a dropdown containing those values. However, this formula doesn't yield the proper result:
=(SUM(COUNTIFS('LP - All Properties'!G:G,{"C2","D2"},'LP - All Properties'!L:L,"Leased")))/SUM(COUNTIF('LP - All Properties'!G:G,{"C2","D2"}))
I also tried without the quotation marks around C2 and D2, but that also did not work.