Solved

Excel 2007 - Conditional Formatting of a Row based on a Date and a Text Field

Posted on 2013-11-03
2
274 Views
Last Modified: 2013-11-07
I have a list of invoices with the usual Invoice Number, Invoice Date, Client Name, etc. columns.

I want to change the colour to Red if the value in the Invoice Date column is over 45 days AND if the value in the Paid column is "No".

I was able to figure out how to apply the format change to the Invoice Date column if over 45 days but was unable to add the condition based on the Paid column. And extending it over the whole row? Couldn't figure that out yet...

Anyone able to help me out?

Thanks very much,

John
0
Comment
Question by:243johnm
2 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 39620444
Hello John,

Lets assume your data is in A2:E100 with Invoice date in column B and and "Paid" column is E

Select that whole range A2:E100 and apply the formula that applies for the first row of data in conditional formatting, i.e. using the "use a formula to determine which cells to format" option

=AND(TODAY()-$B2>45,$E2="No")

That will automatically format the whole row and apply to the range you selected

You need to use the $ signs exactly as I did, see example attached

regards, barry
cf-45days.xlsx
0
 
LVL 1

Author Closing Comment

by:243johnm
ID: 39630773
Thanks barryhoudini, worked like a charm ... once I figured out how to apply it properly! Certainly isn't intuitive. And Excel formula language? Don't get me started, much prefer the formula language in Crystal Reports!

Thanks again,

John
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

821 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