Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default Dependant Lists (Data Validation)

Suppose I have same sort of list as follows:

CASE1 01-JAN-08
CASE2 15-JAN-08
CASE3 01-FEB-08
CASE4 31-MAR-08
CASE5 15-MAR-08

I have a list of months i.e. January to December presented in list option at
C1 upon selecting March, I want the list in D1 to be reflecting the options
of only 31-MAR-08 and 15-MAR-08 i.e. dates falling in March

--

Best Regards,
FARAZ A. QURESHI
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Dependant Lists (Data Validation)

One simple alternative ..
Assuming source list in row2 down, dates in B2 down
In C2: =IF(B2="","",TEXT(B2,"mmmyy"))
Copy down, then just apply autofilter on col C for the desired functionality
to easily filter dates by month/yr.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"FARAZ QURESHI" wrote:
Suppose I have same sort of list as follows:

CASE1 01-JAN-08
CASE2 15-JAN-08
CASE3 01-FEB-08
CASE4 31-MAR-08
CASE5 15-MAR-08

I have a list of months i.e. January to December presented in list option at
C1 upon selecting March, I want the list in D1 to be reflecting the options
of only 31-MAR-08 and 15-MAR-08 i.e. dates falling in March

--

Best Regards,
FARAZ A. QURESHI

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default Dependant Lists (Data Validation)

Sure am delighted to hear from you after a long time Max!

I am sorry but I think I wasn't clear enough.

What I meant was that list option of "Data Validation" is required not auto
filter. I want cell C1 to be reflecting a combo box reflecting Name of months
Jan to Dec. Upon selecting a month the same kind of Data Validation combo box
list in D1 based on a custom formula or some other way to present the dates
pertaining to such a month only from the source of Column B containing a list
of mix dates.

Hopefully a supportive feedback is replied

Thanx

--

Best Regards,
FARAZ A. QURESHI


"Max" wrote:

One simple alternative ..
Assuming source list in row2 down, dates in B2 down
In C2: =IF(B2="","",TEXT(B2,"mmmyy"))
Copy down, then just apply autofilter on col C for the desired functionality
to easily filter dates by month/yr.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"FARAZ QURESHI" wrote:
Suppose I have same sort of list as follows:

CASE1 01-JAN-08
CASE2 15-JAN-08
CASE3 01-FEB-08
CASE4 31-MAR-08
CASE5 15-MAR-08

I have a list of months i.e. January to December presented in list option at
C1 upon selecting March, I want the list in D1 to be reflecting the options
of only 31-MAR-08 and 15-MAR-08 i.e. dates falling in March

--

Best Regards,
FARAZ A. QURESHI

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Dependant Lists (Data Validation)

You'd have to extract all the dates for that month to form another list then
use that extracted list as the source for the drop down list.

With your list of dates in B1:B5 enter this array formula** in K1 and copy
down to K10:

=IF(ROWS(K$1:K1)<=SUMPRODUCT(--(TEXT(B$1:B$5,"mmmm")=C$1)),INDEX(B$1:B$5,SMALL(IF (TEXT(B$1:B$5,"mmmm")=C$1,ROW(B$1:B$5)-MIN(ROW(B$1:B$5))+1),ROWS(K$1:K1))),"")

Create this named formula (dynamic range for the extracted dates):

InsertNameDefine
Name: List2
Refers to:

=Sheet1!$K$1:INDEX(Sheet1!$K$1:$K$10,COUNT(Sheet1! $K$1:$K$10))

OK

Select cell D1
Set up a data validation list.
As the source use this formula:

=IF(COUNT(List2),List2,NA())

Format cell D1 as DATE

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)


--
Biff
Microsoft Excel MVP


"FARAZ QURESHI" wrote in message
...
Sure am delighted to hear from you after a long time Max!

I am sorry but I think I wasn't clear enough.

What I meant was that list option of "Data Validation" is required not
auto
filter. I want cell C1 to be reflecting a combo box reflecting Name of
months
Jan to Dec. Upon selecting a month the same kind of Data Validation combo
box
list in D1 based on a custom formula or some other way to present the
dates
pertaining to such a month only from the source of Column B containing a
list
of mix dates.

Hopefully a supportive feedback is replied

Thanx

--

Best Regards,
FARAZ A. QURESHI


"Max" wrote:

One simple alternative ..
Assuming source list in row2 down, dates in B2 down
In C2: =IF(B2="","",TEXT(B2,"mmmyy"))
Copy down, then just apply autofilter on col C for the desired
functionality
to easily filter dates by month/yr.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"FARAZ QURESHI" wrote:
Suppose I have same sort of list as follows:

CASE1 01-JAN-08
CASE2 15-JAN-08
CASE3 01-FEB-08
CASE4 31-MAR-08
CASE5 15-MAR-08

