Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 148
Default how do i flag a cell using background color

I need to know how to change the background color of a cell based on data
entered. Such as a date that is more than a year the background of that cell
turn red.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 470
Default how do i flag a cell using background color

You want to use CONDITIONAL FORMATTING. After clicking on the cell you want
to check, open the conditional format window, change CELL VALUE IS to FORMULA
IS in the combo box. The you will have a space to enter the formula. If I
understand what you are trying to do, lets say A1 = 10/30/2007. Want to to
check that date against today's date and flag it if it is more than a year
away. If that is the case, then the formula you need to type in is:

=AND(A1<"", A1TODAY()+365)

Suggestion: If you are using a dark background, ie red, blue, black, etc, I
would change the font to white also.

Les

"heather" wrote:

I need to know how to change the background color of a cell based on data
entered. Such as a date that is more than a year the background of that cell
turn red.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,203
Default how do i flag a cell using background color

And if you need to go the other way with a date (is it more than 1 year in
the past), then again, use Format | Conditional Format

Choose [Cell Value Is] then in the condition choose Less Than
and in the formula area to the right, enter this
=(NOW()-365)
or, to be more precise
=(NOW()-365.25)
Set up your format. Now if the date is more than a year behind the current
date, it will get flagged. Obviously, once it gets that old, it's going to
stay that older as NOW() increases day by day.

NOW() returns the current system date/time, so it's always current, not
static on a worksheet.

"WLMPilot" wrote:

You want to use CONDITIONAL FORMATTING. After clicking on the cell you want
to check, open the conditional format window, change CELL VALUE IS to FORMULA
IS in the combo box. The you will have a space to enter the formula. If I
understand what you are trying to do, lets say A1 = 10/30/2007. Want to to
check that date against today's date and flag it if it is more than a year
away. If that is the case, then the formula you need to type in is:

=AND(A1<"", A1TODAY()+365)

Suggestion: If you are using a dark background, ie red, blue, black, etc, I
would change the font to white also.

Les

"heather" wrote:

I need to know how to change the background color of a cell based on data
entered. Such as a date that is more than a year the background of that cell
turn red.

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
How can I determine cell color? Naum Excel Discussion (Misc queries) 3 May 14th 06 08:26 PM
Conditionally setting background color of a cell Scott Steiner Excel Discussion (Misc queries) 1 November 20th 05 12:11 PM
Default Border, Font Color, and Cell Background Color Elijah Excel Discussion (Misc queries) 1 October 28th 05 04:10 PM
Cell Background Color Change according to numerical value jrd269 Excel Discussion (Misc queries) 11 May 31st 05 09:46 PM
Identifying the Active Fill Color Steve Conary Excel Discussion (Misc queries) 3 December 9th 04 04:45 AM


All times are GMT +1. The time now is 05:50 PM.

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

About Us

"It's about Microsoft Excel"