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  

Vlookup return 2nd match



 
 
Thread Tools Display Modes
  #1  
Old April 30th, 2010, 03:12 AM posted to microsoft.public.excel.worksheet.functions
MarkinArk
external usenet poster
 
Posts: 2
Default Vlookup return 2nd match

I have a quick question for you seasoned Excel gurus... I use Excel to track
win/loss streaks across several major league baseball teams. I then
consolidate them on one sheet with game date on the left, and the vlookup
results from the detail sheet for each team. I was doing fine, until April
27th when the Mets and Dodgers played a double-header, and now had 2 game
detail data for the one date. I know I can use a Countif(A1:A100, A2) to
determine if I have multiple dates, but don't know how to return the first
true on one line, and the 2nd true on a second line. Any ideas?
A B C
Mon, Apr 26 LA Dodgers POSTPONED
Tue, Apr 27 LA Dodgers W 4-0
Tue, Apr 27 LA Dodgers W 10-5
Wed, Apr 28 LA Dodgers W 7-3

where vlookup(A2, A1:C4, 3, False) = "W 4-0" ... then, I want to return "W
10-5" on the next line. Any ideas? I imagine there is a quick solution for
you pros, but I'm not sure how to get it done. Thanks for any help!
  #2  
Old April 30th, 2010, 03:15 AM posted to microsoft.public.excel.worksheet.functions
ozgrid.com
external usenet poster
 
Posts: 328
Default Vlookup return 2nd match

See
http://www.ozgrid.com/VBA/ultimate-e...p-function.htm



--
Regards
Dave Hawley
www.ozgrid.com
"MarkinArk" wrote in message
...
I have a quick question for you seasoned Excel gurus... I use Excel to
track
win/loss streaks across several major league baseball teams. I then
consolidate them on one sheet with game date on the left, and the vlookup
results from the detail sheet for each team. I was doing fine, until
April
27th when the Mets and Dodgers played a double-header, and now had 2 game
detail data for the one date. I know I can use a Countif(A1:A100, A2) to
determine if I have multiple dates, but don't know how to return the first
true on one line, and the 2nd true on a second line. Any ideas?
A B C
Mon, Apr 26 LA Dodgers POSTPONED
Tue, Apr 27 LA Dodgers W 4-0
Tue, Apr 27 LA Dodgers W 10-5
Wed, Apr 28 LA Dodgers W 7-3

where vlookup(A2, A1:C4, 3, False) = "W 4-0" ... then, I want to return
"W
10-5" on the next line. Any ideas? I imagine there is a quick solution
for
you pros, but I'm not sure how to get it done. Thanks for any help!


  #3  
Old April 30th, 2010, 03:17 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Vlookup return 2nd match

You have replies at your other post.

--
Biff
Microsoft Excel MVP


"MarkinArk" wrote in message
...
I have a quick question for you seasoned Excel gurus... I use Excel to
track
win/loss streaks across several major league baseball teams. I then
consolidate them on one sheet with game date on the left, and the vlookup
results from the detail sheet for each team. I was doing fine, until
April
27th when the Mets and Dodgers played a double-header, and now had 2 game
detail data for the one date. I know I can use a Countif(A1:A100, A2) to
determine if I have multiple dates, but don't know how to return the first
true on one line, and the 2nd true on a second line. Any ideas?
A B C
Mon, Apr 26 LA Dodgers POSTPONED
Tue, Apr 27 LA Dodgers W 4-0
Tue, Apr 27 LA Dodgers W 10-5
Wed, Apr 28 LA Dodgers W 7-3

where vlookup(A2, A1:C4, 3, False) = "W 4-0" ... then, I want to return
"W
10-5" on the next line. Any ideas? I imagine there is a quick solution
for
you pros, but I'm not sure how to get it done. Thanks for any help!



 




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


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


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