Table Lookup to return list of discrete items and specific values

chowee21

New Member
Joined
Feb 26, 2014
Messages
9
I have a table that I want to be able to:
  1. Create a Data Validation in cell C4 of all of the discrete MODELs listed in column D9:D27. (i.e. A, B,C)
  2. Create a Data Validation in cell C5 of all TYPEs from the MODEL selected in C4 (i.e. 1,2,3)
  3. Return the DENSITY from the WEIGHT inputted by the user based on the MODEL and TYPE. The table will give a range for the weight

So for example, if I input: Weight=10, Model = C, Size = 2..... it should return Density = 9.90

Prefer to try to only use excel functions, but willing to use VBA if needed.


Capture.JPG
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hi Chowee21,

Please update your profile with your Excel version as you may receive more succinct formulae. My Excel 2016 solution is:

Chowee21.xlsx
BCDEFGHIJKL
2ModelType
3WEIGHT7<--- input a numberA1
4ModelB<--- create a drop down of all MODELs from table (i.e. A, B,C,etc.)B2
5Type1<--- create a drop down of all SIZEs from the MODEL in C5 from table (i.e. 1, 2, 3, etc.)C3
6Density7.449726<--- return density of the Model & Size selected based on the weight inputted by the user.D 
7E 
8F 
9ModelSizeWEIGHT MIN (lb)WEIGHT MAX (lb)DENSITY (kg/m2)  
10A10.0049.997.45  
11A250.0099.999.90  
12A3100.00150.0012.51  
13B10.0049.997.45  
14B250.0099.999.90  
15B3100.00150.0012.51  
16C10.0049.997.45  
17C250.0099.999.90  
18C3100.00150.0012.51  
19D10.0049.997.45  
20D250.0099.999.90  
21D3100.00150.0012.51
22E10.0049.997.45
23E250.0099.999.90
24E3100.00150.0012.51
25F10.0049.997.45
26F250.0099.999.90
27F3100.00150.0012.51
Sheet2
Cell Formulas
RangeFormula
K3:K20K3=IFERROR(INDEX($D$10:$D$27,MATCH(0,INDEX(COUNTIF($K$2:$K2,$D$10:$D$27),),0))&"","")
L3:L20L3=IFERROR(INDEX($E$10:$E$27,AGGREGATE(15,6,ROW($E$10:$E$27)-ROW($E$9)/($D$10:$D$27=$C$4),ROW()-ROW($K$2))),"")
C6C6=IF(COUNTIFS($D$10:$D$27,$C$4,$E$10:$E$27,$C$5,$F$10:$F$27,"<="&$C$3,$G$10:$G$27,">="&$C$3)=0,"None",INDEX($H$10:$H$27,MATCH(1,INDEX(($C$4=$D$10:$D$27)*($C$5=$E$10:$E$27),0,1),0)))
Cells with Data Validation
CellAllowCriteria
C4List=OFFSET($K$3,,,COUNTIF($K$3:$K$20,"> "))
C5List=OFFSET($L$3,,,COUNTIF($L$3:$L$20,">0"))
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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