+ Reply to Thread
Results 1 to 15 of 15

Index Match Formula - error when data source is moved to a different column

  1. #1
    Registered User
    Join Date
    10-11-2013
    Location
    falkirk
    MS-Off Ver
    Excel 2007
    Posts
    69

    Index Match Formula - error when data source is moved to a different column

    I had a slight problem with my formula yesterday and this was corrected and working as per:
    Please Login or Register  to view this content.
    I then moved my search data from column A to column B and modified my forumla to:
    Please Login or Register  to view this content.
    Now it doesn't work anymore. I cannot see what I have done to make this happen?

  2. #2
    Registered User
    Join Date
    11-18-2013
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Index Match Formula - error when data source is moved to a different column

    Should B2 remain the same?

  3. #3
    Registered User
    Join Date
    10-11-2013
    Location
    falkirk
    MS-Off Ver
    Excel 2007
    Posts
    69

    Re: Index Match Formula - error when data source is moved to a different column

    Thanks for having a look. Yes, B2 is good. It's on the local page and the data has not moved.

  4. #4
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Index Match Formula - error when data source is moved to a different column

    Hi ids, it will help if you could elaborate more on how it doesn't work anymore?
    Have you try evaluate the formula to see which part not working as expected, perhaps due to formatting etc...



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  5. #5
    Registered User
    Join Date
    10-11-2013
    Location
    falkirk
    MS-Off Ver
    Excel 2007
    Posts
    69

    Re: Index Match Formula - error when data source is moved to a different column

    Good point Alvin chung! I am seeing #NA where I was seeing a value before. All cells involved are formatted as 'General'.

  6. #6
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Index Match Formula - error when data source is moved to a different column

    I assume you're seeing #N/A when evaluating the MATCH formula?
    In B2, try press F2 and ENTER?



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  7. #7
    Registered User
    Join Date
    10-11-2013
    Location
    falkirk
    MS-Off Ver
    Excel 2007
    Posts
    69

    Re: Index Match Formula - error when data source is moved to a different column

    Quote Originally Posted by alvin-chung View Post
    I assume you're seeing #N/A when evaluating the MATCH formula?
    Yes thanks. #NA is the result in the cell where the formula is located.
    In B2, pressed F2 then enter and everything stayed the same as before. Tried saving file and still the same.

  8. #8
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Index Match Formula - error when data source is moved to a different column

    Could you verify manually whether you can match value in B2 with values in 'C:\2449\Temp\[401201.xls]401201'!$B$2:$B$497?
    If there's no match, the #N/A is the correct end result. Unless you want to get rid of the #N/A if no match is found, try IFERROR function.



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  9. #9
    Registered User
    Join Date
    10-11-2013
    Location
    falkirk
    MS-Off Ver
    Excel 2007
    Posts
    69

    Re: Index Match Formula - error when data source is moved to a different column

    Quote Originally Posted by alvin-chung View Post
    Could you verify manually whether you can match value in B2 with values in 'C:\2449\Temp\[401201.xls]401201'!$B$2:$B$497?
    OK cool - yes, the match is present. Result is only returned correctly if it is in column A. #NA is returned if I move it to column B and change the formula accordingly.

  10. #10
    Registered User
    Join Date
    11-18-2013
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Index Match Formula - error when data source is moved to a different column

    What's the point of matching B2 to a list of B2:B1000? I mean the value B2 will always exist in B2 where you start to "scan" so you will always get this row.

  11. #11
    Registered User
    Join Date
    10-11-2013
    Location
    falkirk
    MS-Off Ver
    Excel 2007
    Posts
    69

    Re: Index Match Formula - error when data source is moved to a different column

    B2 is the search string located in the local sheet. The search takes place in another spreadsheet as per the path stated in the code. It just so happens that in this instance, they are both column B.

  12. #12
    Registered User
    Join Date
    11-18-2013
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Index Match Formula - error when data source is moved to a different column

    Ok, then there is no way one works and the other doesn't! Check again the syntax for referring to another file, the extension (xls, xlsx etc).

  13. #13
    Registered User
    Join Date
    10-11-2013
    Location
    falkirk
    MS-Off Ver
    Excel 2007
    Posts
    69

    Re: Index Match Formula - error when data source is moved to a different column

    Changed the path from C:\ to Z:\ (mapped network drive path) and now both formulas work ok. One has path C:\ for file location (match column A) and the other has path Z:\ for file location (match column B). I'll change over all the formulas now and see if it holds up.

  14. #14
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Index Match Formula - error when data source is moved to a different column

    Glad you figure it out, good luck



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  15. #15
    Registered User
    Join Date
    10-11-2013
    Location
    falkirk
    MS-Off Ver
    Excel 2007
    Posts
    69

    Re: Index Match Formula - error when data source is moved to a different column

    Thanks for the assistance from everyone. Still doesn't make sense but will update if I find an explanation.

+ 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. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  2. Replies: 3
    Last Post: 07-14-2011, 11:18 PM
  3. How change link source in long formula when source moved
    By Irina in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-28-2006, 02:30 AM
  4. Using INDEX w/MATCH to get data from unsorted source
    By Lynn Bales in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 07-22-2005, 11:05 AM
  5. [SOLVED] How do I automatically update chart source data links for moved fi
    By Suzuki7 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-15-2005, 12: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