I have a list of months i.e. January to December presented in list
option at
C1 upon selecting March, I want the list in D1 to be reflecting the
options
of only 31-MAR-08 and 15-MAR-08 i.e. dates falling in March

--

Best Regards,
FARAZ A. QURESHI



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Dependant Lists (Data Validation)

Forgot something:

Format K1:K10 as DATE


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
You'd have to extract all the dates for that month to form another list
then use that extracted list as the source for the drop down list.

With your list of dates in B1:B5 enter this array formula** in K1 and copy
down to K10:

=IF(ROWS(K$1:K1)<=SUMPRODUCT(--(TEXT(B$1:B$5,"mmmm")=C$1)),INDEX(B$1:B$5,SMALL(IF (TEXT(B$1:B$5,"mmmm")=C$1,ROW(B$1:B$5)-MIN(ROW(B$1:B$5))+1),ROWS(K$1:K1))),"")

Create this named formula (dynamic range for the extracted dates):

InsertNameDefine
Name: List2
Refers to:

=Sheet1!$K$1:INDEX(Sheet1!$K$1:$K$10,COUNT(Sheet1! $K$1:$K$10))

OK

Select cell D1
Set up a data validation list.
As the source use this formula:

=IF(COUNT(List2),List2,NA())

Format cell D1 as DATE

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)


--
Biff
Microsoft Excel MVP


"FARAZ QURESHI" wrote in message
...
Sure am delighted to hear from you after a long time Max!

I am sorry but I think I wasn't clear enough.

What I meant was that list option of "Data Validation" is required not
auto
filter. I want cell C1 to be reflecting a combo box reflecting Name of
months
Jan to Dec. Upon selecting a month the same kind of Data Validation combo
box
list in D1 based on a custom formula or some other way to present the
dates
pertaining to such a month only from the source of Column B containing a
list
of mix dates.

Hopefully a supportive feedback is replied

Thanx

--

Best Regards,
FARAZ A. QURESHI


"Max" wrote:

One simple alternative ..
Assuming source list in row2 down, dates in B2 down
In C2: =IF(B2="","",TEXT(B2,"mmmyy"))
Copy down, then just apply autofilter on col C for the desired
functionality
to easily filter dates by month/yr.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"FARAZ QURESHI" wrote:
Suppose I have same sort of list as follows:

CASE1 01-JAN-08
CASE2 15-JAN-08
CASE3 01-FEB-08
CASE4 31-MAR-08
CASE5 15-MAR-08

I have a list of months i.e. January to December presented in list
option at
C1 upon selecting March, I want the list in D1 to be reflecting the
options
of only 31-MAR-08 and 15-MAR-08 i.e. dates falling in March

--

Best Regards,
FARAZ A. QURESHI







  #6   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Dependant Lists (Data Validation)

Hopefully a supportive feedback is replied
Well, I did start off with: One simple alternative ..
Trouble is, the option did not appeal to you,
not that my response wasn't supportive.

Anyway, think Biff gave you the detailed construct which is required. Imo,
it takes a fair bit of work to "emulate" what autofilter does so well
natively.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default Dependant Lists (Data Validation)

Thanx!

Anyway how to contract the list so as to reflect only the visible values in
K1:K10? As the blanks, i.e. "" are also shown!

Thanx!

--

Best Regards,
FARAZ A. QURESHI


"T. Valko" wrote:

Forgot something:

Format K1:K10 as DATE


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
You'd have to extract all the dates for that month to form another list
then use that extracted list as the source for the drop down list.

With your list of dates in B1:B5 enter this array formula** in K1 and copy
down to K10:

=IF(ROWS(K$1:K1)<=SUMPRODUCT(--(TEXT(B$1:B$5,"mmmm")=C$1)),INDEX(B$1:B$5,SMALL(IF (TEXT(B$1:B$5,"mmmm")=C$1,ROW(B$1:B$5)-MIN(ROW(B$1:B$5))+1),ROWS(K$1:K1))),"")

Create this named formula (dynamic range for the extracted dates):

InsertNameDefine
Name: List2
Refers to:

=Sheet1!$K$1:INDEX(Sheet1!$K$1:$K$10,COUNT(Sheet1! $K$1:$K$10))

OK

Select cell D1
Set up a data validation list.
As the source use this formula:

=IF(COUNT(List2),List2,NA())

Format cell D1 as DATE

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)


--
Biff
Microsoft Excel MVP


"FARAZ QURESHI" wrote in message
...
Sure am delighted to hear from you after a long time Max!

I am sorry but I think I wasn't clear enough.

What I meant was that list option of "Data Validation" is required not
auto
filter. I want cell C1 to be reflecting a combo box reflecting Name of
months
Jan to Dec. Upon selecting a month the same kind of Data Validation combo
box
list in D1 based on a custom formula or some other way to present the
dates
pertaining to such a month only from the source of Column B containing a
list
of mix dates.

Hopefully a supportive feedback is replied

