Pregunta

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

¿Fue útil?

Solución

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)),"")
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top