Entering values automatically according to another ones.

yasmin97

New Member
Joined
Jan 5, 2016
Messages
1
I have an excel which has price points (like in the first table),each price point stands for a price..
and I have second excel which has the product codes and pricepoints..
I need a code to convert the pricepoints in the second table to prices..

Pricepointprice
1100
2120
3150

<tbody>
</tbody>

Poductcodepricepoint
5145263
5143681

<tbody>
</tbody>

Thank you in advance:)
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Like this



Excel 2007
ABC
1Pricepointprice
21100
32120
43150
5
6
7Poductcodepricepoint$ value
85145263150
95143681100
Sheet2
Cell Formulas
RangeFormula
C8=VLOOKUP(B8,$A$2:$B$4,2,0)
C9=VLOOKUP(B9,$A$2:$B$4,2,0)
 
Upvote 0
Is your table with product codes in a separate sheet or a separate workbook? I would recommend using an index match. Here is an example of an index match where I am looking up values from column B in one spreadsheet and returning the look up values in a different spreadsheet:
=INDEX('Z:\[Book1.xlsx]Sheet1'!$B$1:$B$5,MATCH(B1,'Z:\[Book1.xlsx]Sheet1'!$A$1:$A$5))

It's hard for me to help without a more specific example of your book and sheet names of where your tables are located.

Index Match is set up like this:
INDEX(X:X,MATCH(Y,Z:Z))

where:
X:X = Array which contains the value you would like to return
Y = The look up value or in this case the pricepoint
Z:Z = The Array of the values you are looking up against

So let T1 be table 1 and T2 be table 2:
INDEX(T1B2:T2B4,MATCH(T2A2,T1A2:T1A4))
 
Upvote 0

Forum statistics

Threads
1,216,095
Messages
6,128,800
Members
449,468
Latest member
AGreen17

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