#1   Report Post  
Posted to microsoft.public.excel.misc
Lee
 
Posts: n/a
Default Changing colors?

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
  #2   Report Post  
Posted to microsoft.public.excel.misc
David McRitchie
 
Posts: n/a
Default Changing colors?

Hi Lee,
Use Conditional Formatting
http://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 < 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: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Lee" wrote in message ...
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing *permanently* Excel's colors and graph fill for charting? [email protected] Charts and Charting in Excel 2 February 24th 06 04:09 PM
Automatically changing colors Confusedaboutcolor Excel Discussion (Misc queries) 0 November 2nd 05 08:59 PM
How do I stop colors from changing the shades in excel Gladys Excel Discussion (Misc queries) 1 April 11th 05 09:03 PM
How do i stop the colors changing on my pivot chart when i refres. kev from uk Excel Discussion (Misc queries) 1 March 2nd 05 01:51 PM
Changing colors of tabs Christopher Anderson Excel Discussion (Misc queries) 2 November 29th 04 04:09 PM


All times are GMT +1. The time now is 04:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"