Return text based on differnt text in a range

osaben

Board Regular
Joined
Mar 17, 2010
Messages
55
I would like to have a cell display the text "Process" if all of the cells in a range contains the word "Yes". Any of the cells in that same range contain the text "No" then have the cell display the text "Stop". And finally if any of the cells in a range contain "select one", the have the cell display nothing.

Thank you!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
We would need some more information to help. In what column do you want to display "Process" or "Stop" or nothing? I assume that the range to search would be in the same row as the word "Process". What is the search range than contains "Yes', "No" or "select one"? If you could post a screen shot of your sheet, that would help or describe in more detail the organization of your data.
 
Upvote 0
This might help. It is a nested IF statement so it's ugly, but it works.

[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]
Book1
BCD
1processStop
2
3range1range2range3
4yesnono
5yesyesyes
6yesyesyes
7yesyesselect one
8yesyesyes
9yesnono
10yesyesyes
11yesyesselect one
12yesyesyes
13yesyesyes
14yesnono
Sheet31
Cell Formulas
RangeFormula
B1=IF(COUNTIFS(B4:B14,"select one")>0,"",IF(COUNTIFS(B4:B14,"no")>0,"Stop",IF(COUNTIFS(B4:B14,"yes")=COUNTA(B4:B14),"process","other")))
[/FONT]
 
Upvote 0

Forum statistics

Threads
1,215,273
Messages
6,123,985
Members
449,137
Latest member
abdahsankhan

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