Drag horizontally, increase reference vertically

Young Grasshopper

Board Regular
Joined
Dec 9, 2022
Messages
58
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Another day, another problem!

I have this code in C5: =IF('Sheet1'!B11="";"";'Sheet1'!$B11)
I need to drag C5:G5 horizontally, so this could would be copied to every 5th column, but the reference cells must increase by one vertically every time.
Like this:
C5:
=IF('Sheet1'!B11="";"";'Sheet1'!$B11)
H5: =IF('Sheet1'!B12="";"";'Sheet1'!$B12)
M5: =IF('Sheet1'!B13="";"";'Sheet1'!$B13)
etc.

How would I go about this?
Would appreciate any help:)
 
You make it look easy, Fluff!
Works like a dream, and saved me a ton of work:)
Thank you and enjoy your evening:)
 
Upvote 0

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
You're welcome & thanks for the feedback.
 
Upvote 0
@Fluff dont get me wrong i was here to help. Just wanted to make my solution when i saw you were already faster. So i tried your solution and gave a fast feedback. Thanks for the solution!
 
Upvote 0
My apologies, I had misread the question & thought you were asking for something different than the OP.
 
Upvote 0

Forum statistics

Threads
1,223,249
Messages
6,171,031
Members
452,374
Latest member
keccles

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