simple loop code needed

A

Alan

Hi
i'm reallly having a bad day today

i needs a simple loop formula

bascially from coloum g2 to l2

i needs to start from 1 to 5 and then when it to column h start at 2
for example

column g column H
1 2
2 3
3 4
4 5
5 1

can any give me code to do this

thanks
 
A

alex

Hi
i'm reallly having a bad day today

i  needs a simple loop formula

bascially from coloum g2 to l2

i needs to start from 1 to 5 and then when it to column h start at 2
 for example

column g  column H
1                2
2                 3
3                  4
4                 5
5                 1

can any give me code to do this

thanks

Hi Alan,
I don't understand what you're trying to do!
Can you explain it a little better?
alex
 
A

Alan

basically

i want the macro to enter values 1 to 5 for range g2:g6
then move onto row h2:h6 and start with 2 and place i and the bottom

so it should look like this

Column G Column h Column i
1 2 3
2 3 4
3 4 5
4 5 1
5 1 2

which then i can create a bigger range from G to P


can you help, i just can't work it out
 
A

alex

basically

i want the macro to enter values 1 to 5 for  range g2:g6
then move onto row h2:h6 and start with 2 and place i and the bottom

so it should look like this

Column G         Column h      Column i
1                          2                 3
2                          3                 4
3                          4                 5
4                          5                 1
5                          1                 2

which then i can create a bigger range from G to P

 can you help, i just can't work it out






- Show quoted text -

It sounds like you're looking for Excel help; you're in an Access
group!

Off the top of my head: why couldn't you type 1-5 in column G, and
then using your cursor (when it turns to a plus sign) increment each
value by 1 to the right? I'm guessing it needs to be automated?
 
D

Douglas J. Steele

This newsgroup is for questions about Access, the database product that's
part of Office Professional.

Your question appears to be related to Excel. As such, you'd be best off
reposting to a newsgroup related to Excel.
 
D

Daryl S

Alan -

This looks like Excel rather than Access. You may want to post your
question in the Excel forum - this is the one for Microsoft Access.
 

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

Scrabble Value calculation for Welsh words 0
Excel A CountIF question... I think 2
simple loop needed please 1
Excel Countifs/Sumproduct with mutil Or statement 3
Access Running Balance in Access 1
PowerPoint Randomise slides and have an infinite loop 0
Help with countifs 1
PowerPoint Help needed with VB 1

Top