?
Solved

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

Posted on 2013-11-03
2
Medium Priority
?
278 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
[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 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 2000 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
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 demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

762 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