#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Data Validation

I use Office Excel 2008 for Mac.

I have a payment voucher worksheet with a list of Payees with name,
address, street, city, province, postal code, country, attention in
columns. I have created table names PAYEESList and PAYEESLookUp.

In INSERT NAME DEFINE, I typed in the following in the Source
space:
PAYEESList - =OFFSET(PAYEES!$A$2,0,0,CONTRA(PAYEES!$A:$A)-1,1)
PAYEESLookUp - =OFFSET(PAYEESList,,,,8)

Because of the number of Payees, I would like to be able to create,
through Data Validation a dropdown menu (A) in which I can select one
of the letters of the alphabet with another dropdown menu (B)
dependent on (A) select only those Payees beginning with that letter.
Any suggestions?

I tried to use the following formula unsuccessfully:
=IF(LOOKUP((ISERROR(LEFT(A2,1))),PAYEESLookUp,2,FA LSE)='INPUT FORM'!
AC2,LOOKUP(A2,PAYEESLookUp,2,False),"")

ISERROR(LEFT(A2,1) refers to the table PAYEESList where I compare the
first letter of that item in the table and compare it with the
alphabet letter in a a dropdown menu I created for all the 26 letters
of the alphabet.

Duncan
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Data Validation

Duncan,

In a cell, say M2, array enter the formula (enter using Ctrl-Shift-Enter)

=IF(COUNTIF(payeeslist,$F$2&"*")=ROW()-ROW($B$1),INDEX(payeeslist,
LARGE((LEFT(payeeslist,1)=$F$2)*(ROW(payeeslist)-1),
COUNTIF(payeeslist,$F$2&"*")-ROW()+ROW($M$2))),"")

Change the $F$2 to the cell that contains your single letter.
Then copy down for as far as you need (at least as far as your most frequent "first letter" payee
count). Once you have enough cells, they will show as blank.

Then create another name, ShortList, using the formula

=OFFSET(PAYEES!$M$2,0,0,SUMPRODUCT(--(PAYEES!$M$2:$M$100<"")),1)

If you expect more than 100, increase the $100 to account for that - you can use a big number, but
you don't need to....

HTH,
Bernie
MS Excel MVP


"Duncan" wrote in message
...
I use Office Excel 2008 for Mac.

I have a payment voucher worksheet with a list of Payees with name,
address, street, city, province, postal code, country, attention in
columns. I have created table names PAYEESList and PAYEESLookUp.

In INSERT NAME DEFINE, I typed in the following in the Source
space:
PAYEESList - =OFFSET(PAYEES!$A$2,0,0,CONTRA(PAYEES!$A:$A)-1,1)
PAYEESLookUp - =OFFSET(PAYEESList,,,,8)

Because of the number of Payees, I would like to be able to create,
through Data Validation a dropdown menu (A) in which I can select one
of the letters of the alphabet with another dropdown menu (B)
dependent on (A) select only those Payees beginning with that letter.
Any suggestions?

I tried to use the following formula unsuccessfully:
=IF(LOOKUP((ISERROR(LEFT(A2,1))),PAYEESLookUp,2,FA LSE)='INPUT FORM'!
AC2,LOOKUP(A2,PAYEESLookUp,2,False),"")

ISERROR(LEFT(A2,1) refers to the table PAYEESList where I compare the
first letter of that item in the table and compare it with the
alphabet letter in a a dropdown menu I created for all the 26 letters
of the alphabet.

Duncan



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
Validation Data using Validation Table cell range..... Dermot Excel Discussion (Misc queries) 16 January 5th 10 09:35 PM
Data Validation Update Validation Selection PCreighton Excel Worksheet Functions 3 September 11th 07 03:32 PM
data validation invalid in dynamic validation list ilia Excel Discussion (Misc queries) 0 November 7th 06 12:54 PM
data validation invalid in dynamic validation list ilia Excel Worksheet Functions 0 November 7th 06 12:54 PM
Data validation with validation lists and combo boxs Keith Excel Discussion (Misc queries) 1 October 12th 06 11:08 AM


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