How can I add OFFSET function to this formula?

Peptide

Board Regular
Joined
Apr 12, 2016
Messages
224
Office Version
  1. 365
Platform
  1. Windows
Hello,
I have the formula below in B21. If I want to cut/paste B21 to C21, D21 etc, how can I add the OFFSET function so it adjusts automatically?

The area 'UPLOAD FILE'!G2 obviously pulls from the G2 cell of the UPLOAD FILE. When I copy B21 top C21 I need the G2 to change to G3


Cell B21
=IFERROR(VLOOKUP(OFFSET('UPLOAD FILE'!G2,COLUMN()-2,0),'Pricing Table'!$BH$5:$BT$36,MATCH('UPLOAD FILE'!E2,'Pricing Table'!$BH$3:$BT$3,0),FALSE)*B5,"Value For Purity and Mgs Combo Not Found On Base Price Data Table")

Cell C21
=IFERROR(VLOOKUP(OFFSET('UPLOAD FILE'!G3,COLUMN()-2,0),'Pricing Table'!$BH$5:$BT$36,MATCH('UPLOAD FILE'!E2,'Pricing Table'!$BH$3:$BT$3,0),FALSE)*B5,"Value For Purity and Mgs Combo Not Found On Base Price Data Table")

Cell B21
=IFERROR(VLOOKUP(OFFSET('UPLOAD FILE'!G4,COLUMN()-2,0),'Pricing Table'!$BH$5:$BT$36,MATCH('UPLOAD FILE'!E2,'Pricing Table'!$BH$3:$BT$3,0),FALSE)*B5,"Value For Purity and Mgs Combo Not Found On Base Price Data Table")
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Assuming your starting formula is:

B21: =IFERROR(VLOOKUP('UPLOAD FILE'!G2,'Pricing Table'!$BH$5:$BT$36,MATCH('UPLOAD FILE'!$E2,'Pricing Table'!$BH$3:$BT$3,0),FALSE)*$B5,"Value For Purity and Mgs Combo Not Found On Base Price Data Table")

and you want G2 to change to G3, G4 .... to G10, say, then change this formula to:

=IFERROR(VLOOKUP(INDEX('UPLOAD FILE'!$G2:$G10,COLUMNS($B21:B21)),'Pricing Table'!$BH$5:$BT$36,MATCH('UPLOAD FILE'!$E2,'Pricing Table'!$BH$3:$BT$3,0),FALSE)*$B5,"Value For Purity and Mgs Combo Not Found On Base Price Data Table")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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