+ Reply to Thread
Results 1 to 4 of 4

INDEX MATCH - increase column reference by 1 as formula extended

  1. #1
    Registered User
    Join Date
    06-19-2013
    Location
    Manchester, England
    MS-Off Ver
    Office 365
    Posts
    24

    Unhappy INDEX MATCH - increase column reference by 1 as formula extended

    Hi all,

    I'm using an Index Match function in one sheet to bring in values from another sheet. I want to copy the formula across to many additional columns so that the formula works to import multiple columns of data. Unfortunately, I can't seem to get the 'column' part of the formula to work so that it increases by one every time I drag the formula across. Is there a quick fix for this?


    The formula I have is:

    =INDEX('Sheet 2'!$A$1:$F$7,MATCH(Sheet1!$A2,'Sheet 2'!$A:$A,0),2) and I want the column to be relative so it increases by 1 as I drag across. Or, if there's something even more clever than this to account for columns that don't match across sheets, even better, but I did line them up in preparation by moving some columns.

    I have tried using the 'column' function (using something like column x - column y +1) in place of the 'column' number but it didn't seem to work. I have seen other options with 'offset' formulas but again it didn't work, perhaps because it's more applicable to a vlookup than an index match?

    I have attached a workbook example to illustrate the data and formula in with simple dummy data.

    Grateful for any suggestions to crack this one

    Thanks as always!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: INDEX MATCH - increase column reference by 1 as formula extended

    Hi,
    Try this in B2 and across:
    =INDEX('Sheet 2'!$A$1:$F$7,MATCH(Sheet1!$A2,'Sheet 2'!$A:$A,0),COLUMNS($A:B))
    Attached Files Attached Files

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,356

    Re: INDEX MATCH - increase column reference by 1 as formula extended

    Try this:

    =INDEX('Sheet 2'!$B$2:$F$7,MATCH(Sheet1!$A2,'Sheet 2'!$A$2:$A$7,0),MATCH(B$1,'Sheet 2'!$B$1:$F$1,0))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    06-19-2013
    Location
    Manchester, England
    MS-Off Ver
    Office 365
    Posts
    24

    Re: INDEX MATCH - increase column reference by 1 as formula extended

    thanks Belinda and Ali, both are good solutions and are working

+ 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] Using Index Match to match against more than one column, but only reference one row
    By joe978 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 06-19-2017, 01:35 PM
  2. Index/Match Formula Reference Error
    By MJ06 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-17-2016, 04:57 PM
  3. Replies: 9
    Last Post: 04-12-2015, 07:20 PM
  4. Questing. How do I copy a formula down but increase column reference?
    By turbotime in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-03-2014, 02:26 PM
  5. Replies: 4
    Last Post: 01-13-2014, 04:16 AM
  6. [SOLVED] Reference to named range to be used in index match formula!! Help Please!!
    By Optimum in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-24-2013, 06:54 AM
  7. Increase Row reference when using Index
    By darknation144 in forum Excel General
    Replies: 6
    Last Post: 02-23-2012, 07:09 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