Is there a way to drag the formula down but changing the column

ranjith2523

Board Regular
Joined
Apr 29, 2014
Messages
137
Office Version
  1. 365
Hello Friends,

I have data from Column A to Column XX and wrote an XLOOKUP formula to fetch the data from another sheet.

For the first row, the formula works as expected but when I copy the formula and apply it to the second row (For Product 847309-B21) the procedure automatically changes the cell value. The concat range change from K1:K3 to K2 to K4 hence not fetching the price from Sheet3. I have the data for 100+ columns hence manually changing the formula in each column will take a very long time. Please have a look at the below data and help me with this.

I believe we can do this by joining the Transpose Filter and Index formula, I have tried my best but have not been able to do that :( hence seeking your help.

Pricing Automation_V11.xlsm
ABKLMNO
1FEP-PRICESGEOGRAPHYUSUS00ITES
2CURRENCYUSDUSDUSDEUREUR
3INCOTERMRPDDPDDPDDPDDP
4PRICE LIST
10SKUOptionUS LPGLP
11707853-B22361.00361.00 429.00429.00
12847309-B21     
Price Import
Cell Formulas
RangeFormula
K11:O12K11=XLOOKUP(CONCAT($A11,K1:K3),Sheet3!$K:$K,Sheet3!$G:$G,"",0,1)


SHEET3 DATA

MaterialVariantMaCurrPLSAmountValid FromValid ToCONPPCON
707853-B22ITEURDDP429.0001-Nov-2231-Dec-99ITEURDDP707853-B22ITEURDDP
707853-B22USUSDDDP361.0006-Jun-1531-Dec-99USUSDDDP707853-B22USUSDDDP
707853-B22ESEURDDP429.0001-Nov-2231-Dec-99ESEURDDP707853-B22ESEURDDP
707853-B22USUSDRP361.0006-Jun-1531-Dec-99USUSDRP707853-B22USUSDRP
847309-B21ESEURDDP494.0001-Nov-2231-Dec-99ESEURDDP847309-B21ESEURDDP
847309-B21ITEURDDP494.0001-Nov-2231-Dec-99ITEURDDP847309-B21ITEURDDP
847309-B21USUSDRP424.0017-Nov-1531-Dec-99USUSDRP847309-B21USUSDRP
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
use K$1:K$3

A '$' sign in from of any part of a cell reference makes that reference 'absolute' and it won't be changed when a formula is copied.

HTH
 
Upvote 0
Solution
use K$1:K$3

A '$' sign in from of any part of a cell reference makes that reference 'absolute' and it won't be changed when a formula is copied.

HTH
Simple but this fulfill my requirement. Thanks a lot Morris :)
 
Upvote 0

Forum statistics

Threads
1,214,415
Messages
6,119,382
Members
448,889
Latest member
TS_711

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