Correct argument for multiple supplliers in a po form

Vicdv

New Member
Joined
Sep 14, 2017
Messages
6
I am working on a purchase order form that have multiple suppliers and different prices. I already searched the forum related to what i'm doing but it seems I can't find similar case. I used data validation for my pick list and basic vlookup function to display the item and corresponding price and it works just fine for only one supplier, since we have multiple suppliers with diffrent materials and cost, What i want to do is when i select a particular supplier it would display the materials that they serve and pick an item from that list and will automatically display the price.
PO_FORM.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 Vic,

You've set yourself an entirely possible challenge, but its not easy!

I think its a two/three step process:

1. Create a unique list of the suppliers. This formula, entered with CTRL-SHFT-ENTER rather than simply Enter, should be entered into cell E2:
=IFERROR(INDEX($A$2:$A$31,MATCH(0,COUNTIF($E$1:$E1,$A$2:$A$31),0)),"") will extract the unique list from your list of products and suppliers. Cells $A$1:$A$31 have the names of the suppliers. The cell reference $E$1:$E1 should be the cell above the top of the extracted list of suppliers. So if you wanted the list starting at cell H7 then it would become $H$6:$H6.

2. Create a list of products extracted from the list of products and suppliers. This formula, again entered with CTRL-SHFT-ENTER, should be entered into cell F2:
=IFERROR(INDEX($B$2:$B$31, MATCH(0, IF($I$2=$A$2:$A$31, COUNTIF($F$1:$F1, $B$2:$B$31), ""), 0)),"") the information in column B would be the product list, cell I2 has the name of the supplier on the Purchase Order form.

3. In order to create dropdown validation lists you could create a named range using the following formula:
=OFFSET(Sheet1!$F$2,0,0,COUNTA(Sheet1!$F$2:$F$29)-COUNTBLANK(Sheet1!$F$2:$F$29)) F2 refers to the top of the extracted list of products, $F$2:$F$29 is the range through which you copied the formal create at step 2 above. It is important to ensure that the two ranges match - it will fail otherwise because the COUNT functions get confused by formulas in cells!

You may well need to play with these to get them to work to match your exact layout.

Good luck and hope this helps.

Regards
 
Upvote 0
I am working on a purchase order form that have multiple suppliers and different prices. I already searched the forum related to what i'm doing but it seems I can't find similar case. I used data validation for my pick list and basic vlookup function to display the item and corresponding price and it works just fine for only one supplier, since we have multiple suppliers with diffrent materials and cost, What i want to do is when i select a particular supplier it would display the materials that they serve and pick an item from that list and will automatically display the price.
PO_FORM.jpg

https://ibb.co/mZ8XDk
 
Upvote 0
Thank you pjmorris for the reply. I just posted the example of my suppliers item list and price.
Hi Vic,

You've set yourself an entirely possible challenge, but its not easy!

I think its a two/three step process:

1. Create a unique list of the suppliers. This formula, entered with CTRL-SHFT-ENTER rather than simply Enter, should be entered into cell E2:
=IFERROR(INDEX($A$2:$A$31,MATCH(0,COUNTIF($E$1:$E1,$A$2:$A$31),0)),"") will extract the unique list from your list of products and suppliers. Cells $A$1:$A$31 have the names of the suppliers. The cell reference $E$1:$E1 should be the cell above the top of the extracted list of suppliers. So if you wanted the list starting at cell H7 then it would become $H$6:$H6.

2. Create a list of products extracted from the list of products and suppliers. This formula, again entered with CTRL-SHFT-ENTER, should be entered into cell F2:
=IFERROR(INDEX($B$2:$B$31, MATCH(0, IF($I$2=$A$2:$A$31, COUNTIF($F$1:$F1, $B$2:$B$31), ""), 0)),"") the information in column B would be the product list, cell I2 has the name of the supplier on the Purchase Order form.

3. In order to create dropdown validation lists you could create a named range using the following formula:
=OFFSET(Sheet1!$F$2,0,0,COUNTA(Sheet1!$F$2:$F$29)-COUNTBLANK(Sheet1!$F$2:$F$29)) F2 refers to the top of the extracted list of products, $F$2:$F$29 is the range through which you copied the formal create at step 2 above. It is important to ensure that the two ranges match - it will fail otherwise because the COUNT functions get confused by formulas in cells!

You may well need to play with these to get them to work to match your exact layout.

Good luck and hope this helps.

Regards
 
Upvote 0
You do realise this is a public forum? If those aren't garbage prices they really shouldn't be there
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,314
Members
452,634
Latest member
cpostell

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