If it is guaranteed that there is a single Yes in C1:J1, then
=SUMPRODUCT((C1:J1="Yes")*(COLUMN(C1:J1)))
will give you the column number of that Yes value.
If you'd want a check before applying the above computation, use
=IF(COUNTIF(C1:J1,"Yes")=1,SUMPRODUCT((C1:J1="Yes")*(COLUMN(C1:J1))),"Error: Too many Yes values")
Also, if you want to have the address of the Yes cell, use
=ADDRESS(1,SUMPRODUCT((C1:J1="Yes")*(COLUMN(C1:J1))))
or (includes the check)
=IF(COUNTIF(C1:J1,"Yes")=1,ADDRESS(1,SUMPRODUCT((C1:J1="Yes")*(COLUMN(C1:J1)))),"Error: Too many Yes values")
Aladin
==========
=ADDRESS(1,MATCH("Yes",A1:G1,0))
the 1 before the MATCH is the ROW, if C1 is the Yes, then the above gives $C$1.
=LEFT(ADDRESS(COLUMN(A1:A30,1),3) & MATCH("Yes",A1:A30,0)
If A21 is the Yes then the above gives $A$21.
To work right your formula range needs to start in A for the column formula (the first one) and the range needs to start in 1 for the row formula (the second one) even if you do not have data in some of the cells. JSW