![]() |
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! |
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! |
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! |
All times are GMT +1. The time now is 05:25 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com