How to increase cell value by 1 every 4 cells

TripletDad

Board Regular
Joined
Oct 19, 2010
Messages
121
Excellers! I'm new at this ... this is only my second question. Hopefully somebody can help.

I'm trying to create a formula or find a way to do the following:

In Column A, I need it to reference the same cell on a different sheet four times, then reference the next cell. Then repeat. So it would look something like this:

='MAIN'!A1
='MAIN'!A1
='MAIN'!A1
='MAIN'!A1
='MAIN'!A2
='MAIN'!A2
='MAIN'!A2
='MAIN'!A2
='MAIN'!A2
='MAIN'!A3
='MAIN'!A3
='MAIN'!A3
='MAIN'!A3
...etc

This needs to be carried out for several hundred rows.... what is the best way to do this?

Thanks guys!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Try

=INDEX('MAIN'!A$1:A$1000,INT((ROWS(A$1:A1)-1)/4)+1)

4 = Interval (every 4 rows)
1 = Row to begin with.

Do not change the ROWS(A$1:A1) - it has nothing to do with your data.

Hope that helps.
 
Upvote 0
try this
Excel Workbook
A
1Tom
2Tom
3Tom
4Tom
5****
Sheet1
Excel 2003
Cell Formulas
RangeFormula
A1=IF(COUNTIF(INDIRECT("MAIN!A"&1),A1)<4,INDIRECT("MAIN!A"&CEILING(ROW(A1)/4,1)))

copy the formula down
 
Upvote 0
Another option would be to use a helper column:

C1:C4 all = 1
C5 = C1+1, copied down
A1 = INDIRECT("'Main'!A"&C1) copied down
 
Upvote 0
Thanks for all the help guys! No wonder I couldn't make it happen - these formulas are different than I've ever used before...

I'll work on this asap.

Thanks again!
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,479
Members
448,967
Latest member
visheshkotha

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