# How to increase cell value by 1 every 4 cells

##### Board Regular
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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
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.

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

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

=indirect("'Main'!A"&quotient(row()-1,4)+1)

(if you install the analysis toolpak)

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!

Replies
3
Views
342
Replies
10
Views
474
Replies
4
Views
1K
Replies
0
Views
210
Replies
4
Views
432

1,221,007
Messages
6,157,350
Members
451,417
Latest member
Ilu

### 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?

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