If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
using Vlookup to find multiple results
I'm designing a form to lookup and select data from a
large database where individuals may have multiple entries in the same column. Vlookup and/or index/match will seem to find either the first or the last but how can you find the other entries where there are more than two? |
#2
|
|||
|
|||
using Vlookup to find multiple results
Hi
though possible with array formulas I would use Data - Filter for this kind of application. -----Original Message----- I'm designing a form to lookup and select data from a large database where individuals may have multiple entries in the same column. Vlookup and/or index/match will seem to find either the first or the last but how can you find the other entries where there are more than two? . |
#3
|
|||
|
|||
using Vlookup to find multiple results
Thanks, the problem is I'm using a variable data field in
a form. Thus, I'm selecting an employee, then looking up various fields for kinds of benefits, beneficiaries, amounts etc. In one case I need to display the dependents, and there could be none or there could be as many as four or five. Because I have over 300 individuals, I have to list the dependents in a column, and so I can't nest vlookup's to find separate entries. Does this make sense? Kent -----Original Message----- Hi though possible with array formulas I would use Data - Filter for this kind of application. -----Original Message----- I'm designing a form to lookup and select data from a large database where individuals may have multiple entries in the same column. Vlookup and/or index/match will seem to find either the first or the last but how can you find the other entries where there are more than two? . . |
#4
|
|||
|
|||
using Vlookup to find multiple results
Anonymous wrote...
Thanks, the problem is I'm using a variable data field in a form. Thus, I'm selecting an employee, then looking up various fields for kinds of benefits, beneficiaries, amounts etc. In one case I need to display the dependents, and there could be none or there could be as many as four or five. Because I have over 300 individuals, I have to list the dependents in a column, and so I can't nest vlookup's to find separate entries. . . . Unclear. Do you mean a 'form' implemented in a worksheet or a VBA 'Userform'? If the former, then what do you mean by "I can't nest vlookup's to find separate entries."? If you want to return many entries from column 2, say, of a table named Dependents in which the column 1 entries all match a given employee whose name was entered in a cell named Employee into cells X3:X#, you could use the following formulas. X3: =VLOOKUP(Employee,Dependents,2,0) X4 [array formula]: =IF(COUNTIF(INDEX(Dependents,0,1),Employee) COUNTA(X$3:X3),INDEX(Dependents, MATCH(1,(INDEX(Dependents,0,1)=Employee) *(COUNTIF(X$3:X3,INDEX(Dependents,0,2))=0),0),2)," ") Select X4 and fill down as needed. This assumes no employee has multiple dependents with the same name. --- Message posted from http://www.ExcelForum.com/ |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
VLookup with multiple matches - need to combine | Mark Wolven | Worksheet Functions | 2 | June 24th, 2004 08:14 PM |
Find multiple values in excel coulumns then copy into mail merge | Tom | General Discussion | 0 | June 10th, 2004 07:54 PM |
vlookup to return multiple lines | Christopher | Worksheet Functions | 7 | May 27th, 2004 06:22 PM |