close

I have a worksheet that has a list of medication in column A with their
corrisponding expiration dates in column B. How can I make the dates in
column B change to red when the current days date is within 60 days of the
expiration date shown? Will it do this?
--
Lee Davenport

Hi Lee,
Use Conditional Formatting
www.mvps.org/dmcritchie/excel/condfmt.htm

Select Column B that would make cell B1 the active cell.
The formula you use is based on the active cell.

Format, Conditional Formatting
Formula is: =$B1 60 lt; TODAY()
press the large formatting button
you can change the Font color and/or the interior pattern color

By placing a $ in front of the B1 that limits the test to the B column,
so you could select all cells on the sheet and use that formula if you
wanted to color the entire row as every cell on the row would use that
formula to test, and the row would be adjusted on subsequent rows.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: www.mvps.org/dmcritchie/excel/excel.htm
Search Page: www.mvps.org/dmcritchie/excel/search.htm

quot;Leequot; gt; wrote in message ...
gt; I have a worksheet that has a list of medication in column A with their
gt; corrisponding expiration dates in column B. How can I make the dates in
gt; column B change to red when the current days date is within 60 days of the
gt; expiration date shown? Will it do this?
gt; --
gt; Lee Davenport

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()