+ Reply to Thread
Results 1 to 4 of 4

Min if function doesn't work for earliest date lookup

  1. #1
    Registered User
    Join Date
    01-23-2014
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    36

    Min if function doesn't work for earliest date lookup

    Hello,
    I am having issues with a min if formula
    even though i enter it as an array (ctrl +shift+enter), it only returns a zero.

    the formula is supposed to return the earliest date from Raw data if the name of the company matches the one from the data validation ('Company lookup'!D3)
    Dates are in column D and company name in column M
    I checked, the dates are all formatted as dates

    =MIN(IF(RAW!$M:$M,'Company lookup'!D3,RAW!$D:$D))

    does anyone know what I am doing wrong?

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Min if function doesn't work for earliest date lookup

    Blanks will be counted as Zero
    Zero is a perfectly valid numerical value for the MIN function to return.

    You have to add a criteria for <>""


    I also strongly recommend NOT using entire column references like M:M
    Specify row #s explicitly like M1:M1000

    Try
    =MIN(IF(RAW!$M:$M='Company lookup'!D3,IF(RAW!$D:$D<>"",RAW!$D:$D)))

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Min if function doesn't work for earliest date lookup

    Hi

    Formula is ok. Are you sure that 'Company lookup'!D3 matces in RAW!$M:$M column?

    If yes, then we have to see a small example workbook with your data.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Min if function doesn't work for earliest date lookup

    I think your formula should be like this.....

    Please Login or Register  to view this content.
    Confirmed with Ctrl+Shift+Enter
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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] Lookup for the succeeding dates after the earliest date
    By fbgail in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-13-2015, 09:36 AM
  2. LookUp based earliest date (2007)
    By D_N_L in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-15-2012, 08:19 AM
  3. Double lookup doesn't work (properly)
    By dominicb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-14-2008, 10:58 AM
  4. Performing a look up but Lookup doesn't work!
    By northend77 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-06-2007, 11:55 AM
  5. [SOLVED] Vlookup doesn't work until i edit(but not change) the lookup cell
    By Confused in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-08-2005, 05:25 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