+ Reply to Thread
Results 1 to 9 of 9

Index question

  1. #1
    Registered User
    Join Date
    01-20-2014
    Location
    Oklahoma City, Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    21

    Index question

    I've got what I think is a simple question. I've looked through several threads and don't see a similar question.

    I have this formula =INDEX($B$2:$V$3,1,2)

    I'd like to drag the formula vertically and it grow like this:
    =INDEX($B$2:$V$3,1,2)
    =INDEX($B$2:$V$3,1,3)
    =INDEX($B$2:$V$3,1,4)

    Any help would be greatly appreciated. Thanks!

  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: Index question

    You can't get those numbers to change by dragging. However, you can make it a reference to the row numbers. For example, suppose your formula starts in row 2 and you want to drag it down. 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
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Index question

    If you use ROWS you don't need to worry about which row you start in. Try this and drag/copy it down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Index question

    You can increment that number by using the cell reference of the first cell the formula is entered in.

    For example, let's assume you want to enter the first formula in cell A2 and copy down such that:

    A2: =INDEX($B$2:$V$3,1,2)
    A3: =INDEX($B$2:$V$3,1,3)
    A4: =INDEX($B$2:$V$3,1,4)

    Enter this formula in A2 and copy down as needed:

    =INDEX($B$2:$V$3,1,ROWS(A$2:A2)+1)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: Index question

    Try this..
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag Down..
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Index question

    Using the ROW function leaves the formula vulnerable to new row insertions.

    More robust to use ROWS(...).

  7. #7
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Index question

    Thanks for suggestion Tony..
    Amended one..
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    01-20-2014
    Location
    Oklahoma City, Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Index question

    Wow, thanks so much everyone. It would have taken me awhile to figure that one out. It's working perfectly. I'll mark this as solved and add reputation marks.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Index question

    You're welcome. We appreciate the feedback!

+ 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. index question
    By midwest trader in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-13-2014, 10:27 AM
  2. INDEX MAX question
    By additude in forum Excel General
    Replies: 3
    Last Post: 07-02-2008, 09:18 AM
  3. Index question
    By JOGIER in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-06-2008, 03:40 PM
  4. Index question
    By Odysseus in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-08-2008, 06:17 AM
  5. Index question
    By desk.doc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-25-2007, 02:58 PM

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