Increment rows from one sheet and columns from another when dragging formula horizontally

ExceL0ver

New Member
Joined
Apr 12, 2023
Messages
35
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi all,

I have the formula =Cata!AE10-'Calc'!H5, and when I drag this across, I would like the rows in column AE to increment by 1 and the columns in the Calc sheet to increment by 1, therefore formula in the cell to the right should be =Cata!AE11-'Calc'!I5 and so on.

I'm guessing that the function INDIRECT would help here, but can't figure out how to get it to work. Does anyone have a suggestion, please?
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Another option
Excel Formula:
=INDEX(Cata!$AE:AE,COLUMNS($A$1:A$1)+9)-Calc!H5
 
Upvote 0
Upvote 0
I expect I don't understand your requirements. Are you only dragging across columns in one row? In which case, Fluff is right.
 
Upvote 0
Another option
Excel Formula:
=INDEX(Cata!$AE:AE,COLUMNS($A$1:A$1)+9)-Calc!H5
Unfortunately, this doesn't work either. When dragged to the right, the formula becomes =INDEX(Cata!$AE:AF,COLUMNS($A$1:B$1)+9)-Calc!I5 and I get a #REF! error.
 
Upvote 0
Oops missed the $ before the 2nd AE, it should be
Excel Formula:
=INDEX(Cata!$AE:$AE,COLUMNS($A$1:A$1)+9)-Calc!H5
 
Upvote 0
Solution
So this?
MrExcelPlayground17.xlsx
BCDEFGH
22468101214
Sheet24
Cell Formulas
RangeFormula
B2:H2B2=OFFSET(Sheet22!$AE$10,COLUMN(B$1)-COLUMN($B$1),0)-Sheet21!H5
 
Upvote 0
I expect I don't understand your requirements. Are you only dragging across columns in one row? In which case, Fluff is right.
I am dragging the formula to the right.

I placed the formula in the starting cell H4 in sheet "Calc", and when I dragged to the right, the column changes from H to I which is correct, however the rows in column AE should also increment but your suggestion causes AE10 to increment by columns to AF10, not rows to AE11.
 
Upvote 0
Oops missed the $ before the 2nd AE, it should be
Excel Formula:
=INDEX(Cata!$AE:$AE,COLUMNS($A$1:A$1)+9)-Calc!H5
Perfect! I spent ages trying to get this to work to no avail, thank you very much!

JamesCanale, thank you for your help, too.
 
Upvote 0

Forum statistics

Threads
1,215,972
Messages
6,128,030
Members
449,414
Latest member
sameri

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