Can vlookup handle more than one match, if so how?

D

DavidObeid

I have a spreadsheet that has a list of (not necessarily continuous
dates (in sheet2, column A), with comments on the dates in column B.

My problem is as follows:

In sheet2 Column A there are sometimes occasions where a date might b
listed twice (because 2 events take place on that day).

I have the following vlookup function on sheet1 of my spreadsheet:

=IF(ISERROR(VLOOKUP(B4,Sheet2!$A:$D,2,FALSE))=TRUE,"",VLOOKUP(B4,Sheet2!$A:$D,2
FALSE))

How can I modify this function to concatenate multiple entries on th
same date?

Thanks in advance,

Dav
 
P

Paul

DavidObeid said:
I have a spreadsheet that has a list of (not necessarily continuous)
dates (in sheet2, column A), with comments on the dates in column B.

My problem is as follows:

In sheet2 Column A there are sometimes occasions where a date might be
listed twice (because 2 events take place on that day).

I have the following vlookup function on sheet1 of my spreadsheet:

=IF(ISERROR(VLOOKUP(B4,Sheet2!$A:$D,2,FALSE))=TRUE,"",VLOOKUP(B4,Sheet2!$A:$
D,2,
FALSE))

How can I modify this function to concatenate multiple entries on the
same date?

Thanks in advance,

Dave

Take a look here under Arbitrary Lookups:
http://www.cpearson.com/excel/lookups.htm
 
D

DavidObeid

Thanks Paul,

That site had some good info, but I don't think the suggestions ther
are applicable to my problem.

Regards,

Dav
 
A

Alan Beban

It isn't entirely obvious from the site, but the following, array
entered into a 5-column row, will return the 1st through 5th occurrences
of values corresponding to the value in cell B21:

=INDEX(B5:C19,SMALL(IF(B5:B19=B21,ROW(B5:B19)-ROW(B5)+1,ROW(B19)+1),{1,2,3,4,5}),2)

Alan Beban
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top