+ Reply to Thread
Results 1 to 10 of 10

Index match not working if lookup column contains formulas?

  1. #1
    Registered User
    Join Date
    01-01-2021
    Location
    Athens, Greece
    MS-Off Ver
    Professinal Plus 2013
    Posts
    5

    Index match not working if lookup column contains formulas?

    Ι have used, in many circumstances until now, the combination of functions index/match, without a problem.
    But this time I faced a very strange problem:
    When the lookup column (let's say column B) contains a formula, even the simplest, as “=A1” (in the cell B1), etc., the index(match formula is not working.
    When I copy the contents of the lookup column and I paste them in the same column as values, it works perfectly.
    There are always ways to surround the problem, but I am very curious to find out what's going on.
    I checked, and there does not seem to be a format problem.
    I made and posted here a very simplified version in one single sheet, without conditional formatting, data validation etc.
    The problem always persist.
    I beg anyone who could take a look, to give me an explanation!
    I am working with MS Office Professional Plus 2013
    Attached Files Attached Files

  2. #2
    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
    80,867

    Re: Index match not working if lookup column contains formulas?

    Welcome to the forum.

    Your dates in column A and therefore also B are not dates at all - they are just text. That's why you aren't getting the match.

    Don't try to fudge this by adapting the formula - tackle the issue in column A and make sure that the values are proper dates.
    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.

  3. #3
    Forum Contributor
    Join Date
    03-17-2010
    Location
    karachi
    MS-Off Ver
    Excel 2003
    Posts
    113

    Re: Index match not working if lookup column contains formulas?

    Check this file
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-01-2021
    Location
    Athens, Greece
    MS-Off Ver
    Professinal Plus 2013
    Posts
    5

    Re: Index match not working if lookup column contains formulas?

    Sohaila, thank you. I tried it. But it works only for the first row. Please, take a look.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-01-2021
    Location
    Athens, Greece
    MS-Off Ver
    Professinal Plus 2013
    Posts
    5

    Re: Index match not working if lookup column contains formulas?

    I thank you very much for your prompt answer. It is very strange. I checked it again. The format of the column A is date (type 14/03/12). What am I missing?

  6. #6
    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
    80,867

    Re: Index match not working if lookup column contains formulas?

    No, that’s not the format. If you change the format to general, if the value is a true date, it will change to a 5-digit serial number. Yours don’t because they are just text. To Excel, they are not the sane thing.

  7. #7
    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
    80,867

    Re: Index match not working if lookup column contains formulas?

    Quote Originally Posted by sohaila View Post
    Check this file
    Sorry for off-topic interjection:

    Although there is no official rule regarding this behaviour, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.

  8. #8
    Registered User
    Join Date
    01-01-2021
    Location
    Athens, Greece
    MS-Off Ver
    Professinal Plus 2013
    Posts
    5

    Re: Index match not working if lookup column contains formulas?

    Thank you again, AliGW, for your interest about my in my subject. I changed the format to general and, as you say, I took 5-digit serial numbers. I made also a control with the function =CELL, and for all the cells in the column A, the result is D1. Note that I use dates in greek-language format (d/m/y). But I also tried it in english format and the problem persisted.
    I attached a renewed version of my workbook with some explanations.
    Sorry for my english knowledge. I made perhups, many mistakes...
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    01-01-2021
    Location
    Athens, Greece
    MS-Off Ver
    Professinal Plus 2013
    Posts
    5

    Re: Index match not working if lookup column contains formulas?

    Finally, I found the solution. It was obvious, but it did not cross my mind.
    When the result of the formula in the lookup column (B) is 0, the formula index/match, in the return column, sees the date 0/1/1900 below other dates in ascending order and the formula does not work.
    So I replaced the zeros in the lookup column with “”, and now it works perfectly.
    Many thanks to all who were interested in my problem.
    Excel make us sometimes crazy...

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Index match not working if lookup column contains formulas?

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. extract lookup image with named range with index and match not working
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-23-2019, 02:55 PM
  2. Using Index Match formula - Working but I want to link the lookup array to a cell.
    By rohanellis in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-20-2018, 04:11 AM
  3. [SOLVED] index / match lookup formula not working
    By kevinu in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-23-2017, 05:10 PM
  4. Help with Lookup / Index / Match formulas
    By DanWaite in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-12-2015, 03:34 PM
  5. Replies: 1
    Last Post: 03-21-2015, 07:46 PM
  6. [SOLVED] Lookup with mutiple criteria - Vlookup, Match, index not working
    By PM1985 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-17-2014, 07:10 AM
  7. Hello - I'm working with a 2-way lookup likely using Index & Match
    By CM_Marsh in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 11-13-2012, 11:15 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