+ Reply to Thread
Results 1 to 5 of 5

Increasing row number of Index

  1. #1
    Registered User
    Join Date
    12-13-2019
    Location
    Michigan, United States
    MS-Off Ver
    365
    Posts
    9

    Increasing row number of Index

    Simple question about references Im too dumb to understand correctly.

    The formula
    Please Login or Register  to view this content.
    referances a sheet outside of the current workbook, which is great, and pulls the information correctly. However when I copy the forumla down for other cells, I still get

    Please Login or Register  to view this content.
    where as 2 being the row does not increment, with the formula copy and paste function. Was just looking for the answer to this simple question, thank you.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Increasing row number of Index

    The only thing that Excel updates automatically is a relative cell reference. It never updates row and column numbers in INDEX, OFFSET, VLOOKUP, and similar reference functions. This makes perfect sense within the Excel concept.

    Here is a simpler solution:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and copy and paste.

    This may not work if you have both files open at the same time, and then insert rows on [Attachments_Email.xlsx]Sheet2. To immunize yourself against that situation use this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Increasing row number of Index

    The 2 is not the row number but the row in which the value is located and will not change
    If your formula is in sy, row2 you can use the ROW() function which will adapt
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Perhaps post a sheet ( see yellow banner) to describe what you are trying to achieve?

  4. #4
    Registered User
    Join Date
    12-13-2019
    Location
    Michigan, United States
    MS-Off Ver
    365
    Posts
    9

    Re: Increasing row number of Index

    -6StringJazzer
    The ROW() gets the current row of the sheet, I didn't even think of that. Thank you, it's very much appreciated.

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Increasing row number of Index

    Glad to help, thanks for the rep!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Increasing speed of match index formula
    By Calios in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-03-2018, 10:36 AM
  2. Replies: 4
    Last Post: 06-22-2016, 09:04 AM
  3. increasing column index number - vlookup
    By intothewild in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2016, 05:55 PM
  4. Increasing row index numbers by 2 in HLOOKUP Formulas ?
    By VICTOR55 in forum Excel General
    Replies: 4
    Last Post: 04-07-2015, 04:49 PM
  5. [SOLVED] Index-Match: Increasing the column count through a vertical autofill
    By Dr_Orpheus in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-29-2014, 10:19 AM
  6. abc-us2, last number increasing....
    By sharan.ashutosh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-31-2013, 10:18 AM
  7. Increasing Number
    By David in forum Excel General
    Replies: 2
    Last Post: 03-08-2006, 09:45 AM

Tags for this Thread

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