Return text based on differnt text in a range

osaben

Board Regular
Joined
Mar 17, 2010
Messages
62
Office Version
  1. 365
Platform
  1. Windows
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

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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