質問

I have a problem that if A2 is blank then B1 should show and if b2 also blank then c1 should show and if c2 also blank then d1 should show.

So how can I create a formula?

Thanks in advance

役に立ちましたか?

解決

The suggested nested IF()s solution:

=IF(A2="",IF(B2="",IF(C2="",IF(D2="","",D$1),C$1),B$1),A$1)

For something a bit more scaleable, you could use:

=IFERROR(INDEX(A$1:D$1,MATCH("*",A2:D2,0)),"")
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top