Solved

Simple Conditional Formatting (Traffic Lights!)

Posted on 2014-01-24
5
179 Views
Last Modified: 2014-01-24
Hi,

See attachments which should be clear.

Simple enough conditional formatting which I can't get to work.

If Sales!B2 < TrafficLights!$C$2 then Sales!B2 should be Orange
If Sales!B2 < TrafficLights!$B$2 then Sales!B2 should be Red

This logic should apply to columns B to E in Sales Spreadsheet

Thanks for your time!
TrafficLights.xlsm
0
Comment
Question by:Patrick O'Dea
  • 2
  • 2
5 Comments
 
LVL 49

Accepted Solution

by:
Rgonzo1971 earned 250 total points
ID: 39805941
Hi,

pls try

Regards
TrafficLightsV1.xlsm
0
 
LVL 32

Assisted Solution

by:Rob Henson
Rob Henson earned 250 total points
ID: 39805974
Select area starting at B2 and apply Conditional Formatting by formula with the following:

For CF Orange
=AND(B2>TrafficLights!$B2,B2<TrafficLights!$C2)

For CF Red
=B2<TrafficLights!$B2

Thanks
Rob H
0
 
LVL 49

Expert Comment

by:Rgonzo1971
ID: 39806039
Hi,

In my solution the CF Red is before the CF Orange and I use Stop if True to avoid being Orange
with equivalent formulas to

Red:B2 < TrafficLights!$B2
Orange: B2 < TrafficLights!$C2

@RobHenson
Shouldn't your formula for Orange be
=AND(B2>=TrafficLights!$B2,B2<TrafficLights!$C2)


Regards
0
 
LVL 32

Expert Comment

by:Rob Henson
ID: 39806108
I tried with the "Stop If True" box being ticked after first condition but didn't seem to be working for some reason, hence why I went for the less than one value for condition 1 and between two values for condition 2; indeed the second should have the >= rather than just >.

Thanks
Rob
0
 

Author Closing Comment

by:Patrick O'Dea
ID: 39806181
Great stuff!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Excel VBA get Access table names with ADO 2 24
Excel error  #DIV/0! 7 22
Select Next Route by Time 4 22
Excel formula or function to count time differences 4 40
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question