Thanx

--

Best Regards,
FARAZ A. QURESHI


"Max" wrote:

One simple alternative ..
Assuming source list in row2 down, dates in B2 down
In C2: =IF(B2="","",TEXT(B2,"mmmyy"))
Copy down, then just apply autofilter on col C for the desired
functionality
to easily filter dates by month/yr.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"FARAZ QURESHI" wrote:
Suppose I have same sort of list as follows:

CASE1 01-JAN-08
CASE2 15-JAN-08
CASE3 01-FEB-08
CASE4 31-MAR-08
CASE5 15-MAR-08

I have a list of months i.e. January to December presented in list
option at
C1 upon selecting March, I want the list in D1 to be reflecting the
options
of only 31-MAR-08 and 15-MAR-08 i.e. dates falling in March

--

Best Regards,
FARAZ A. QURESHI






  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Dependant Lists (Data Validation)

There shouldn't be any blanks in the drop down list.

This prevents any blanks:

Create this named formula (dynamic range for the extracted dates):
InsertNameDefine
Name: List2
Refers to:
=Sheet1!$K$1:INDEX(Sheet1!$K$1:$K$10,COUNT(Sheet1 !$K$1:$K$10))


And, if there are no dates for the selected month, this will prevent the
drop down from working:

Select cell D1
Set up a data validation list.
As the source use this formula:
=IF(COUNT(List2),List2,NA())



--
Biff
Microsoft Excel MVP


"FARAZ QURESHI" wrote in message
...
Thanx!

Anyway how to contract the list so as to reflect only the visible values
in
K1:K10? As the blanks, i.e. "" are also shown!

Thanx!

--

Best Regards,
FARAZ A. QURESHI


"T. Valko" wrote:

Forgot something:

Format K1:K10 as DATE


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
You'd have to extract all the dates for that month to form another list
then use that extracted list as the source for the drop down list.

With your list of dates in B1:B5 enter this array formula** in K1 and
copy
down to K10:

=IF(ROWS(K$1:K1)<=SUMPRODUCT(--(TEXT(B$1:B$5,"mmmm")=C$1)),INDEX(B$1:B$5,SMALL(IF (TEXT(B$1:B$5,"mmmm")=C$1,ROW(B$1:B$5)-MIN(ROW(B$1:B$5))+1),ROWS(K$1:K1))),"")

Create this named formula (dynamic range for the extracted dates):

InsertNameDefine
Name: List2
Refers to:

=Sheet1!$K$1:INDEX(Sheet1!$K$1:$K$10,COUNT(Sheet1! $K$1:$K$10))

OK

Select cell D1
Set up a data validation list.
As the source use this formula:

=IF(COUNT(List2),List2,NA())

Format cell D1 as DATE

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)


--
Biff
Microsoft Excel MVP


"FARAZ QURESHI" wrote in
message
...
Sure am delighted to hear from you after a long time Max!

I am sorry but I think I wasn't clear enough.

What I meant was that list option of "Data Validation" is required not
auto
filter. I want cell C1 to be reflecting a combo box reflecting Name of
months
Jan to Dec. Upon selecting a month the same kind of Data Validation
combo
box
list in D1 based on a custom formula or some other way to present the
dates
pertaining to such a month only from the source of Column B containing
a
list
of mix dates.

Hopefully a supportive feedback is replied

Thanx

--

Best Regards,
FARAZ A. QURESHI


"Max" wrote:

One simple alternative ..
Assuming source list in row2 down, dates in B2 down
In C2: =IF(B2="","",TEXT(B2,"mmmyy"))
Copy down, then just apply autofilter on col C for the desired
functionality
to easily filter dates by month/yr.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"FARAZ QURESHI" wrote:
Suppose I have same sort of list as follows:

CASE1 01-JAN-08
CASE2 15-JAN-08
CASE3 01-FEB-08
CASE4 31-MAR-08
CASE5 15-MAR-08

I have a list of months i.e. January to December presented in list
option at
C1 upon selecting March, I want the list in D1 to be reflecting the
options
of only 31-MAR-08 and 15-MAR-08 i.e. dates falling in March

--

Best Regards,
FARAZ A. QURESHI







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
Data Validation w/ Dependant Lists on seperate Wookbooks WDrummond Excel Worksheet Functions 2 March 7th 08 06:03 PM
Dependant Data Validation - for Whole Column Kumaresh Sierra Excel Worksheet Functions 2 July 10th 07 09:32 AM
Dependant Data Validation not sorted Sara Hopkins Excel Worksheet Functions 3 September 26th 06 09:25 AM
Dependant Data Validation List Stabilos Excel Discussion (Misc queries) 1 November 21st 05 05:46 PM
Data Validation dependant and unique Sara Hopkins Excel Worksheet Functions 5 August 30th 05 01:13 PM


All times are GMT +1. The time now is 08:26 AM.

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"