Nested IF statement using conditional formatting

triplel1977

New Member
Joined
Oct 12, 2008
Messages
23
I want to create an IF statement (possibly an AND statement) for the following conditions using Conditional Formatting, so I can highlight only the dates that are past due over 45 on a 5000 line spreadsheet.

Column A value equals IN
Column D value equals =TODAY-45

I can create the =TODAY formula in column D and get it to work and it highlights the all dates in the spreadsheet, but when I try to get the result to only be highlighted if the value in column A = "IN" I either get no result or error messages.

Can anybody provide a simple formula that will solve this problem? I use Excel 2007.

Thanks
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
I should be be able to use =AND($A:$A="In",$D:$D< TODAY()-45), right?
since I am going to create this conditional formatting as part of a macro, so I don't have to apply this formula to this report every day.

I didn't bring this report home since it is proprietory, so I will check it out tomorrow and let you know how it goes.

Thanks you very much.
 
Upvote 0
Normally with conditional formatting you just apply the formula to the first row and then it will adjust to all the other rows, so the formula I suggested should be sufficient, as long as you specify that the range to which it applies begins on row 1
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top