+ Reply to Thread
Results 1 to 17 of 17

INDEX MATCH works for some cell not others

  1. #1
    Forum Contributor
    Join Date
    09-15-2005
    Location
    Florida
    MS-Off Ver
    Excel Professional Plus 2016
    Posts
    153

    INDEX MATCH works for some cell not others

    So, I thought I somewhat mastered simple INDEX MATCH FUNCTION. The function works for some and not others cells.

    I use: =INDEX(Helper!B:B,MATCH(B2,Helper!A:A,0)) and do the ctrl + shift + enter

    Worksheet "DATA" A2 has a #NA but A3 gives me the results.

    I checked the logic and the result should be "PALM BEACH MARKET"

    Is there an explanation or is this a glitch in the function?

    Thank you,
    Attached Files Attached Files
    Last edited by rogrand; 08-08-2021 at 07:56 PM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,789

    Re: INDEX MATCH works for some cell not others

    You are getting the error because B2 is a number, whereas B3 is text as is the value on the helper sheet.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,789

    Re: INDEX MATCH works for some cell not others

    I've also noticed that you have a mix of numbers & text on the helper sheet.
    Also that formula does not need Ctrl Shift Enter, just Enter is fine.

  4. #4
    Forum Contributor
    Join Date
    09-15-2005
    Location
    Florida
    MS-Off Ver
    Excel Professional Plus 2016
    Posts
    153

    Re: INDEX MATCH works for some cell not others

    Hello Fluff13, not following. All cells are are formated as "General"

  5. #5
    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
    30,908

    Re: INDEX MATCH works for some cell not others

    in both sheets (columns B and A) use text-to-columns >>>>general and it will work.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,789

    Re: INDEX MATCH works for some cell not others

    All cells are are formated as "General"
    That doesn't mean anything. The format of a cell does not change the underlying value.
    If you put
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    into g2 & copy down to G3 you will see that one returns true, the other false.

  7. #7
    Forum Contributor
    Join Date
    09-15-2005
    Location
    Florida
    MS-Off Ver
    Excel Professional Plus 2016
    Posts
    153

    Re: INDEX MATCH works for some cell not others

    Hi again, you just spoke in different language to me lol. Will have to learn how to incorporate the Isnumber function. Still it does not make sence.
    If the cell below it has the same format and works why can I make the above do the same thing? I would prefer to put the same conditions on the cell that does not work as the one that does work and be able to use the formula that I worked hard to understand

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,068

    Re: INDEX MATCH works for some cell not others

    It isn’t the same format as the one below - that’s the point. One is a number and the other is text.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  9. #9
    Forum Contributor
    Join Date
    09-15-2005
    Location
    Florida
    MS-Off Ver
    Excel Professional Plus 2016
    Posts
    153

    Re: INDEX MATCH works for some cell not others

    John, I converted all text to the columns and it did not work.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,068

    Re: INDEX MATCH works for some cell not others

    Try changing the formula to this:

    =INDEX(Helper!B:B,MATCH(TEXT(B2,"#####"),Helper!A:A,0))

  11. #11
    Forum Contributor
    Join Date
    09-15-2005
    Location
    Florida
    MS-Off Ver
    Excel Professional Plus 2016
    Posts
    153

    Re: INDEX MATCH works for some cell not others

    Data! A2 return should be "Palm Beach Market" but get #N/A. when I click on the cell it shows as "General"
    Data! A3 has a return of "Palm Beach Market" and when you click on the Cell it has "General"

    Data! B2 has number
    Data! B3 has number

    So why does Data! A2 not behave the same as DATA! A3 in which it has the same conditions.
    Last edited by rogrand; 08-08-2021 at 04:58 PM. Reason: correcting information

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,068

    Re: INDEX MATCH works for some cell not others

    No - B2 is a number and B3 is text. Change both of them to Number instead of General and you will immediately see that they behave differently.

    I’ve given you a workaround above.

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,068

    Re: INDEX MATCH works for some cell not others

    My solution attached.
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    09-15-2005
    Location
    Florida
    MS-Off Ver
    Excel Professional Plus 2016
    Posts
    153

    Re: INDEX MATCH works for some cell not others

    Would then be simpler then to convert B2 into a number. The how to escapes me. Please show me. I would love to understand this.

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,068

    Re: INDEX MATCH works for some cell not others

    See above - posts #10 and #13.

    B2 is already a number. B3 is text.

  16. #16
    Forum Contributor
    Join Date
    09-15-2005
    Location
    Florida
    MS-Off Ver
    Excel Professional Plus 2016
    Posts
    153

    Re: INDEX MATCH works for some cell not others

    I see what you did.
    You entered in the formula a text function to force it and it works for that cell and all the rest.

    I still was in frustration even though I learned something new.
    I tinkering I selected the Cell and from the dropdown I changed its status. It took a bit to take effect but it work!!!!!! So I can stay with my original formula.
    So strange that doing this selecting the whole column did not work.

    Again, THNAK YOU! My sanity stays with me till the next Journey.
    Last edited by rogrand; 08-08-2021 at 05:29 PM. Reason: Recanting the comment to add different info

  17. #17
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,693

    Re: INDEX MATCH works for some cell not others

    I hadn't seen this directly addressed anywhere and it seems to be the crux of your issue, how to change text to numbers.
    If that is so, then this simple process will work for you.
    Highlight the columns in question (in your case col B of Data tab and col A of Helper tab) go to the data tab at the top of excel, open text to columns, if delimited is selected just hit finish and they'll all convert to numeric. Hope that helps you with this issue going forward.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

+ 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] This formula works but I donīt understand why Index(Index) match
    By campelliann in forum Excel General
    Replies: 2
    Last Post: 01-25-2016, 05:55 PM
  2. Replies: 6
    Last Post: 01-19-2015, 10:27 AM
  3. Replies: 1
    Last Post: 05-08-2014, 10:21 AM
  4. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  5. [SOLVED] INDEX/MATCH works on SOME, but not ALL
    By x65140 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-17-2014, 07:44 AM
  6. Index/Match works in some cells, not in others
    By tenalp in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-12-2012, 08:29 PM
  7. index/match search works in some cells, but not others?
    By pythonscript in forum Excel General
    Replies: 2
    Last Post: 07-06-2011, 08:32 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