Help with Vlookup or Index formula

herpasymplex10

Board Regular
Joined
May 26, 2005
Messages
224
Ok. I will provide examples below.
Couldn't do so previously:
Excel Workbook
ABHM
1ResourceItemComponent# of Comp
59COUT1040250512
60COUT1040250512
61COUT1040250512
62COUT1040250512
82ENDROP117925010192
83ENDROP117925010192
84ENDROP117925010192
Snag
Excel 2007
Cell Formulas
RangeFormula
M59=VLOOKUP(B59,Data!A:H,8,FALSE)
M60=VLOOKUP(B60,Data!A:H,8,FALSE)
M61=VLOOKUP(B61,Data!A:H,8,FALSE)
M62=VLOOKUP(B62,Data!A:H,8,FALSE)
M82=VLOOKUP(B82,Data!A:H,8,FALSE)
M83=VLOOKUP(B83,Data!A:H,8,FALSE)
M84=VLOOKUP(B84,Data!A:H,8,FALSE)



The formula I'm looking to create would go start in H.
This formula wants to look at the Item at column B's (corresponding Row) value

Then it is going to search through the below (seperate worksheet)
for that value and return the component item that is next to it.

The trick is that a number of the Items in Column B have more than one Component in the below.

Not sure if this helps, but the number of components an Item has is listed in Column M above.

It also gets tricky because as you can see in the above example Item 25051 (which as shown in Column M) has 2 components but the part number is listed 4 times.

The formula would need to recognize (if possible) how many components each Item has, search and return those two components only then restart for the next Item number (even if the next Item number is the same!)

Is this possible or should I just convince the powers that be that the format of the spreadsheet needs to be revised completely to allow a function like this to work?
Excel Workbook
AB
1Bill Item NameComponent Item Name
2122ST122
3122STRGW32
4124122
5124RGX265
6125122
71400700120601200987500002
815002601500956250002
915008601501062500002
101500885129
1115010601200987500002
12150102901000024
Data
Excel 2007
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
How about this:


Excel Workbook
ABCD
1ResourceItemComponent# of Comp
2COUT10401241222
3COUT1040124RGX2652
4COUT10401241222
5COUT1040124RGX2652
6ENDROP1179150086015010625000022
7ENDROP117915008851292
8ENDROP1179150086015010625000022
Sheet3



... with extra columns in your data to allow the logic that you requested:

Excel Workbook
ABCDE
1Bill Item NameComponent Item NameNo of ComponentComponent NumberLookup Value
2122ST12221122ST[]1
3122STRGW3222122ST[]2
412412221124[]1
5124RGX26522124[]2
612512211125[]1
71400700120601200987500002111400700120[]1
8150026015009562500021115002[]1
9150086015010625000022115008[]1
1015008851292215008[]2
11150106012009875000022115010[]1
121501029010000242215010[]2
Data
 
Upvote 0

Forum statistics

Threads
1,224,520
Messages
6,179,266
Members
452,902
Latest member
Knuddeluff

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