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..

[TABLE="width: 500"]
<tbody>[TR]
[TD]Pricepoint[/TD]
[TD]price[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]120[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]150[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 500"]
<tbody>[TR]
[TD]Poductcode[/TD]
[TD]pricepoint[/TD]
[/TR]
[TR]
[TD]514526[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]514368[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]

Thank you in advance:)
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,223,268
Messages
6,171,100
Members
452,379
Latest member
IainTru

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