+ Reply to Thread
Results 1 to 6 of 6

Date comparison query

  1. #1
    Registered User
    Join Date
    04-08-2009
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    85

    Date comparison query

    I need to compare a column of dates in Column C to dates in Column M, and where
    the date in M is a match, copy the number in that row at Column L to Column J. (Hope
    that was clear enough ) Any help greatly appreciated

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,685

    Re: Date comparison query

    You can put this formula in J2:

    =IFERROR(INDEX(L:L,MATCH(C2,M:M,0)),"")

    then copy down.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    04-08-2009
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Date comparison query

    Thanks Pete, tried that and just get a #NAME? error.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,685

    Re: Date comparison query

    That error message means that you have mis-spelt one of the function names - did you spell IFERROR exactly as it occurs? It is better to copy the formula from here and paste it into the formula bar with J2 selected, then press < Enter >.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    04-08-2009
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Date comparison query

    Forgot to mention - using Excel 2000, that may be the problem.
    I've got a much later version, but found it a pain for some reason I don't recall just at the
    moment so went back to the old version.

    Actually just tried it without the IFERROR and works great - should have tried that before!


    Thanks Pete!
    Last edited by jp001; 09-27-2016 at 06:41 PM.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,685

    Re: Date comparison query

    Which part of the formula is being highlighted (if any)?

    Are you using an early version of Excel (i.e. 2003 or earlier)? The IFERROR function did not appear in Excel until the 2007 version.

    Hope this helps.

    Pete

+ 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] Target Date to Completed Date Comparison Percentage output
    By FNG_to_Excel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-25-2015, 12:32 PM
  2. Date Comparison
    By ryan9867 in forum Excel General
    Replies: 2
    Last Post: 03-14-2010, 10:44 PM
  3. Comparison Query
    By heliskier89 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-10-2009, 02:07 AM
  4. Comparison of Date
    By subhs in forum Excel General
    Replies: 1
    Last Post: 05-16-2009, 01:25 PM
  5. Date Comparison
    By Lizz45ie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-18-2008, 05:00 PM
  6. Date Comparison
    By dzuy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-30-2006, 05:50 AM
  7. Date comparison
    By Jonibenj in forum Excel General
    Replies: 6
    Last Post: 10-23-2005, 04: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