+ Reply to Thread
Results 1 to 6 of 6

auto increment from linked formula problem

  1. #1
    Registered User
    Join Date
    08-25-2009
    Location
    Scotland
    MS-Off Ver
    Excel 2016
    Posts
    14

    auto increment from linked formula problem

    Hi all, first post here

    I would really appreciate if someone could help me out with a problem I am having with copy and pasting a linked formula from a different sheet. The problem occurs as I am trying to list room references on different rows in the new sheet that I have created and as excel is auto incrementing it displays the wrong rooms.

    Effectively I am jumping rows in my new sheet but find that the formula that I have created to link a cell from another sheet will follow the row numbers therefore I am missing out rows in-between if that makes sense.

    I have searched as much as I can on Google to see if there is a easy solution to this but i cannot find one.

    The Formula that I have used is as follows:

    ='Input Informatio'!A3

    This is fine for the first cell, but as the next cell is 4 rows down it will auto increment to the following when I copy and paste:

    ='Input Information'!A7

    but I want it to be:

    ='Input Information'!A4

    I have tried the offset command but only to find that as soon as I copy to the next row the actual amount of rows that i need to subtract has doubled!

    I would really like to avoid having to manually change cell numbers as it would probably be faster to re-type the rooms references in. I have approx 120 rooms and I am slow!

    I am a total beginner as you can see but eager to learn, can anyone help me out?

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    08-23-2009
    Location
    Hampshire, UK
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    328

    Re: auto increment from linked formula problem

    Try the following formula

    =OFFSET(inputinformation!$A$1,(ROW(A3)-3)/4+2,0)

    This assumes that you want to link A3 in your second sheet to A3 in "inputinformation", then A7 to A4, A11 to A5 etc.

  3. #3
    Registered User
    Join Date
    02-26-2007
    Location
    Vancouver, BC, Canada
    MS-Off Ver
    2007
    Posts
    22

    Re: auto increment from linked formula problem

    This may not be the best way to do it, but it will work.

    You can use the offset function combine with a simple increment in your work sheet.

    See the attached sheet for an example.
    Attached Files Attached Files

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: auto increment from linked formula problem

    IMO (FWIW) better to use INDEX given non-volatile (unlike OFFSET)

    Please Login or Register  to view this content.
    EDIT: I think the above is incorrect... same principles apply though, ie A3 -> A3, A7 -> A4, A11 -> A5 etc... below INDEX-based approach:

    Please Login or Register  to view this content.
    Last edited by DonkeyOte; 08-25-2009 at 05:28 PM.

  5. #5
    Registered User
    Join Date
    02-26-2007
    Location
    Vancouver, BC, Canada
    MS-Off Ver
    2007
    Posts
    22

    Re: auto increment from linked formula problem

    Looks like I was too slow and my way was definitely not the easiest.

  6. #6
    Registered User
    Join Date
    08-25-2009
    Location
    Scotland
    MS-Off Ver
    Excel 2016
    Posts
    14

    Re: auto increment from linked formula problem

    This is fantastic! thank you all for your replies you have made my day

+ 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