ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to add traffice light (https://www.excelbanter.com/excel-worksheet-functions/236913-how-add-traffice-light.html)

Avadh

How to add traffice light
 
Hi,

I am looking for a solution to add the 2 traffic lights so that get a
Cumulative status.

For eg : red + amber is red
red + green is red
amber + green is amber
red+red is red
amber + amber is red
green + green is green

Thanks in advance,
Avadh


smartin

How to add traffice light
 
Avadh wrote:
Hi,

I am looking for a solution to add the 2 traffic lights so that get a
Cumulative status.

For eg : red + amber is red
red + green is red
amber + green is amber
red+red is red
amber + amber is red
green + green is green

Thanks in advance,
Avadh


Is this an Excel question, and if so, how?

Michael.Tarnowski

How to add traffice light
 
On Jul 15, 11:52 am, Avadh wrote:
Hi,

I am looking for a solution to add the 2 traffic lights so that get a
Cumulative status.

For eg : red + amber is red
red + green is red
amber + green is amber
red+red is red
amber + amber is red
green + green is green

Thanks in advance,
Avadh


Hi Avadh,
in my eyes it's a question of upper and lower limits.
a.) define upper and lower limits for each traffic light color; assign
the color for all data in these ranges.
b.) define rules for cumulative traffic lights, i.e. cumulation of
these tolerance ranges.

Have fun, cheers
Michael

MyVeryOwnSelf[_2_]

How to add traffice light
 
I am looking for a solution to add the 2 traffic lights so that get a
Cumulative status.

For eg : red + amber is red
red + green is red
amber + green is amber
red+red is red
amber + amber is red
green + green is green


Though I'm not sure what "cumulative status" means in this context, let me
address the color combinations that are specified.

If the two text values are in A1 and B1, the following formula gives the
specified result:

=CHOOSE(((A1="red")+2*(A1="amber")+3*(A1="green")) *
((B1="red")+2*(B1="amber")+3*(B1="green")),
"red","red","red","red",NA(),"amber",NA(),NA(),"gr een")

Explanation: The formula counts red as 1, amber as 2, and green as 3. Then
it multiplies the two numbers. The product is between 1 and 9, but cannot
be 5, 7, or 8. The CHOOSE(...) returns the specified result for each of the
color pairs. (Multiplication works here but not addition, because 4 = 2+2 =
3+1 is ambiguous.)

Modify to suit.

MyVeryOwnSelf[_2_]

How to add traffice light
 
Multiplication works here but not
addition, because 4 = 2+2 = 3+1 is ambiguous.


On second thought, addition can work, too. Here's a variation using
addition:

=CHOOSE((A1="red")+2*(A1="amber")+4*(A1="green")+
(B1="red")+2*(B1="amber")+4*(B1="green"),
NA(),"red","red","red","red","amber",NA(),"green")


All times are GMT +1. The time now is 08:38 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com