+ Reply to Thread
Results 1 to 2 of 2

Match date 1 with min date 2 and return 1,0

  1. #1
    Registered User
    Join Date
    02-25-2014
    Location
    Swe
    MS-Off Ver
    Excel 2010
    Posts
    1

    Match date 1 with min date 2 and return 1,0

    Hi,

    Cant get this to work, trying to match 2 dates/years where the second date/year is a MIN value from a series of 12 dates.

    What im using:

    G2=MIN(H2:S2) Dont want this to return anything if row is blank.

    D2=IF(C2="";"";MIN(MONTH(C2)))

    F2=IF(G2="";"";MIN(MONTH(G2)))

    E2=IF(OR(C2="";G2="";"";AND(MONTH(C2)=MONTH(G2);YEAR(C2)=YEAR(G2)));"1";0)

    Is it possible to do this in less steps?
    Last edited by ante_; 02-25-2014 at 09:08 AM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,619

    Re: Match date 1 with min date 2 and return 1,0

    in E2 shall be enough:
    Please Login or Register  to view this content.
    missing C2 or nothing in H2:S2 -> blank cell
    m(c2)=m(mindate) and y(c2)=y(mindate) -> 1
    m(c2)<>m(mindate) or y(c2)<>y(mindate) ->0
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    02-25-2014
    Location
    Swe
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Match date 1 with min date 2 and return 1,0

    Perfect! Thank you!

    Best!

+ 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 Based on One Date Criteria, Table Contains Beginning Date and End Date
    By jcox1953 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-09-2014, 02:41 PM
  2. Replies: 2
    Last Post: 08-16-2013, 10:18 AM
  3. [SOLVED] Return a date if records match
    By mistert in forum Excel General
    Replies: 3
    Last Post: 12-07-2012, 10:39 PM
  4. Replies: 2
    Last Post: 01-20-2011, 04:54 PM
  5. [SOLVED] Match Last Occurrence of two numbers and Return Date
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-05-2005, 08:06 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