Product Data

Amanda1234

New Member
Joined
Oct 12, 2022
Messages
6
Office Version
  1. 365
Platform
  1. Windows
I have a Master price file that has multiple columns starting with the product code. I would like another sheet to pick up certain columns when we type in just the code.

ie. Master Sheet - Product code, Supplier, Description, Buy Price, Conversion, Unit Price
New Sheet - Product code typed in brings up Supplier, Description, price all in separate cells.

I have tried vlookup formulas in each cell but it slows the sheet down alot when we copy/paste a handful of codes down column 1 at a time.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Paste this formula to new sheet B2:
Excel Formula:
=VLOOKUP($A2, 'Master Sheet'!$A:$F, 2)
C2:
Excel Formula:
=VLOOKUP($A2, 'Master Sheet'!$A:$F, 3)
D2:
Excel Formula:
=VLOOKUP($A2, 'Master Sheet'!$A:$F, 6)

Apart from the above, you may also try the formula below. This doesn't require separate formulas but header names must be identical.
Excel Formula:
= INDEX('Master Sheet'!$A:$F, MATCH($A2, 'Master Sheet'!$A:$A, 0), MATCH(B$1, 'Master Sheet'!$A$1:$F$1, 0))
 
Upvote 0
Welcome to the MrExcel board!

Since you have Excel 365, you can bring all the wanted columns with a single formula - no need for one in each column.

You have not given exact details but see if something like this might help. I have assumed that a particular product code will only occur once in the master sheet.

Amanda1234.xlsm
ABCDEF
1Product CodeSupplierDescriptionPriceConversionUnit price
2Code 1Supplier 1Desc 1P1Conv 1UP 1
3Code 2Supplier 2Desc 2P2Conv 2UP 2
4Code 3Supplier 3Desc 3P3Conv 3UP 3
5Code 4Supplier 4Desc 4P4Conv 4UP 4
6Code 5Supplier 5Desc 5P5Conv 5UP 5
Master


Amanda1234.xlsm
ABCD
1CodeSupplierDescriptionPrice
2Code 4Supplier 4Desc 4P4
3Code 2Supplier 2Desc 2P2
4 
Sheet2
Cell Formulas
RangeFormula
B4,B2:D3B2=IF(A2="","",FILTER(Master!B$2:D$100,Master!A$2:A$100=A2,""))
Dynamic array formulas.
 
Upvote 0
Welcome to the MrExcel board!

Since you have Excel 365, you can bring all the wanted columns with a single formula - no need for one in each column.

You have not given exact details but see if something like this might help. I have assumed that a particular product code will only occur once in the master sheet.

Amanda1234.xlsm
ABCDEF
1Product CodeSupplierDescriptionPriceConversionUnit price
2Code 1Supplier 1Desc 1P1Conv 1UP 1
3Code 2Supplier 2Desc 2P2Conv 2UP 2
4Code 3Supplier 3Desc 3P3Conv 3UP 3
5Code 4Supplier 4Desc 4P4Conv 4UP 4
6Code 5Supplier 5Desc 5P5Conv 5UP 5
Master


Amanda1234.xlsm
ABCD
1CodeSupplierDescriptionPrice
2Code 4Supplier 4Desc 4P4
3Code 2Supplier 2Desc 2P2
4 
Sheet2
Cell Formulas
RangeFormula
B4,B2:D3B2=IF(A2="","",FILTER(Master!B$2:D$100,Master!A$2:A$100=A2,""))
Dynamic array formulas.

Hi Peter_SSs

Thats great thank you. It eliminates 3 vlookup cells and just leaves 1 column that needs a vlookup as it is separate to the others. Saved me alot of time, so very much appreciated. :)
 
Upvote 0
You're welcome.


Would you like to explain what that formula is and where it is (say in relation to the sample data/layout in post #3)? There may possibly be an alternative for that too.
HI Peter_SSs,

so the price would be in column F as apposed to D. D and E would be lank with no formula so users can add a manual QTY to order and multiply with Price in F.
 
Upvote 0
Thanks for the clarification. Yes, if you are going to have a manual entry within the data row, a separate formula would be appropriate. (y)
 
Upvote 0

Forum statistics

Threads
1,214,914
Messages
6,122,211
Members
449,074
Latest member
cancansova

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