ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Conditional Formating A Row (https://www.excelbanter.com/excel-worksheet-functions/118187-conditional-formating-row.html)

Jules

Conditional Formating A Row
 
Hi, I have a spreadsheet of items that need to be watched for expiration....

Column E has the Expiration Date...

I need a formaula (I think for the conditional formating) to have the row
highlight when the it's 60 and 30 days to expiration.

I tried the =and(E1:E1000<"",today()-30)

It did not work....

Thanks any help would be appriciated.
--
Jules

Bob Phillips

Conditional Formating A Row
 
Select rows 1 though 1000
Menu FormatConditional Formatting
Change Condition 1 to Formula Is
Add a formula of =AND(E1<TODAY()-30)
Click the Format button
Select the Pattern Tab
Select an appropriate highlighting colour
OK
Click Add
Change Condition 1 to Formula Is
Add a formula of =AND(E1<TODAY()-60)
Click the Format button
Select the Pattern Tab
Select an appropriate highlighting colour
OK
OK




--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Jules" wrote in message
...
Hi, I have a spreadsheet of items that need to be watched for

expiration....

Column E has the Expiration Date...

I need a formaula (I think for the conditional formating) to have the row
highlight when the it's 60 and 30 days to expiration.

I tried the =and(E1:E1000<"",today()-30)

It did not work....

Thanks any help would be appriciated.
--
Jules




Mike Campbell

Conditional Formating A Row
 
It sounds like you need two conditions in your formula: one for 0-30 days and
one for 31-60 days. Try these formulas:
=AND(($E1-TODAY())0,($E1-TODAY())<31)
=AND(($E1-TODAY())30,($E1-TODAY())<61)

Make sure you start at A1, select your rows to format, then go to
Conditional Formatting write these formulas. You may also want a formula for
greater than 60 days:
=($E1-TODAY())60

"Jules" wrote:

Hi, I have a spreadsheet of items that need to be watched for expiration....

Column E has the Expiration Date...

I need a formaula (I think for the conditional formating) to have the row
highlight when the it's 60 and 30 days to expiration.

I tried the =and(E1:E1000<"",today()-30)

It did not work....

Thanks any help would be appriciated.
--
Jules



All times are GMT +1. The time now is 03:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com