More than one "IF" condition

merryperson

Board Regular
Joined
Apr 27, 2005
Messages
72
I have a column of numbers and have created a new column to report the formula.

What I need to do is search the column and report back if the column contains 9335,9333 or 9338.I can do this using the formula =IF(E2=9335,9335,0) to get the one search result but how do I add the search for 9333 and 9338 as well as 9335?

For example my formula picks up
Expn Result
9335 9335
9333 0
9304 0
9335 9335
9338 0
9304 0
9335 9335

What I want is tha search for 9333,9335 and 9338
Expn Result
9335 9335
9333 9333
9304 0
9335 9335
9338 9338
9304 0
9335 9335

I hope this makes sense
Thanks
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,214,584
Messages
6,120,385
Members
448,956
Latest member
JPav

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