IF "THIS or THIS or THIS" then DOTHIS BUT IF "THIS or THIS or THIS" AND ALSO "THAT" then DOTHAT

jnrpal

New Member
Joined
Jul 6, 2019
Messages
1
Sorry if the title is confusing, I think i might be going crazy by now haha.

Trying to look at two columns of data and output accordingly.

to simplify it lets say COLUMN A can have data input either (1,2,3) or any combination of them ie. 12, 123, 13, 23
COLUMN B can have data input (1, 2, 3, 4, 5) and certain combinations of them (combinations not relevant for this question).

I want COLUMN C to output a word depending on what COLUMN A says.
example 1 = left, 2= center, 3= right , 12 =left and center, 123 = left, center and right.
so If COLUMN A has (1 OR 12 OR 123 OR 13) then it outputs LEFT in that column. (there's also two more columns to capture center and right but again can just copy the result of this for them)
BUT
If COLUMN A has (1 OR 12 OR 123 OR 13) AND COLUMN B has the value of 1 then i want COLUMN C to output the word CRITICAL.

I can copy my formulas i have so far if that helps, appreciate any and all help, I'm pulling my hair out and I've read so much online to no avail.

Thankyou
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Re: I'm going crazy....IF "THIS or THIS or THIS" then DOTHIS BUT IF "THIS or THIS or THIS" AND ALSO "THAT" then DOTHAT. Can this work?

that would suit a lookup table

Excel Workbook
ABCDE
11left2centre
22centre
33right
412left centre
513left right
623centre right
7123left centre right
Sheet1
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,387
Members
449,080
Latest member
Armadillos

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top