Assuming the expiry dates (real dates) are running in B2 down,
Select the entire sheet (with A1 active),
then apply Conditional Formatting as follows ..
Click Format Conditional Formatting
Under Condition 1, set it as:
Formula is:
=AND($B1<"",$B1-TODAY()<=7)
Format: Red fill
For Condition 2 (click Add), set it as:
Formula is:
=AND($B1<"",$B1-TODAY()7,$B1-TODAY()<30)
Format: Yellow fill
Click to OK out
The above will color (fill) entire rows based on the expiry dates in col B:
lines with expiry dates within 8 - 30 days (yellow)
lines with expiry dates within 7 days or less (red)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"emtp6738" wrote:
I am trying to create a spreadsheet to help with medication inventory. I want
to have the cell change colors at different intervals to correspond to
different dates to give me different warning levels. For example, if a
medication is to expire within 30 days, I would like the cell to change to
yellow and when it becomes 7 days or less I would like it to change to red. I
have not been able to figure this out. Please help. Thank you.