searching/displaying data with vlookup/index/match

Kozemp

New Member
Joined
Jun 1, 2009
Messages
7
Forgive me if this has been asked and answered before, but I have searched and not seen this particular problem.

I have a table of part and purchase order data - column A is part numbers and columns B-E are purchase order numbers.

Elsewhere I want to do a lookup that, for a given part number on this table, will return the first purchase order number given. (Some part numbers have multiple PO numbers, but I am only interested in the first one that appears in each row.) Ideally I would like to do this without a series of multiple nested IF(ISNA(VLOOKUP functions.

Put another way (I think) in the vlookup syntax of VLOOKUP(lookup value, array, column number, FALSE), I need to find a way to vary the column index number so as to head for the first non-blank value.

I have a sneaking suspicion I should be using a combination of INDEX and MATCH to do this, but I'm not quite sure of that, or how.

Any help is greatly appreciated.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Forgive me if this has been asked and answered before, but I have searched and not seen this particular problem.

I have a table of part and purchase order data - column A is part numbers and columns B-E are purchase order numbers.

Elsewhere I want to do a lookup that, for a given part number on this table, will return the first purchase order number given. (Some part numbers have multiple PO numbers, but I am only interested in the first one that appears in each row.) Ideally I would like to do this without a series of multiple nested IF(ISNA(VLOOKUP functions.

Put another way (I think) in the vlookup syntax of VLOOKUP(lookup value, array, column number, FALSE), I need to find a way to vary the column index number so as to head for the first non-blank value.

I have a sneaking suspicion I should be using a combination of INDEX and MATCH to do this, but I'm not quite sure of that, or how.

Any help is greatly appreciated.

[please try this one: vlookup(partno,A1:Dno.,2(which is the corresponding PO no. of this column) hope this will solved your problem
 
Upvote 0

Forum statistics

Threads
1,215,593
Messages
6,125,718
Members
449,254
Latest member
Eva146

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