+ Reply to Thread
Results 1 to 7 of 7

INDEX and MATCH function - #REF! error

  1. #1
    Forum Contributor
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    419

    INDEX and MATCH function - #REF! error

    =INDEX(H154:H182,MATCH(B390,A154:A182,0),MATCH(B395,B1:K1,0))

    I am getting an error #REF! what could be wrong?

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,359

    Re: INDEX and MATCH function - #REF! error

    H154:H182 is one dimensional range, and you apply 2 MATCH (row and column)

  3. #3
    Forum Contributor
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    419

    Re: INDEX and MATCH function - #REF! error

    The data in index field is coming from sheet2 using some formula, could this
    be the reason I get #REF! error? if so, how can I fix it, please help.

    Thank you.

  4. #4
    Forum Contributor
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    419

    Re: INDEX and MATCH function - #REF! error

    Quote Originally Posted by tim201110 View Post
    H154:H182 is one dimensional range, and you apply 2 MATCH (row and column)
    If I am using the exact same formula on a blank sheet...it is working

  5. #5
    Forum Expert Josť Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: INDEX and MATCH function - #REF! error

    Hi

    If the second MATCH gives you 1 then the formula works, otherwise it does not.

  6. #6
    Banned User!
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: INDEX and MATCH function - #REF! error

    Quote Originally Posted by Josť Augusto View Post
    If the second MATCH gives you 1 then the formula works,
    1 or 0

    mikeh, try

    =INDEX(H154:H182,MATCH(B390,A154:A182,0))

    Without knowing what the formula should do we don'k know how to fix it.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    50,591

    Re: INDEX and MATCH function - #REF! error

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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/Match Function Returns '#VALUE!' Error
    By VirenS in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-17-2016, 05:36 AM
  2. Replies: 5
    Last Post: 01-30-2015, 06:39 PM
  3. [SOLVED] Index Match Function Within One Workbook Referencing Cells in Another workbook error
    By Hackboss007 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-18-2014, 12:06 PM
  4. index function error using match function to get data from a cell in an array
    By mabildgaard in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-17-2013, 02:21 AM
  5. Error in index match function
    By joshnvince in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-12-2013, 02:12 AM
  6. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  7. [SOLVED] Error Return Value from and INDEX(A:2,MATCH()) function
    By BJ in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-26-2005, 11:06 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