Select data from table using data from dynamic drop down list

vampsthevampyre

New Member
Joined
Apr 29, 2016
Messages
28
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

[TABLE="width: 500"]
<tbody>[TR]
[TD]Conductors[/TD]
[TD]Diameter[/TD]
[TD]Area[/TD]
[TD]Design[/TD]
[TD]Supplier1[/TD]
[TD]Supplier2[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1.36[/TD]
[TD]1.48[/TD]
[TD]1.50[/TD]
[TD]0.90[/TD]
[TD]1.00[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1.37[/TD]
[TD]1.49[/TD]
[TD]1.50[/TD]
[TD]1.00[/TD]
[TD]1.10[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1.38[/TD]
[TD]1.50[/TD]
[TD]1.50[/TD]
[TD]1.10[/TD]
[TD]1.20[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1.78[/TD]
[TD]2.50[/TD]
[TD]2.50[/TD]
[TD]1.30[/TD]
[TD]1.40[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]0.53[/TD]
[TD]1.50[/TD]
[TD]1.50[/TD]
[TD]1.40[/TD]
[TD]1.30[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]0.67[/TD]
[TD]2.50[/TD]
[TD]2.50[/TD]
[TD]1.50[/TD]
[TD]1.40[/TD]
[/TR]
</tbody>[/TABLE]


Allowable Designs
[TABLE="width: 500"]
<tbody>[TR]
[TD]Design[/TD]
[TD]Conductors[/TD]
[TD]Diameter[/TD]
[/TR]
[TR]
[TD]1.50[/TD]
[TD]1[/TD]
[TD]1.37[/TD]
[/TR]
[TR]
[TD]1.50[/TD]
[TD]1[/TD]
[TD]1.38[/TD]
[/TR]
[TR]
[TD]2.50[/TD]
[TD]1[/TD]
[TD]1.78[/TD]
[/TR]
[TR]
[TD]1.50[/TD]
[TD]7[/TD]
[TD]0.53[/TD]
[/TR]
[TR]
[TD]2.50[/TD]
[TD]7[/TD]
[TD]0.67[/TD]
[/TR]
</tbody>[/TABLE]



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
[TABLE="width: 500"]
<tbody>[TR]
[TD]Design[/TD]
[TD]Conductors[/TD]
[TD]Diameter[/TD]
[TD]Supplier[/TD]
[TD]Cost[/TD]
[/TR]
[TR]
[TD]1.50[/TD]
[TD]1[/TD]
[TD]1.37[/TD]
[TD]Supplier1[/TD]
[TD]1.00[/TD]
[/TR]
</tbody>[/TABLE]


Design 2
[TABLE="width: 500"]
<tbody>[TR]
[TD]Design[/TD]
[TD]Conductors[/TD]
[TD]Diameter[/TD]
[TD]Supplier[/TD]
[TD]Cost[/TD]
[/TR]
[TR]
[TD]2.50[/TD]
[TD]7[/TD]
[TD]0.67[/TD]
[TD]Supplier2[/TD]
[TD]1.40[/TD]
[/TR]
</tbody>[/TABLE]

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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
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,223,237
Messages
6,170,924
Members
452,366
Latest member
TePunaBloke

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