0% found this document useful (0 votes)
22 views

Data Val Date Range

The document describes a macro that populates cell A1 with the date from the active row when a cell in column B is selected. A formula in column C then numbers rows that have a start date on or after the date in A1 and either no end date or an end date on or after A1. A VLookup formula extracts these numbered rows to create a data validation list in column B on another sheet.

Uploaded by

api-26344229
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as XLS, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Data Val Date Range

The document describes a macro that populates cell A1 with the date from the active row when a cell in column B is selected. A formula in column C then numbers rows that have a start date on or after the date in A1 and either no end date or an end date on or after A1. A VLookup formula extracts these numbered rows to create a data validation list in column B on another sheet.

Uploaded by

api-26344229
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as XLS, PDF, TXT or read online on Scribd
You are on page 1/ 2

11/11/2003

If a cell in column B is selected, an event macro enters the


Date Customer date from the active row into Cell A1 (named DateCheck).
11/11/2003
11/23/2003 This cell is linked to the formula in column C on the Data
12/5/2003 worksheet. That formula numbers the rows that have a start
12/17/2003 date on or after DateCheck, and have no End date or an
12/29/2003 end date on or after DateCheck.
1/10/2004
1/22/2004 In column L on the Data sheet, a VLookup formula extract
the numbered rows. This list is used for the data validation
2/3/2004
lists in column B on the Filtered Data sheet.
2/15/2004
2/27/2004
Start End Current Customer
1/1/03 7/3/03 Bea List of
customers
1/15/03 Err:502 Ann
from selected
1/29/03 Err:502 Ben date range
2/12/03 2/16/03 Em
2/26/03 Err:502 Wes
3/12/03 12/26/03 Err:502 Ed
3/26/03 Err:502 Ona
4/9/03 Err:502 Zeke
4/23/03 Err:502 Ford
5/7/03 10/31/03 Cal
5/21/03 9/7/03 Al
6/4/03 6/14/03 Xu
6/18/03 11/17/03 Err:502 Yves
7/2/03 Err:502 Sue
7/16/03 1/20/04 Err:502 Ted
7/30/03 Err:502 Ida
8/13/03 Err:502 Gil
8/27/03 Err:502 Ken
9/10/03 Err:502 Pia
9/24/03 2/16/04 Err:502 Una
10/8/03 Err:502 Harv
10/22/03 11/19/03 Err:502 Cam
11/5/03 Err:502 Del
11/19/03 Fran
12/3/03 Ian
12/17/03 Jim
12/31/03 Dan
1/14/04 Val
1/28/04 Gary
2/11/04 Lou
2/25/04 Herb
3/10/04 Mel
3/24/04 Nora
4/7/04 Quinn
4/21/04 Ron

You might also like