+ Reply to Thread
Results 1 to 15 of 15

Using INDEX(MATCH()) with dates

  1. #1
    Forum Contributor
    Join Date
    08-13-2014
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    209

    Using INDEX(MATCH()) with dates

    Hello!

    I'm trying to use the index match function and am getting an #N/A when including dates as one of my criteria. Any ideas what might be causing this?

    Cheers,

    M

  2. #2
    Forum Contributor
    Join Date
    03-12-2013
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2007
    Posts
    230

    Re: Using INDEX(MATCH()) with dates

    Can you copy and paste your formula? My guess is that it is a cell formatting issue, or the date may not be coded correctly in your formula, but without seeing the formula, there is no way to verify.

  3. #3
    Forum Contributor
    Join Date
    08-13-2014
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    209

    Re: Using INDEX(MATCH()) with dates

    I'm using :
    Please Login or Register  to view this content.
    where the last entry refers is the date criteria.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Using INDEX(MATCH()) with dates

    Are the dates numbers or text that look like dates?
    Dave

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Using INDEX(MATCH()) with dates

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Contributor
    Join Date
    08-13-2014
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    209

    Re: Using INDEX(MATCH()) with dates

    Thanks,

    I've attached a demo version of the file. The issue I'm having is on the "Combined Data" Sheet.

    Cheers
    Attached Files Attached Files

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Using INDEX(MATCH()) with dates

    1. your dates in CSGL sheet include time, so no pure dates will match them. You need to strip out the times\

    2. avoid using full-column references in ARRAY formulas, they will slow your file down - just use the range you need

  8. #8
    Forum Contributor
    Join Date
    08-13-2014
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    209

    Re: Using INDEX(MATCH()) with dates

    Thanks for the feedback! Could you show me how to strip out the times from the dates?

    Cheers

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Using INDEX(MATCH()) with dates

    Could you show me how to strip out the times from the dates?

    =TEXT(LEFT(B2,LEN(B2)-6),"dd-mm-yyyy")*1 and format as date
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  10. #10
    Forum Contributor
    Join Date
    08-13-2014
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    209

    Re: Using INDEX(MATCH()) with dates

    Quote Originally Posted by oeldere View Post
    =TEXT(LEFT(B2,LEN(B2)-6),"dd-mm-yyyy")*1 and format as date
    Thanks I tried this but it doesn't work for all the cells. Some are returning #VALUE! error.

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Using INDEX(MATCH()) with dates

    for which cells you get an error?

    you have to give us all the information to get a decent answer.

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Using INDEX(MATCH()) with dates

    another way use text to column and use space as a separator.

    excel file attached.
    Attached Files Attached Files
    Last edited by oeldere; 06-20-2016 at 11:13 AM.

  13. #13
    Forum Contributor
    Join Date
    08-13-2014
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    209

    Re: Using INDEX(MATCH()) with dates

    I'm getting this error in cell R4, R7 & R8.

  14. #14
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Using INDEX(MATCH()) with dates

    If you are getting an error from oelere's formula, then those are probably not dates, but text looking like dates

    Another way to strip time =INT(cell-ref)

  15. #15
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Using INDEX(MATCH()) with dates

    Thanks for marking the question closed.

    It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

+ 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. Using dates with SUMIFS(INDEX(Match,,,)
    By AnyBrain in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-09-2014, 02:59 PM
  2. [SOLVED] Match & Index issue with dates
    By saybut in forum Excel General
    Replies: 11
    Last Post: 04-01-2014, 11:55 AM
  3. Match & Index Between Dates
    By jennyaccord in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-14-2011, 01:07 PM
  4. INDEX MATCH with dates in a ROW
    By thart21 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-02-2011, 12:15 PM
  5. index/match only newest dates
    By scabertrain in forum Excel General
    Replies: 5
    Last Post: 09-27-2010, 05:16 PM
  6. Index & Match to return value between two dates
    By georgeanaprop in forum Excel General
    Replies: 2
    Last Post: 02-12-2010, 08:40 AM
  7. Index and Match Dates and Values
    By katja328 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-11-2010, 10:47 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