Drag formula to the right incrementing by 8

FryGirl

Well-known Member
Joined
Nov 11, 2008
Messages
1,368
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I have a formula I'm dragging to the right. I need to increment by 8 rows as the formula extends to the right.

=IF($G16<>"",$G16,"")
=IF($G24<>"",$G24,"")
=IF($G32<>"",$G32,"")
etc...

How can this be accomplished?
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
You don't say where these formulas are going, but suppose the first one is in column J, then try this, dragged right.
Also adjust the '1000' as required for the end of your data.

=IF(INDEX($G16:$G1000,COLUMNS($J:J)*8-7)="","",INDEX($G16:$G1000,COLUMNS($J:J)*8-7))

Also, if the values in column G are all text or blank (ie not numerical) then this should suffice
=INDEX($G16:$G1000,COLUMNS($J:J)*8-7)&""
 
Last edited:
Upvote 0
Thank you Peter. Sorry about that. The first formula is in F7, but just adjusted the column and it works great. I used the first formula as the data is both text and numbers.
 
Upvote 0
Thank you Peter. Sorry about that. The first formula is in F7, but just adjusted the column and it works great. I used the first formula as the data is both text and numbers.
OK, great. Thanks for the follow-up. :)
 
Upvote 0
Another method using INDIRECT:

F7:
Code:
IF(INDIRECT(ADDRESS(8*COLUMN()-32,7))<>"",INDIRECT(ADDRESS(8*COLUMN()-32,7)),"")

When dragged across columns this augments the address by 8 rows, looking at G16 for the first input (F7) then increasing by 8 rows per column spanned (e.g. formula in G7 will refer to G24...)
 
Upvote 0
Thank you tyija1995 for your suggestion, but I'd rather stay away from Indirect since it is volatile.
 
Upvote 0

Forum statistics

Threads
1,224,885
Messages
6,181,576
Members
453,055
Latest member
cope7895

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