![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Posts: 26
|
I need to change the text color in a given cell if it contains yesterday's date. The date is entered in the following format (if it matters):
4/15/02 (for example) After the next day, all the previous cells that were yesterday's date will be two days ago and I need them to go back to normal black...and the new dates that qualify as yesterday should highlight text. What can I do? thanks for all responses. |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Denver, CO
Posts: 1,744
|
Highlight your range and se conditional formatting under the format menu.
set condition one to cell value is equal to and then type in =today()-1. Then select whatever format you want to apply to yesterday's date. |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
Quote:
=TODAY()-E1=1 and select a format. E1 is the first cell of the range. Adjust to suit. |
|
|
|
|
|
|
#4 | |
|
Board Regular
Join Date: Apr 2002
Location: Kissimmee, Florida
Posts: 384
|
Quote:
Lets say the Text is in Column B and you want to put on a Red fort to yesterdays Text. select the whole Column B Call up Format - Conditional Formating Change 1st box in Condtion 1 to Formula is In 2nd box enter the formula =A1=$A$1-1 Click format button change font to bold and red click OK That should do the trick
__________________
Hope This Helps. Sean. Digest of Homes WinXP, XL XP |
|
|
|
|
|
|
#5 |
|
New Member
Join Date: Feb 2002
Posts: 26
|
THANKS! you helped again...quite a good think tank gathering over here..I appreciate it!
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|