Solved

Simple Conditional Formatting (Traffic Lights!)

Posted on 2014-01-24
5
196 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 51

Accepted Solution

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

pls try

Regards
TrafficLightsV1.xlsm
0
 
LVL 33

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 51

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 33

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

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.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

734 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