in a tangle with.... multiple-conditions-&-possibilities-for-multiple-ifs

ellison

Active Member
Joined
Aug 1, 2012
Messages
356
Office Version
  1. 365
Platform
  1. Windows
Hi, I'm going around in circles trying to figure out how to do multiple IFS based on the contents of 2 cells.....
I'm not sure I've explained that very well, but hopefully this may help!

Sequence
1. If Col B is blank, do nothing, if not…
2. If Col C contains "alpha", return alpha into Column D
3. If Col C contains "beta", return beta into Column D
4. If Col C contains neither "alpha" nor "beta", return "not found" into Column D

mulltiple-conditions-&-possibilities-for-mutiple-ifs.xlsx
ABCDEFG
1RowInfo-1Info-2GoalReasoningSequence
223text contains alphaalphaCol B is NOT blank, Col C contains alpha1. If Col B is blank, do nothing, if not…
33alphaCol B is blank, so nothing2. If Col C contains "alpha", return alpha
445betabetaCol B is NOT blank, Col C contains beta3. If Col C contains "beta", return beta
55text contains betaCol B is blank, so nothing4. If Col C contains neither "alpha" or "beta", return "not found"
662not foundCol B is NOT blank, Col C does NOT contain either alpha or beta
77Col B is blank, so nothing
885___ ALPHA ____alphaCol B is NOT blank, Col C contains alpha
998____BETA____betaCol B is NOT blank, Col C contains beta
1010____BETA____Col B is blank, so nothing
Sheet1
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Place this formula in cell D2 and copy down:
Excel Formula:
=IF(B2="","",IF(ISNUMBER(SEARCH("alpha",C2)),"alpha",IF(ISNUMBER(SEARCH("beta",C2)),"beta","not found")))
 
Upvote 0
Solution
How about
Excel Formula:
=IF(B2="","",IF(ISNUMBER(SEARCH("alpha",C2)),"alpha",IF(ISNUMBER(SEARCH("beta",C2)),"beta","Not found")))
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

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