lookup first value

kylefoley76

Well-known Member
Joined
Mar 1, 2010
Messages
1,553
I'm trying to get lookup to return the first value it encounters when it scans down the column and finds the right value, because the same value appears several time in that column.

I'm trying this

Lookup( value, lookup_range, result_range )

But it's not returning the first value.

The values are dates and as you go down, they increase in time.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Try INDEX/MATCH combo

=INDEX(result_range, MATCH(value, lookup_range, 0))
 
Upvote 0
I can get it to work for a simple data point on one spreadsheet but when I try to get it to work for two different spreadsheets I'm getting #n/a

=INDEX(time!$D$1:$D$1000, MATCH(D4,time!$J$1:$J$1000,0))

I then used a simpler formua

=INDEX(g1:g10, MATCH(d4,J1:J10,0))

And that worked even though there was only one appearence of the value in d4 in the column j
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,181
Members
452,893
Latest member
denay

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