Solved

Conditional format Excel Cell

Posted on 2016-11-17
3
54 Views
Last Modified: 2016-11-17
I have a spread sheet that I want the font in Cell D to be green when the value in cell A is TODAY and red when the Value is OLDER
0
Comment
Question by:skull52
[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
3 Comments
 
LVL 52

Accepted Solution

by:
Ryan Chong earned 500 total points
ID: 41891605
try this

Cell D to be green when the value in cell A is TODAY
use conditional fomatting formula:
=INDIRECT("$A$"&ROW())=TODAY()

Open in new window


and red when the Value is OLDER
use conditional fomatting formula:
=INDIRECT("$A$"&ROW())<TODAY()

Open in new window

28983745.xlsx
0
 
LVL 33

Expert Comment

by:Rob Henson
ID: 41891685
Why the INDIRECT??? The ROW part will change based on the Active cell so the Formatting will keep changing.

I assume OP means the cell in D of the same row in A, assuming starting in Row 2 with headers in row 1

For Green:
=$A2=TODAY()

For Red:
=$A2<TODAY()

When copied down the reference to row 2 will increase.

What about where date in A is in future, if that scenario can exist in your workbook?

Thanks
Rob H
1
 
LVL 33

Expert Comment

by:Rob Henson
ID: 41891694
EDIT to statement above; I was thinking of CELL("row") which changes with Active Cell. ROW() does give row number of row in which it is placed.

Even so, no need for INDIRECT.
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

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…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

635 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