+ Reply to Thread
Results 1 to 13 of 13

Index Match doesn't seem to return the result i want

  1. #1
    Registered User
    Join Date
    03-01-2017
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    17

    Index Match doesn't seem to return the result i want

    Capture.PNGCapture1.PNG

    Hey Guys,

    Hope you are all doing well!

    For the life of me i cannot figure out why the index match function isn't working as intended. I have used it many times but it just doesn't seem to spit out the correct result for whatever reason.

    For reference top left is A1 and essentially i'm trying to get D10 to return the first day of the month (Australian date format) given it's matching for the month in D9 but it seems to produce completely random results (e.g it only returns July's date after i delete December to June??) which... makes no sense whatsoever.

    I'm sure the solution is staring at me in the face but i honestly just cannot see it so hopefully someone can give me a hand with it.

    Thanks

    Ed

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Index Match doesn't seem to return the result i want

    your match seems to be missing the last option

    set it to 0

    ie
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    03-01-2017
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    17

    Re: Index Match doesn't seem to return the result i want

    Hi Humdingaling,

    Thanks for your response, i always thought it defaulted to 0 if you wrote nothing. I've added it and it doesn't seem to change anything.

    Another weird interaction is if i change the match month to August the result is N/A#???

    What the heck is going on here

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Index Match doesn't seem to return the result i want

    your column A
    are those actually dates or months in text form?

    if they are dates are they the correct year as your dates in column B?

  5. #5
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Index Match doesn't seem to return the result i want

    also

    Quote Originally Posted by eddyble View Post
    i always thought it defaulted to 0 if you wrote nothing.
    match_type Optional. The number -1, 0, or 1. The match_type argument specifies how Excel matches lookup_value with values in lookup_array. The default value for this argument is 1.

    it defaults to 1

  6. #6
    Registered User
    Join Date
    03-01-2017
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    17

    Re: Index Match doesn't seem to return the result i want

    Column A is just text (formatted as text) as is D9 (the match month)

    Maybe i should find another way to do this... i've always had problems with dates, so finicky

  7. #7
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Index Match doesn't seem to return the result i want

    i'm pretty sure value in D9 is a date and your value in column A is text (judging by the formatting alignment one is left and the other is right)

    select everything and format it to general
    if it becomes a number you know that cell is a "date" date
    if it stays as it is then the cell is text

    if this is still not the case attach a sample file so i can see what is happening

  8. #8
    Registered User
    Join Date
    03-01-2017
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    17

    Re: Index Match doesn't seem to return the result i want

    It didn't change to a number so it indeed is a text string

    Here's an exert from the file http://s000.tinyupload.com/?file_id=...18136172020581

    Thanks

  9. #9
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Index Match doesn't seem to return the result i want

    hmmm, you didnt use the formula i told you to?

    change this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    to
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ps also use the site storage to upload
    most people will not download from a different site
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    03-01-2017
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    17

    Re: Index Match doesn't seem to return the result i want

    Sorry, i couldn't find an attach button anywhere here.

    I did change it to 0 but it didn't change anything so i changed it to a 1 and -1 to see the results (neither of them worked) and i forgot to change it back.

    Did that work when it changed to 0? because it doesn't seem to work on mine

  11. #11
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Index Match doesn't seem to return the result i want

    does the attached file in post #9 do what you want it to do?

  12. #12
    Registered User
    Join Date
    03-01-2017
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    17

    Re: Index Match doesn't seem to return the result i want

    Yes! it does exactly what it's meant to, sorry i didn't check it as i assumed you were uploading it to the internal website so that others could download it.

    It was a simple solution...

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    - was mine
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    - is yours.

    Thank you very much humdingaling, i feel like a bit of an idiot but that's not too different from the usual

    Thanks again

  13. #13
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Index Match doesn't seem to return the result i want

    yeah if you put the zero on the index side you will get an error
    as you cannot index column 0

    you want the 0 in the match side of things so it does the same thing as vlookup

+ 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 to return 1 row below result
    By vitt4300 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-26-2016, 09:57 AM
  2. [SOLVED] Index + Match to return result with Left function
    By Groovicles in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-21-2014, 02:35 PM
  3. Index Match Match Formula DOESN'T WORK WITH TABLES/TABLE NAMES ??
    By Underling in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-04-2014, 09:01 PM
  4. Vlookup/Match/Index combined with IF function to return 2nd to last result
    By Ollypetcon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-23-2014, 07:54 AM
  5. Replies: 6
    Last Post: 04-11-2012, 01:07 PM
  6. Replies: 7
    Last Post: 06-09-2011, 05:25 PM
  7. Formula should return a result but doesn't
    By Smock in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-27-2005, 02:05 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