Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Sorting Data

Suppose your target date is in D1. Highlight columns A and B so that
A1 is the active cell, and click on Format | Conditional Formatting
and then choose Formula Is rather than Cell Value Is in the first
panel of the dialogue box. Enter this formula in the next panel:

=AND($A1<=$D$1,$A1=$D$1-20)

Then click on the Format button, then the Patterns tab and then choose
the colour you would like for the highlight. OK your way out of the
dialogue box. Excel will adjust the cell references above
automatically for all cells in the range.

Hope this helps.

Pete

On Nov 25, 3:33*pm, ginnie wrote:
If I have two columns, Column A which has Dates and Column B which has
numerical values for that date. *And I have several dates that I need to take
that specific date and the 20 days before/after. *What formula can I use that
will highlight the range.


 
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
sorting data tommy Excel Discussion (Misc queries) 3 July 29th 08 09:37 AM
Sorting data Art Setting up and Configuration of Excel 3 November 28th 06 07:37 PM
Sorting data to match existing data Jack C Excel Discussion (Misc queries) 4 May 24th 06 09:48 AM
colors of bar charted data don't follow data after sorting Frankgjr Charts and Charting in Excel 2 January 17th 06 12:33 PM
Need help Sorting data monkeytrader Excel Worksheet Functions 2 February 21st 05 04:34 AM


All times are GMT +1. The time now is 10:04 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"