return the value in the row AFTER a lookup

dlorenc

Board Regular
Joined
Aug 17, 2004
Messages
140
I would like to return the value in the row AFTER a lookup.

Consider B6 contains a customername, and B7 contains the customer's city. (this is a unstructured data dump where each customer has 14 rows in a record, but all the data is in column b...(eg. b1-14 is customer #1, B15-29 is customer #2).

so far I have a two column solution using a match and an index from the result of the match...is there an easier way?..

=MATCH(A930,Original!B:B,0) -returns 20157, the row containing the customer name in A930)

=INDEX(Original!B:B,B930+1,1) - Returns 'Denton', the City that is in cell Original!B20158.

thanks for the help!
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Maybe you are looking for:

=INDEX(Original!B:B,MATCH(A930,Original!B:B,0)+1,1)

Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,213,532
Messages
6,114,177
Members
448,554
Latest member
Gleisner2

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