Match Cell Text in one or more cells to give result

november_whiskey

New Member
Joined
Nov 20, 2009
Messages
6
I have six cells (C17, C21, C25, C29, C33, C37) where you can select Red, Amber or Green in each cell.

In another cell on the spreadsheet I want this cell to automatically tell me Red if one of the six cells has Red selected, Red if three of the six cells have Amber selected, Amber if 1 or 2 of the cells have Amber Selected and Green if the previous conditions do not apply.

If anyone can help I would be grateful.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
How do you "select Red, Amber or Green in each cell" ?
Is this just purely text or are colouring the cells in those colours?
 
Upvote 0
Drop down list and there is a conditional format which selects a colour dependant on the selected drop down, e.g. Select "Red, the cell colour changes to Red.
 
Upvote 0
A formula cannot determine the colour of a cell, only VBA can.
But you can use the same conditional formats of those Cxx cells to get the result you want.

What's the conditional format of those Cxx cells say (in its entirety) to turn them Red Amber Green?
 
Last edited:
Upvote 0
A formula cannot determine the colour of a cell, only VBA can.
But you can use the same conditional formats of those Cxx cells to get the result you want.

What's the conditional format of those Cxx cells say (in its entirety) to turn them Red Amber Green?


I dont want to determine by colour. I want to determine by the text in the drop down.
 
Upvote 0
Format as green and enter these Conditional Formats:

=(COUNTIF(C17:C37,"Red")=1)
=(COUNTIF(C17:C37,"Amber")=3)
=(COUNTIF(C17:C37,"Amber")=2)
 
Upvote 0

Forum statistics

Threads
1,214,528
Messages
6,120,065
Members
448,941
Latest member
AlphaRino

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