Formula Help

Copper Contributor

I need help with a formula.  I have 3 cells, D20, D21, and D22, IF any of these three cells contains an "X", then the cell with the formula displays "X".  If none of the cells contain an "X", then the formula cell is empty; "".

 

Thanks in advance.

2 Replies
Try this:
=IF(COUNTIF(D20:D22,
“X”),”X”,””)

@David869197 

Or if there is only X or empty possible.

 

=IF(COUNTA(D20:D22),"X","")

 

Or just:

=COUNTA(D20:D22)

and number format as

"X";;;