Hi all,
New to the forum and my Excel skills need a bit of work! Hoping someone might be able to help please?
I am currently creating a costing spreadsheet - each tab/worksheet relates to a specific supplier and contains the items they sell and their prices. I'd like to create a front sheet using drop down lists & formulas that will pull costing information through into a quote.
For example, cell D9 contains a dropdown list created using data validation and a source list named "Supplier". Cell E9 then populates with a further drop down showing the list of items available from this supplier, using data validation "source =indirect(D9)". Cell F9 contains the quantity needed and, in cell G9, I want to calculate the cost of the purchase.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Supplier[/TD]
[TD]Item[/TD]
[TD]Quantity[/TD]
[TD]Cost[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]ABC[/TD]
[TD]Timber[/TD]
[TD]2[/TD]
[TD]£[/TD]
[/TR]
</tbody>[/TABLE]
I have tried using VLOOKUP to do this but can't work out how to get the table array to change depending on what's been chosen in Column D?
For example, for supplier ABC, I have used VLOOKUP(E9,ABC!$C$10:$D$52,2)*F9. This works well and will calculate exactly what I need (the items being in column C and costs being in column D of the ABC tab). However, this formula still points to supplier ABC's price list, even if I select supplier DEF from the drop down in column D.
Is there a way for the VLOOKUP formula to change in accordance with which supplier has been selected in D9? Or should I be using a different formula / method entirely?
I hope this makes sense - as I said, I'm still learning when it comes to anything more than a very basic spreadsheet! It would be great if somebody can help shed some light.
Thanks,
Gemma
New to the forum and my Excel skills need a bit of work! Hoping someone might be able to help please?
I am currently creating a costing spreadsheet - each tab/worksheet relates to a specific supplier and contains the items they sell and their prices. I'd like to create a front sheet using drop down lists & formulas that will pull costing information through into a quote.
For example, cell D9 contains a dropdown list created using data validation and a source list named "Supplier". Cell E9 then populates with a further drop down showing the list of items available from this supplier, using data validation "source =indirect(D9)". Cell F9 contains the quantity needed and, in cell G9, I want to calculate the cost of the purchase.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Supplier[/TD]
[TD]Item[/TD]
[TD]Quantity[/TD]
[TD]Cost[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]ABC[/TD]
[TD]Timber[/TD]
[TD]2[/TD]
[TD]£[/TD]
[/TR]
</tbody>[/TABLE]
I have tried using VLOOKUP to do this but can't work out how to get the table array to change depending on what's been chosen in Column D?
For example, for supplier ABC, I have used VLOOKUP(E9,ABC!$C$10:$D$52,2)*F9. This works well and will calculate exactly what I need (the items being in column C and costs being in column D of the ABC tab). However, this formula still points to supplier ABC's price list, even if I select supplier DEF from the drop down in column D.
Is there a way for the VLOOKUP formula to change in accordance with which supplier has been selected in D9? Or should I be using a different formula / method entirely?
I hope this makes sense - as I said, I'm still learning when it comes to anything more than a very basic spreadsheet! It would be great if somebody can help shed some light.
Thanks,
Gemma