Conditional formatting with date

bionicle

Board Regular
Joined
Apr 23, 2009
Messages
168
hi All,

need a little help please.

in column A I have several different names, in column B I have a list of dates.

what I need to do is change the colour of the cell in column D using conditional formatting when the name (lets say David) appears next to a date that greater than 180 days.

I can get the cell to change based on the name alone however I cant get the date side to change so putting them together is defiantly looking like its going to fail.


any help would be appreciated

steve
 

Some videos you may like

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

BarryL

Well-known Member
Joined
Jan 20, 2014
Messages
1,421
greater than 180 days old yes?

in the conditional formatting section select new rule, then "Use a formula to determine which cells to format", the enter the below formula

<today()-180)
=AND(A2="David",B2 < TODAY()-180)
then pick your format, then apply it to the area you want.</today()-180)
 
Last edited:

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
42,956
Office Version
365
Platform
Windows
Select D2 to the last row & use this formula
=AND(B2< TODAY()-180,A2="David")
 

Watch MrExcel Video

Forum statistics

Threads
1,102,889
Messages
5,489,551
Members
407,700
Latest member
SimpleJuan

This Week's Hot Topics

  • Timer in VBA - Stop, Start, Pause and Reset
    [CODE=vba][/CODE] Option Explicit Dim CmdStop As Boolean Dim Paused As Boolean Dim Start Dim TimerValue As Date Dim pausedTime As Date Sub...
  • how to updates multiple rows in muliselect listbox
    Hello everyone. I need help with below code. code is only chaning 1st row in mulitiselect list box. i know issue with code...
  • Delete Row from Table
    I am trying to delete a row from a table using VBA using a named range to find what I need to delete. My Range is finding the right cell. In the...
  • Assigning to a variable
    I have a for each block where I want to assign the value in column 5 of the found row to the variable Serv. [CODE=vba] For Each ws In...
  • Way to verify information
    Hi All, I don't know what to call this formula, and therefore can't search. I have a spreadsheet with information I want to reference...
  • Active Cell Address – Inactive Sheet
    How to use VBA to get the cell address of the active cell in an inactive worksheet and then place that cell address in a location on the current...
Top