Row Increment

C

C

I have a spreadsheet that has data in rows A1 through B500. For each row I
would like to add 1 to column b 1 thru 500. However, when column b = 5 then
that row value for b becomes 0 and 1 is added to column a of that row.

A B
1 0
1 1
1 2
1 3
1 4
2 0
2 1

Can someone help?

Thanks in Advance
CB
 
J

joel

Do it with two formulas

in A1 =int((Row()-1)/5)+1

in B1 put =mod(Row()-1,5)

Copy formulas down column A and b
 

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

Top