Advance cell reference only one column when formula is pasted 7 columns away

megera716

Board Regular
Joined
Jan 3, 2013
Messages
146
Office Version
  1. 365
Platform
  1. Windows
This is probably a piece of cake for you gurus but I just can't figure it out. I've got a list of locations I'm referencing on another sheet and multiple column headings under each location.
1731692105403.png




When I copy the formula in C3 for Location 1 to J3 for Location 2, I want the cell reference to move just one column to ='Prior Period Rptng'!O5, not move 7 columns to Location 8 in U5.

What I'm getting:
1731692218806.png



What I want:
1731692279399.png
 

Attachments

  • 1731692183031.png
    1731692183031.png
    17.2 KB · Views: 2

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
My first attempt. See if this works

Book2
CDEFGHIJKLMNOP
3Location 1Location 1Location 1Location 1Location 1Location 1Location 1Location 2Location 2Location 2Location 2Location 2Location 2Location 2
4Location 1Location 2
5Q3 20242024 BudgetQ3 2024 Variance BudgetQ2 '24Q3 vs Q2Q3 '23Q3 '24 vs Q3 '23Q3 20242024 BudgetQ3 2024 Variance BudgetQ2 '24Q3 vs Q2Q3 '23Q3 '24 vs Q3 '23
Sheet1
Cell Formulas
RangeFormula
C3:P3C3=INDEX($U$5:$AH$5,,ROUNDUP(COUNTA($C$5:C$5)/7,0))
C4,J4C4=C3


Book2
UVWXYZAA
5Location 1Location 2Location 3Location 4Location 5Location 6Location 7
Sheet1
 
Upvote 0
Solution
That did it! Amazing! Thank you!
My first attempt. See if this works

Book2
CDEFGHIJKLMNOP
3Location 1Location 1Location 1Location 1Location 1Location 1Location 1Location 2Location 2Location 2Location 2Location 2Location 2Location 2
4Location 1Location 2
5Q3 20242024 BudgetQ3 2024 Variance BudgetQ2 '24Q3 vs Q2Q3 '23Q3 '24 vs Q3 '23Q3 20242024 BudgetQ3 2024 Variance BudgetQ2 '24Q3 vs Q2Q3 '23Q3 '24 vs Q3 '23
Sheet1
Cell Formulas
RangeFormula
C3:P3C3=INDEX($U$5:$AH$5,,ROUNDUP(COUNTA($C$5:C$5)/7,0))
C4,J4C4=C3


Book2
UVWXYZAA
5Location 1Location 2Location 3Location 4Location 5Location 6Location 7
Sheet1
 
Upvote 0
For the layout in post 2, another option would be
Excel Formula:
=INDEX($U5:$AH5,(COLUMNS($C:C)+6)/7)
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,138
Members
453,021
Latest member
Justyna P

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