Text in cell range

jasonbrooks

New Member
Joined
Aug 13, 2011
Messages
2
Hi,

I am hoping someone can help with what I suspect is a simple requirement...

Cells C3 through to C6 contains the words "one", "two" and/or "three".

If any cells between C3 and C6 contains the text "one", I need cell C2 to display "Good".

If all cells between C3 and C6 contains the text "two", I need cell C2 to display "Bad".

If all cells between C3 and C6 contains the text "three", I need cell C2 to display "Ugly".

If the cells between C3 and C6 contains the text "two" and "three", I need cell C2 to display "Bad".

I hope someone can help.....it would really make my day...... :)
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hi,
Give this a swing:
=IF(COUNTIF(C3:C6,"One")>0,"Good",
IF(COUNTIF(C3:C6,"Three")=4,"Ugly",
IF(AND(COUNTIF(C3:C6,"Three")>0,COUNTIF(C3:C6,"Two")>0),"Bad",
IF(COUNTIF(C3:C6,"Two")=4,"Bad","unspecified"))))
 
Last edited:
Upvote 0
You are the man for sure! Thank you!

I wish I could give you a Fist Full of Dollars.......



.....sorry, I couldn't resist!

Thanks again!!!
 
Upvote 0
Welcome to The Board.

For a Few Dollars More you can get Two Mules for Sister Sarah and go to Tombstone where, save three known as The Outlaw Josey Wales, Pale Rider, and a man known only as [The] High Plains Drifter, they are all Unforgiven and known to Hang 'Em High.

it was an impulse...:grin:
 
Upvote 0

Forum statistics

Threads
1,224,548
Messages
6,179,448
Members
452,915
Latest member
hannnahheileen

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