A Challenge... multiple lines of data to match and with conditions

bk1702

New Member
Joined
Jul 18, 2012
Messages
38
Hi, I'm trying to match multiple cells of data to a table. I figured out (using other threads) how to get one set to match another, but am trying to figure out how to get multiple sets to match in different orders without spelling them each out. In the end I'm looking for the name that will match the various cuts. All of the cut data has to match but it doesn't matter which order the cuts are in. Thanks for any help!

This is my current formula in C14 (using CSE):

{=IF(D5="No Cut",INDEX($AE$3:$AE$759,MATCH(C4&C5&C6&C7&C8&C9&C10&C11&C12&C13,$AH$3:$AH$759&$AI$3:$AI$759&$AJ$3:$AJ$759&AK3:AK759&AL3:AL759&AM3:AM759&AN3:AN759&AO3:AO759&AP3:AP759&AQ3:AQ759,0)),IF(E5="No Cut",INDEX($AE$3:$AE$759,MATCH(D4&C5&C6&C7&C8&C9&C10&C11&C12&C13,$AH$3:$AH$759&$AI$3:$AI$759&$AJ$3:$AJ$759&AK3:AK759&AL3:AL759&AM3:AM759&AN3:AN759&AO3:AO759&AP3:AP759&AQ3:AQ759,0)),"three cuts"))}

[TABLE="class: grid, width: 553"]
<TBODY>[TR]
[TD][/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[TD]G
[/TD]
[TD]H
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD][/TD]
[TD]CUT 1</SPAN>
[/TD]
[TD]CUT 2</SPAN>
[/TD]
[TD]CUT 3</SPAN>
[/TD]
[TD]CUT 4</SPAN>
[/TD]
[TD]CUT 5</SPAN>
[/TD]
[TD]CUT 6</SPAN>
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]Type:</SPAN>
[/TD]
[TD]Shoulder</SPAN>
[/TD]
[TD]Shoulder</SPAN>
[/TD]
[TD]Lap</SPAN>
[/TD]
[TD]No Cut
[/TD]
[TD]No Cut
[/TD]
[TD]No Cut
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD]Cut Direction:</SPAN>
[/TD]
[TD]Web</SPAN>
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[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]14
[/TD]
[TD]End Cut:</SPAN>
[/TD]
[TD]three cuts</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]

Sample of Data Table:
[TABLE="class: grid, width: 1145"]
<TBODY>[TR]
[TD][/TD]
[TD]AE
[/TD]
[TD]AG
[/TD]
[TD]AH
[/TD]
[TD]AI
[/TD]
[TD]AJ
[/TD]
[TD]AK
[/TD]
[TD]AL
[/TD]
[TD]AM
[/TD]
[TD]AN
[/TD]
[TD]AO
[/TD]
[TD]AP
[/TD]
[TD]AQ
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]Name</SPAN>
[/TD]
[TD]Sequence of Cut (1.2 is 1of2, 2.2 is 2of2)</SPAN>
[/TD]
[TD]# of Cuts</SPAN>
[/TD]
[TD]Type</SPAN>
[/TD]
[TD]Direction of Cut</SPAN>
[/TD]
[TD]LocX</SPAN>
[/TD]
[TD]LocY</SPAN>
[/TD]
[TD]Cut Depth Start:</SPAN>
[/TD]
[TD]Cut Depth End:</SPAN>
[/TD]
[TD]A</SPAN>
[/TD]
[TD]B</SPAN>
[/TD]
[TD]C</SPAN>
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]EC1</SPAN>
[/TD]
[TD]1.1</SPAN>
[/TD]
[TD]Cut 1</SPAN>
[/TD]
[TD]Rectangle</SPAN>
[/TD]
[TD]Web</SPAN>
[/TD]
[TD]75</SPAN>
[/TD]
[TD]75</SPAN>
[/TD]
[TD]MIN</SPAN>
[/TD]
[TD]MAX</SPAN>
[/TD]
[TD]196</SPAN>
[/TD]
[TD]25</SPAN>
[/TD]
[TD]0</SPAN>
[/TD]
[/TR]
[TR]
[TD]4</SPAN>
[/TD]
[TD]L64X64X6.4 COPE 27X7</SPAN>
[/TD]
[TD]1.2</SPAN>
[/TD]
[TD]Cut 2</SPAN>
[/TD]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>
[/TD]
[TD]40</SPAN>
[/TD]
[TD]0</SPAN>
[/TD]
[/TR]
[TR]
[TD]738</SPAN>
[/TD]
[TD]Reverse Snipe 0Lx9deg</SPAN>
[/TD]
[TD]1.1</SPAN>
[/TD]
[TD]Cut 1</SPAN>
[/TD]
[TD]Snipe</SPAN>
[/TD]
[TD]Web</SPAN>
[/TD]
[TD]0</SPAN>
[/TD]
[TD]MIN</SPAN>
[/TD]
[TD]MIN</SPAN>
[/TD]
[TD]MAX</SPAN>
[/TD]
[TD]TAN(83.66)</SPAN>
[/TD]
[TD]WH</SPAN>
[/TD]
[TD]0</SPAN>
[/TD]
[/TR]
</TBODY>[/TABLE]

Thanks,
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
So, I've now named each of the arrays and come up with this (I added another set of columns for two cuts so each one is in one row):

{=IF($D$6="No Cut",INDEX(OldName,MATCH(Cut_One,col1cut&col2ty&col3dir&col4lx&col5ly&col6cds&col7cde&col8A&col9B&col10C,0)),IF(E6="No Cut",INDEX(OldName,MATCH(Cut_Two&One,col1cut&col2ty&col3dir&col4lx&col5ly&col6cds&col7cde&col8A&col9B&col10C&col_20&col_21&col_22&col_23&col_24&col_25&col_26&col_27&col_28,0)),"three cuts"))} CSE formula

I sitll don't know how to do more than matching 2 rows, as i'd have to create each possible combination in all possible orders. There's got to be a way to do this...
 
Upvote 0
Ultimately I'm looking for the Name (in C14) from column AE that matches the data C5:H12 with the data in columns AI to AQ.

Each column in C5:H12 represents a 'cut' on a piece of material. There can be multiple cuts on each piece of material.

For Example: cells AE4 and AE5 have the same name: L64X64X6.4 COPE 27X7 there are two different cuts on one item as indicated in column AH. So C5:C12 much match either AI4:AQ4 or </SPAN>AI5:AQ5 and D5:D12 must match the opposite row that C5:C12 matches, the order of each cut doesn't matter only that they match.

This is where my problem lies. I can do the items with one cut with the "&" but when you throw in more than one cut it no longer works. I was able to do 2 cuts by adding another set of columns to do the second cut, however with 3 (or more cuts) the number of rows must go up to account for the many possibilities. There are a max of 6 cuts per piece of material.

Please let me know if this is confusing...
Thanks!
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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