Home

Formula Question

Highlighted
MVS21
Occasional Visitor

I have a question.  I hope you can help.  I have a file that has a value in column A.  In the Result column, I’d like to put GREEN if any one of these values is in Column A.

M1C,M1R,M9V,M9W,M9L,M9M,M3N,M3L,M3M,M3J,M3K,M3H,M2R,M2M,M2N,M2M.M2K,M2H,M2J,M1W,M1V,M1T,M1S,M1X,M1B

 

I can do it if it is one value (M1C), but not a whole bunch of values at once.

 

Do you know if the formula can accommodate multiple values to check for?

1 Reply

Hi,

 

You may put all your codes in some column, let say to Z1:Z17 or so, and when

=IF(COUNTIF($Z$1:$Z$17,A1),"GREEN", "RED")
Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
16 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
11 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
*Updated 9/3* Syncing in Microsoft Edge Preview Channels
Elliot Kirk in Articles on
217 Replies