+ Reply to Thread
Results 1 to 8 of 8

automatic increment function by row

  1. #1
    Registered User
    Join Date
    07-10-2013
    Location
    Bellingham WA
    MS-Off Ver
    Excel 2010
    Posts
    2

    automatic increment function by row

    Just learning Excel, probably a basic question.

    Here's what I have:

    Cell C12 =Classroom!E3
    Cell C13 =Classroom!F3
    Cell C14 =Classroom!G3

    I just want to automatically continue the pattern down through the remaining 500 rows without having to update each of them manually.

    Thanks for any guidance.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: automatic increment function by row

    Hi and welcome to the forum

    JUst so that I understand...you want to reference consecutive COLUMNS as you copy the formula down ROWS?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: automatic increment function by row

    try
    =INDIRECT("Classroom!"&CHAR(68+ROW(A1))&"3")

    Char 68 = D
    row a1 = 1
    so char 69 = E
    as row increases so does the letter
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: automatic increment function by row

    Hum, that will work up to Z, but the OP said they have 500 rows? That takes them to SJ

  5. #5
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: automatic increment function by row

    yes you are correct
    sorry
    use this instead

    =INDIRECT("classroom!"&ADDRESS(3,ROW(A5)))

    address (row,column)
    address ( 3 , row(a5) =5)
    address (3,5) = e3
    as row increases so does the column reference

  6. #6
    Registered User
    Join Date
    07-10-2013
    Location
    Bellingham WA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: automatic increment function by row

    Thank you for the incredibly fast and accurate response. The "index" function is exactly what I needed, and when I plugged it into the cells and dragged the little + sign down, all was right with the world. WAY easier to update the worksheets now. Many, many thanks.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: automatic increment function by row

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: automatic increment function by row

    id avoid indirect and just use
    =INDEX(classroom!$3:$3,ROWS($A$1:A6))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1