Hi,
I have the below formula that is not working for me when using named ranges:
=IF(AND(V2=STATE,Z2=CITY),"CUST",V2)
STATE and CITY are both named ranges on a separate sheet (STATE= BL2 and CITY= BJ2:BJ10)
When both of the conditions are met/true, the formula is not returning "CUST" like I'm expecting. It's just returning the value in V2.
I also tried using a COUNTIF formula:
=IF(COUNTIF(STATE,V2)+COUNTIF(CITY,Z2),"CUST",V2)
But now it is returning "CUST" when only 1 of the conditions are met (either one).
Any help would be appreciated, thanks.
I have the below formula that is not working for me when using named ranges:
=IF(AND(V2=STATE,Z2=CITY),"CUST",V2)
STATE and CITY are both named ranges on a separate sheet (STATE= BL2 and CITY= BJ2:BJ10)
When both of the conditions are met/true, the formula is not returning "CUST" like I'm expecting. It's just returning the value in V2.
I also tried using a COUNTIF formula:
=IF(COUNTIF(STATE,V2)+COUNTIF(CITY,Z2),"CUST",V2)
But now it is returning "CUST" when only 1 of the conditions are met (either one).
Any help would be appreciated, thanks.