+ Reply to Thread
Results 1 to 6 of 6

Index Match not matching

Hybrid View

Margate Index Match not matching 02-21-2018, 08:22 AM
Phuocam Re: Index Match not matching 02-21-2018, 08:26 AM
Margate Re: Index Match not matching 02-21-2018, 08:29 AM
sandy666 Re: Index Match not matching 02-21-2018, 08:27 AM
sandy666 Re: Index Match not matching 02-21-2018, 08:30 AM
Norie Re: Index Match not matching 02-21-2018, 08:31 AM
  1. #1
    Forum Contributor
    Join Date
    01-18-2013
    Location
    England
    MS-Off Ver
    2016 (Mac)
    Posts
    149

    Index Match not matching

    Hello everyone,

    I am trying to create a simple index match but for some reason all i get it a #N/A result? I'm sure it's something simple that I have overlooked but cannot seem to work it out

    I just need to index column A (A2:A12) and then find a match between the two dates that are along that row. Once a match is found then the data should return in my case ST.


    Below is a screen shot of my data:
    Screen Shot 2018-02-21 at 12.18.27.jpg

    And here is my code (array formula):

    =INDEX(A2:A12,MATCH(1,IF(G3>=B2:C12,IF(G3<=D2:E12,1)),0))
    I have also attached the spreadsheet.
    The cells are merged but this is practical for my spreadsheet. I don't think that this will effect the problem though.

    Thank you in advance for any help.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,175

    Re: Index Match not matching

    Try:

    =INDEX(A2:A12,MATCH(1,IF(G3>=B2:B12,IF(G3<=D2:D12,1)),0))

    Or:

    =INDEX(A2:A12,MATCH(1,(G3>=B2:B12)*(G3<=D2:D12),0))

    Ctrl+Shift+Enter

  3. #3
    Forum Contributor
    Join Date
    01-18-2013
    Location
    England
    MS-Off Ver
    2016 (Mac)
    Posts
    149

    Re: Index Match not matching

    So it was the merged cells! I knew it would be something simple!

    Thank you for your help, I will mark this as solved.

    Kind Regards,

    Margate.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Index Match not matching

    maybe this one:
    (and try to not use merged cells)
    Attached Files Attached Files

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Index Match not matching

    You are welcome

    If that takes care of your original question, & to say Thanks, please click on Add Reputtion (bottom left corner of the post of the person(s) who helped you)
    then select Thread Tools from the menu (top right corner of your thread) and mark this thread as SOLVED.
    If you did it already - ignore it.
    Thank you.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Index Match not matching

    The dates are actually in columns B and D not B:C and D:E.

    =INDEX(A2:A12,MATCH(1,IF(G3>=B2:B12,IF(G3<=D2:D12,1)),0))

    PS No real need to merge, you can get the same visual affect using the Center across selection horizontal alignment.
    If posting code please use code tags, see here.

+ 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] Index Match matching two criteria
    By rish3005 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-09-2017, 01:55 PM
  2. [SOLVED] Matching specific characters in a row using INDEX/MATCH
    By Phalanxz in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-13-2016, 03:42 PM
  3. [SOLVED] Index and Match to return ALL matching values
    By garciapliz in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-07-2015, 05:41 AM
  4. [SOLVED] Index/Match and return all matching values
    By OLLY-7 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-04-2014, 06:09 PM
  5. Replies: 13
    Last Post: 12-13-2012, 11:44 AM
  6. Using INDEX and MATCH to find the 2nd matching value?
    By mysterydave in forum Excel General
    Replies: 4
    Last Post: 01-22-2009, 10:23 AM
  7. Index and Match-find the the matching number
    By windme in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-10-2008, 03:09 PM

Tags for this Thread

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