Vlookup same value more than once?

mik_tiff

New Member
Joined
Feb 3, 2005
Messages
24
I need to look up data in a worksheet from a look up value that occurs more than once.
The look up data is in a table, the first column of the table consists of dates, sorted in ascending order, but each date occurs up to 40 times.
I need to lookup each occurrence of a particular date and return the data in that row.

Eg. in this table how do I look up each occurrence of 2/11/06 and return the data in those rows?

01-Nov-06 0.0326 0.809 -1.4808 0
01-Nov-06 0.0324 0.8104 -1.0092 0
01-Nov-06 0.0318 0.5218 -1.051 0
02-Nov-06 0.0324 0 -1.1286 0
02-Nov-06 0.031 0 -0.976 0
02-Nov-06 0.0164 0 -1.1696 0
03-Nov-06 0 0 -0.9912 0
03-Nov-06 0 0 -0.9826 0
03-Nov-06 0 0 -0.8396 0

Thanks very much
Mick
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
mik_tiff

Like this?

G5: =COUNTIF(A1:A9,G2)
H2 (copied across and down): =IF(ROWS(H$2:H2)>$G$5,"",INDEX($A$1:$E$9,SMALL(IF($A$1:$A$9=$G$2,ROW($A$1:$A$9)),ROW(1:1)),COLUMNS($G2:H2)))
which must be confirmed with Ctrl+Shift+Enter not just Enter
Mr Excel.xls
ABCDEFGHIJKL
101-Nov-060.03260.809-1.48080Date of Interest
201-Nov-060.03240.8104-1.0092002-Nov-060.03240-1.12860
301-Nov-060.03180.5218-1.05100.0310-0.9760
402-Nov-060.03240-1.12860No. of Rows0.01640-1.16960
502-Nov-060.0310-0.97603    
602-Nov-060.01640-1.16960    
703-Nov-0600-0.99120    
803-Nov-0600-0.98260
903-Nov-0600-0.83960
10
Find All
 
Upvote 0
mik_tiff

Like this?

G5: =COUNTIF(A1:A9,G2)
H2 (copied across and down): =IF(ROWS(H$2:H2)>$G$5,"",INDEX($A$1:$E$9,SMALL(IF($A$1:$A$9=$G$2,ROW($A$1:$A$9)),ROW(1:1)),COLUMNS($G2:H2)))
which must be confirmed with Ctrl+Shift+Enter not just Enter

Man....you are the KING !! AWESOME STUFF !!!
 
Upvote 0
Man....you are the KING !! AWESOME STUFF !!!
:) Thanks, but this is no great genius on my part - just ideas and techniques picked up mainly from this board.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,719
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top