Index/Match Non-linear Logic

JPARKHURST

Board Regular
Joined
Oct 25, 2016
Messages
151
I have the following table structure.

I am attempting to pull in the Planning rate associated with the Part No.

The structure (if you look towards the bottom of my table) is not stable - sometimes a product may have 1, 2 or 3 lines (they could, conceivably, have 10).
The structure may have
Part # Paint E-Coat 0
Assy LINENAMEVARIABLE Pack NEEDED RATE

- It will not always have a Paint E-Coat, and it may often have Multiple workstatiosn (eg, Assy LINENAMEVARIABLE Pack; Assy ReSpray LINE NAME VARIABLE PACK)
- Paint will always come first, if it exists, in the listing.

This is the formula I am using. Does it look valid? I am seeing a few results which I question, but so far each one I have looked at looks valid. That being said, there are several thousand Part#'s, so I cannot obviously track and check all of them (ok, I can, I don't want to).

Basically - how's my logic hold up, or can anybody see a better way of doing this? It feels...jinky.

=IF((INDEX(Master!J:J,MATCH(Derived!A2,Master!A:A,0)))="Paint E-Coat",INDEX(Master!L:L,SUM(MATCH(A2,Master!A:A,0)+1)),INDEX(Master!L:L,MATCH(A2,Master!A:A,0)))

(sorry about the sloppy table, i'm limited on what i can upload, transfer (apparently copy). I put the column letters/lables in the first row when I could no longer put them above.

A B C D E F G H I
[TABLE="width: 1788"]
<colgroup><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Part No[/TD]
[TD]Name[/TD]
[TD]Rev[/TD]
[TD]Standard Job Quantity[/TD]
[TD]Scrap (%)[/TD]
[TD]Lead Time Days[/TD]
[TD]Daily Pull Quantity[/TD]
[TD]Op No[/TD]
[TD]Operation[/TD]
[TD]Approved Workcenters (column J)[/TD]
[TD]Setup (hrs)[/TD]
[TD]Planning Rate (pcs/hr) (Column L)[/TD]
[/TR]
[TR]
[TD]100277-91131511-7[/TD]
[TD]5 DWR TOOL CENTER BLACK[/TD]
[TD][/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]10[/TD]
[TD]Paint E-Coat[/TD]
[TD]Paint E-Coat[/TD]
[TD="align: right"]0.15[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]30[/TD]
[TD]Assembly Simplified FG Packing[/TD]
[TD]Assy AMS TC Pack[/TD]
[TD="align: right"]0.15[/TD]
[TD="align: right"]97[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]ASSY RESPRAY PACK[/TD]
[TD="align: right"]0.15[/TD]
[TD="align: right"]97[/TD]
[/TR]
[TR]
[TD]100807-10131[/TD]
[TD]WALL CABINET RTA RB[/TD]
[TD][/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]10[/TD]
[TD]Paint E-Coat[/TD]
[TD]Paint E-Coat[/TD]
[TD="align: right"]0.15[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]40[/TD]
[TD]Assembly Simplified FG Packing[/TD]
[TD]Assy GS 1 Pack[/TD]
[TD="align: right"]0.15[/TD]
[TD="align: right"]65[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Assy GS PRO Pack[/TD]
[TD="align: right"]0.15[/TD]
[TD="align: right"]65[/TD]
[/TR]
[TR]
[TD]100875-10132[/TD]
[TD]WORKBENCH 6FT RTA RED[/TD]
[TD][/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]10[/TD]
[TD]Paint E-Coat[/TD]
[TD]Paint E-Coat[/TD]
[TD="align: right"]0.15[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]40[/TD]
[TD]Assembly Simplified FG Packing[/TD]
[TD]Assy GS 1 Pack[/TD]
[TD="align: right"]0.15[/TD]
[TD="align: right"]52[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Assy GS PRO Pack[/TD]
[TD="align: right"]0.15[/TD]
[TD="align: right"]52[/TD]
[/TR]
[TR]
[TD]100879-10133[/TD]
[TD]WORKBENCH 5 DRAWER KIT RTA RB[/TD]
[TD][/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]10[/TD]
[TD]Paint E-Coat[/TD]
[TD]Paint E-Coat[/TD]
[TD="align: right"]0.15[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]30[/TD]
[TD]Assembly Simplified FG Packing[/TD]
[TD]Assy GS 1 Pack[/TD]
[TD="align: right"]0.15[/TD]
[TD="align: right"]70[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Assy GS PRO Pack[/TD]
[TD="align: right"]0.15[/TD]
[TD="align: right"]70[/TD]
[/TR]
[TR]
[TD]100964-10134[/TD]
[TD]FLOOR CABINET RB RTA[/TD]
[TD][/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]10[/TD]
[TD]Paint E-Coat[/TD]
[TD]Paint E-Coat[/TD]
[TD="align: right"]0.17[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]20[/TD]
[TD]Paint E-Coat 1[/TD]
[TD]Paint E-Coat[/TD]
[TD="align: right"]0.17[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]40[/TD]
[TD]Assembly Simplified FG Packing[/TD]
[TD]Assy GS 1 Pack[/TD]
[TD="align: right"]0.17[/TD]
[TD="align: right"]50[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Assy GS PRO Pack[/TD]
[TD="align: right"]0.17[/TD]
[TD="align: right"]50[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]ASSY RESPRAY PACK[/TD]
[TD="align: right"]0.17[/TD]
[TD="align: right"]50[/TD]
[/TR]
[TR]
[TD]101038-PC343[/TD]
[TD]3 DWR PROJ CTR RR[/TD]
[TD][/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]10[/TD]
[TD]Paint E-Coat[/TD]
[TD]Paint E-Coat[/TD]
[TD="align: right"]0.15[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]40[/TD]
[TD]Assembly Simplified FG Packing[/TD]
[TD]Assy AMS Cab Pack[/TD]
[TD="align: right"]0.15[/TD]
[TD="align: right"]121[/TD]
[/TR]
[TR]
[TD]101271-10139[/TD]
[TD]WORKBENCH 5 DRAWER KIT RTA BP[/TD]
[TD][/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]10[/TD]
[TD]Paint E-Coat[/TD]
[TD]Paint E-Coat[/TD]
[TD="align: right"]0.12[/TD]
[TD="align: right"]0[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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