Narrowing a table based on criteria

powell

New Member
Joined
Jan 14, 2015
Messages
24
Hi board,

I'm having trouble doing the following, and I haven't been able to come up with a good enough search term to find a solved version of my problem.

I have about 7000 line items, but I'll simplify it to explain what I'm trying to do. Basically, I have a large table of item data that I want reduced to new table sets based on certain criteria that can be inputted into certain cells.

Sheet 1: Part Data
PartLengthWidthHeightWeightABC
1
56410
23538
31491936
462838
512045

<tbody>
</tbody>

A B and C represent additional columns that I want to preserve in the new table, but wont be used for narrowing down items.


Sheet 2: Criteria and new (dynamic) Part table

Min Length2
Max Length10
Min Width4
Max Width10
Min Height1
Max Height14
Min Weight5
Max Weight20

<tbody>
</tbody>

For each of these criteria, I would like to be able to change the numbers, and have a table populate next to it with all the parts from sheet 1 that fit the criteria.

Let me know if any more clarification is needed. Any help would be greatly appreciated.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Something like this?

Excel 2010
ABCDEFGH
1PartLengthWidthHeightWeightABC
2156410
323538
431491936
5462838
6512045

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1



Excel 2010
ABCDEFGHI
1Min Length2
2Max Length10
3Min Width4
4Max Width10
5Min Height1
6Max Height14
7Min Weight5
8Max Weight20
9
10RowPartLengthWidthHeightWeightABC
112156410000
12323538000
13

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2

Worksheet Formulas
CellFormula
B11=IF(A11="","",INDEX(Sheet1!A:A,$A11))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Array Formulas
CellFormula
A11{=IF(A10="","",IFERROR(SMALL(IF((--(Sheet1!$B$2:$B$6>=$C$1))*(--(Sheet1!$B$2:$B$6<=$C$2))*(--(Sheet1!$C$2:$C$6>=$C$3))*(--(Sheet1!$C$2:$C$6<=$C$4))*(--(Sheet1!$D$2:$D$6>=$C$5))*(--(Sheet1!$D$2:$D$6<=$C$6))*(--(Sheet1!$E$2:$E$6>=$C$7))*(--(Sheet1!$E$2:$E$6<=$C$8)),ROW(Sheet1!$A$2:$A$6)),ROWS($A$11:$A11)),""))}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>



The A column on sheet2 is a helper column, just showing the row where a matching part is found. You can hide it if you want. Put the formula in A11, and confirm it with Control-Shift-Enter. Then enter the formula in B11. (Change the ranges to match your sheet.) Then copy B11 and copy it across to I11. Then select A11:I11 and paste them down the column as far as necessary.

Let me know how this works.
 
Upvote 0

Forum statistics

Threads
1,214,791
Messages
6,121,611
Members
449,038
Latest member
apwr

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