Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I'm trying to streamline how to determine costs to make a garment easily. We
have muliple different fabric options, each with its own cost. How do I create a drop down box that lists the fabric names and also links this selection to the cost of the fabric so I can easily see the differences in cost when selecting a different fabric? Any help would be greatly appreciated. William |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I think you could use a combination of Data Validation and VLOOKUP functions
Try building this model so you can get familiar with the concepts..... On Sheet2, create a price list A1: Fabric A2: Cotton A3: Rayon etc B1: Price B2: 6.55 B3: 3.20 etc Select A2 through the last item listed in Col_A InsertNameDefine Names in workbook: LU_Fabric Refers to: (your selected list) Click [OK] Select A2 through the last item listed in Col_A InsertNameDefine Names in workbook: LU_Price Refers to: (your selected list) Click [OK] Now switch to Sheet1 A1: Fabric Select A2 DataData Validation Allow: List Source: (click in here, Press the [F3] key, select LU_Fabric) Click [OK] Copy A2 down as far as you need inputs B1: Price B2: =VLOOKUP(A2,LU_Price,2,0) Copy B2 down as far as you need. Of course adjust range references to suit your situation. Change the fabrics and prices, too....I just made them up :) Does that help? *********** Regards, Ron XL2002, WinXP-Pro "Soccer Guy" wrote: I'm trying to streamline how to determine costs to make a garment easily. We have muliple different fabric options, each with its own cost. How do I create a drop down box that lists the fabric names and also links this selection to the cost of the fabric so I can easily see the differences in cost when selecting a different fabric? Any help would be greatly appreciated. William |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
sSlight correction:
The range named LU_Price should refer to Sheet2, cells A2 through the last item in Col_B. So if you have 4 items and prices....the LU_Price will refer to Sheet2!A2:B5. (My apologies for the typo.) *********** Regards, Ron XL2002, WinXP-Pro "Ron Coderre" wrote: I think you could use a combination of Data Validation and VLOOKUP functions Try building this model so you can get familiar with the concepts..... On Sheet2, create a price list A1: Fabric A2: Cotton A3: Rayon etc B1: Price B2: 6.55 B3: 3.20 etc Select A2 through the last item listed in Col_A InsertNameDefine Names in workbook: LU_Fabric Refers to: (your selected list) Click [OK] Select A2 through the last item listed in Col_A InsertNameDefine Names in workbook: LU_Price Refers to: (your selected list) Click [OK] Now switch to Sheet1 A1: Fabric Select A2 DataData Validation Allow: List Source: (click in here, Press the [F3] key, select LU_Fabric) Click [OK] Copy A2 down as far as you need inputs B1: Price B2: =VLOOKUP(A2,LU_Price,2,0) Copy B2 down as far as you need. Of course adjust range references to suit your situation. Change the fabrics and prices, too....I just made them up :) Does that help? *********** Regards, Ron XL2002, WinXP-Pro "Soccer Guy" wrote: I'm trying to streamline how to determine costs to make a garment easily. We have muliple different fabric options, each with its own cost. How do I create a drop down box that lists the fabric names and also links this selection to the cost of the fabric so I can easily see the differences in cost when selecting a different fabric? Any help would be greatly appreciated. William |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
William
Assume you have two columns on Sheet2 A with fabrics to A40 Give A1:A40 a name through InsertNameDefine. I'll call it fablist B with Cost for each to B40 Switch to Sheet1 and in A1 Add a DataValidationList drop down. The source for this list is the list on Sheet2 and you enter it like this in the DV source dialog. =fablist In B1 enter =VLOOKUP(A1,Sheet2!$A$1:$B$40,2,FALSE) Select a fabric in A1 and cost will pop up in B1 Gord Dibben Excel MVP On Fri, 23 Dec 2005 15:32:02 -0800, "Soccer Guy" <Soccer Guy @discussions.microsoft.com wrote: I'm trying to streamline how to determine costs to make a garment easily. We have muliple different fabric options, each with its own cost. How do I create a drop down box that lists the fabric names and also links this selection to the cost of the fabric so I can easily see the differences in cost when selecting a different fabric? Any help would be greatly appreciated. William |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thank you very much for your help and assistance. Excellent advice and tips.
It solved what I was looking for. William |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thank you.
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using names to represent values | New Users to Excel | |||
multiple select from the drop down list in excel. list in one sheet and drop down in | Excel Discussion (Misc queries) | |||
How do I add names to a drop down list? | Excel Discussion (Misc queries) | |||
Count Intervals of Filtered TEXT values in Column and Return Count across a Row | Excel Worksheet Functions | |||
Filling drop down box | Excel Discussion (Misc queries) |