Code: Select all
=IF(AND(D2=O2,Z2,AK2,AV2,BG2),"all same","different")
However, I need something a bit more dynamic, I need a formula that can ignore / not include any cells in the array in the AND ststement if those cells say 'not used'. For example, if D2, O2, Z2, AK2 and AV2 all held 'bananas' but BG2 held 'not used' I want to know that AND(D2, O2, Z2, AK2, AV2) are '"all same".
Does such a formula exist?
Thanks,
Ken