+ Reply to Thread
Results 1 to 4 of 4

Dragging Vlookup across columns: Have col_in_# increase by 1 automatically?

  1. #1
    Registered User
    Join Date
    04-22-2014
    Location
    San Diego
    MS-Off Ver
    Excel 2010
    Posts
    36

    Arrow Dragging Vlookup across columns: Have col_in_# increase by 1 automatically?

    This is the function I am working with: =IFERROR(VLOOKUP($A$35,'P&L R&D'!$F$5:$H$58,3,FALSE),0) and I want the column index number to increase by 1 each time it is dragged across columns.

    Thanks!

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Dragging Vlookup across columns: Have col_in_# increase by 1 automatically?

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


    BSB

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Dragging Vlookup across columns: Have col_in_# increase by 1 automatically?

    Try Index Match instead

    =IFERROR(INDEX('P&L R&D'!H$5:H$58,MATCH($A$35,'P&L R&D'!$F$5:$F$58,0)),"")

  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: Dragging Vlookup across columns: Have col_in_# increase by 1 automatically?

    Your table array only contains 3 columns: 'P&L R&D'!$F$5:$H$58

    Why would you want to increase the column index number beyond 3? That would generate an error.

    The best method for incrementing is to use the cell address of the first cell the formula is entered into.

    If copying across a row and the first formula is entered into cell B2:

    COLUMNS($B2:B2)

    As you drag across the row the COLUMNS function increments as such:

    COLUMNS($B2:B2) = 1
    COLUMNS($B2:C2) = 2
    COLUMNS($B2:D2) = 3
    COLUMNS($B2:E2) = 4
    etc
    etc

    If copying down a column and the first formula is entered into cell B2:

    ROWS(B$2:B2)

    As you drag down the column the ROWS function increments as such:

    ROWS(B$2:B2) = 1
    ROWS(B$2:B3) = 2
    ROWS(B$2:B4) = 3
    ROWS(B$2:B5) = 4
    etc
    etc
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. [SOLVED] Need 'criteria' within AVERAGEIFS formula to automatically increase when dragging down
    By javboy800 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-07-2014, 10:49 AM
  2. Getting the column letter to increase when dragging a =countif() function
    By Junior_Excel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-11-2013, 04:54 PM
  3. [SOLVED] Dragging vlookup across columns
    By ExcelAteMyHomework in forum Excel General
    Replies: 2
    Last Post: 06-01-2012, 03:25 PM
  4. [SOLVED] Increase cell reference in Vlookup automatically
    By Grimace in forum Excel General
    Replies: 4
    Last Post: 03-27-2012, 08:30 PM
  5. Increase formula data by 1 when dragging down.
    By tecra134 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-15-2011, 01:57 AM
  6. Increase cell range by 2 when dragging down
    By NBC_Brian in forum Excel General
    Replies: 7
    Last Post: 06-03-2011, 03:29 PM
  7. Replies: 6
    Last Post: 09-06-2008, 08:03 AM

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