A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

using Vlookup to find multiple results



 
 
Thread Tools Display Modes
  #1  
Old July 27th, 2004, 05:36 PM
Kent
external usenet poster
 
Posts: n/a
Default 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  
Old July 27th, 2004, 05:47 PM
Frank Kabel
external usenet poster
 
Posts: n/a
Default 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  
Old July 27th, 2004, 06:25 PM
external usenet poster
 
Posts: n/a
Default 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  
Old July 27th, 2004, 11:33 PM
hgrove
external usenet poster
 
Posts: n/a
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 04:04 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.