MARK EVERY FOURTH ROW

L

lehigh46

HI ALL,

In column A, I have consecutive numbers 1 thru 7,000

In column B, I would like to write a formula and copy it down to show
a number 1 on every fourth line .

How can I accomplish this?


Thanks for your help.

Tom Snyder


x-- 100 Proof News - http://www.100ProofNews.com
x-- 3,500+ Binary NewsGroups, and over 100,000 other groups
x-- Access to over 1.6 Terabytes per Day - $8.95/Month
x-- UNLIMITED DOWNLOAD
 
N

N Harkawat

Assumng the range is between A1:A7000
on cell B1 type the following and copy it all the way down
=if(mod(row(),4)=0,"",1)

This will copy the number 1 on ever 4th row in column B
 
D

Domenic

Try the following...

For every fourth line, starting with the first cell...

B1, copied down:

=IF(MOD(ROW()-ROW($B$1)+0,4)=0,1,"")

For every fourth line, starting with the first occurrence of 'fourth'...

B1, copied down:

=IF(MOD(ROW()-ROW($B$1)+1,4)=0,1,"")

Hope this helps!
 
D

Don Guillett

try this
Sub every4throw()
For i = 1 To Cells(Rows.Count, "a").End(xlUp).Row Step 4
Cells(i, "b").Offset(0, 1) = 1
Next i
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Absolute Values 1
CALENDAR 3
SEPERATE NUMBERS IN A CELL 8
Clock 1
Auto Filter 1
SUMPRODUCT 1
FILE SHARING 1
Reversing rows of information 2

Top