Select data from table using data from dynamic drop down list

vampsthevampyre

New Member
Joined
Apr 29, 2016
Messages
20
Office Version
  1. 365
Platform
  1. Windows
Can anybody help, been trying to find a solution to this problem (google wasn't my friend and gave me a load of junk to read!!).

I have three tables,
  1. a list of conductors, conductor sizes and costs from several suppliers (Conductors/prices)
  2. a list of allowable conductors and sizes for a particular product (Allowable Designs)
  3. a product creation screen that allows various scenarios to be tried.(Current Design)

I have set up the "conductors/prices" and "allowable designs" tables to have dynamic names so I can add more products and designs when needed.
Using the dynamic names from the "allowable design" table a have set up validated lists so the user can only select from certain designs.

What I'm having trouble with is getting the current design table with its selected design to reference the "conductors/prices" table and return a corresponding price.

examples of the tables are below:-
Conductors/Prices

ConductorsDiameterAreaDesignSupplier1Supplier2
11.361.481.500.901.00
11.371.491.501.001.10
11.381.501.501.101.20
11.782.502.501.301.40
70.531.501.501.401.30
70.672.502.501.501.40

<tbody>
</tbody>


Allowable Designs
DesignConductorsDiameter
1.5011.37
1.5011.38
2.5011.78
1.5070.53
2.5070.67

<tbody>
</tbody>



The user would then have several validated dropdown boxes in each design to select number of conductors, Diameter and supplier and the table would look up the cost

Design 1
DesignConductorsDiameterSupplierCost
1.5011.37Supplier11.00

<tbody>
</tbody>


Design 2
DesignConductorsDiameterSupplierCost
2.5070.67Supplier21.40

<tbody>
</tbody>

I have tried using the Index(match) but a cannot get it to look up an array from a validated drop down list of named dynamic ranges.

Any help would be appreciated

Regards

Ian.
 

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 Ian.

I think I got it figured out, couple questions??

You show a Design 1 and a Design 2, now are those 2 examples from your drop down cells, or do you actually have two sets of drop downs?
I'm taking it as one set of drop downs, showing a couple of examples, but again only from one set of drop downs.

And on your Allowable Designs I presume those are the only combinations that are allowed to be used, that is, there cannot be a [1.50 - 7 - 1.38] design.

And are you allowed to use a helper column and one helper cell?

Howard
 
Upvote 0
Welcome to the MrExcel board!

I have set up the "conductors/prices" and "allowable designs" tables to have dynamic names ..
Rather than the tables having "dynamic names", I assume that you mean that you have set up names that have "dynamic ranges", commonly referred to as "dynamic named ranges". I also assume that the "Allowable Designs" section is only used to enable the various drop-downs available to the user, not in the final calculation that you are asking about.

In my screen shot below, instead of a dynamic named range, I have set up A3:F9 as an Excel 'Table' (via the Insert ribbon tab). That will work like your dynamic named range in that it will automatically expand if new rows are added.
I have then gone into the Name Manger (Formulas ribbon tab) and edited the table name from "Table1" to "CP".
Formula in E22 is copied to other "cost calculation cells" (eg E26)

Excel Workbook
ABCDEF
2
3ConductorsDiameterAreaDesignSupplier1Supplier2
411.361.481.50.91
511.371.491.511.1
611.381.51.51.11.2
711.782.52.51.31.4
870.531.51.51.41.3
970.672.52.51.51.4
10
19
20Design 1
21DesignConductorsDiameterSupplierCost
221.511.37Supplier11
23
24Design 2
25DesignConductorsDiameterSupplierCost
262.570.67Supplier21.4
Design Cost
 
Last edited:
Upvote 0
Thank you @Peter_SSs. This solution works perfectly, the #Ref was doing my head in. Never used the table function before, but it now looks like it could be my new favourite function in excel for this week.

Once again thanks for the prompt reply and after re-reading my post I'm amazed that you worked out correctly what I was trying to do as my description was severely lacking.

Cheers

Ian
 
Upvote 0
You are welcome. Glad it worked out well for you. :)
 
Upvote 0

Forum statistics

Threads
1,216,070
Messages
6,128,612
Members
449,460
Latest member
jgharbawi

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