+ Reply to Thread
Results 1 to 6 of 6

non-array MAX IF ??? to find most recent date with criteria

  1. #1
    Registered User
    Join Date
    01-03-2015
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    55

    non-array MAX IF ??? to find most recent date with criteria

    Hi peeps. Thanks in advance for your expertise. I'm stumped.

    So I have stock takes from different sites on different days and different times. I want a column to return "true" if a stock take is the latest of that day.

    I've tried a few things, so in the below screengrabs i now have various helper columns, most of which i suspect are unnecessary...

    I had thought row 7 would be most useful; essentially a unique ID to check (site code+datevalue) and a time decimal. Essentially, what is largest remainder of all entries beginning with [row5]

    the formula for row 8:8 is the one I'm struggling with. It should return blanks in all but E8, and H8.
    N.B. the latest entered (ie right-most column) is not necessarily the latest (ie column E's stock take is more recent than the later entered column F)

    1.JPG

    2.JPG
    Last edited by MikeDeButts; 09-05-2016 at 12:13 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: non-array MAX IF ??? to find most recent date with criteria

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    01-03-2015
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: non-array MAX IF ??? to find most recent date with criteria

    not attached workbooks before. Has this worked?
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: non-array MAX IF ??? to find most recent date with criteria

    Paste the following formula in B11, copy across to G11 and see if it does what you want:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    01-03-2015
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: non-array MAX IF ??? to find most recent date with criteria

    AMAZING!!! Thanks SO much. I can work with the 'true' output and get this thing finished!

    I'm confused by such formulae, where it clearly isn't an array formula as such, but it kinda includes an array of data (ie has {true, false,true} type bits when evaluated using F9.

    Are such formulae processor heavy? Where can I learn these. I can just about unpick the logic, but could never make that up myself. Are you some kind of genius or is there a resource / tutorial for formula with such ranges in them...?

    THANKS AGAIN.

    SOLVED

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: non-array MAX IF ??? to find most recent date with criteria

    You're welcome, thank you for the feedback and for marking the thread 'Solved'. To be honest I had just seen the ...($B3:$G3&$B4:$G4>B3&B4)... notation used to solve a query a couple of days back. Something, Divine Providence perhaps, called it to mind when I looked at the spreadsheet that you uploaded. I tested with your file, which is one of the benefits of attaching a file to a query, and it worked. SUMPRODUCT is a function that can handle array arguments, so it isn't necessary to activate with CSE, or at least in this case. A good way to see what the formula is doing is to select D11 and run Evaluate Formula from the Formula tab. As to the processor heavy part, I don't know the answer to that one. I hope that you have a blessed day.

+ 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] Find most recent date from a set of dates
    By rluesc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-26-2015, 08:51 AM
  2. [SOLVED] Lookup Multiple Criteria using most recent date
    By tsadams23 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-26-2015, 09:51 AM
  3. [SOLVED] Find a date with multiple criteria without using an array formula
    By nikos_tsagos in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-08-2015, 09:46 AM
  4. [SOLVED] Find recent value by date
    By akulka58 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-29-2013, 06:54 PM
  5. Vlookup to find most recent row with a criteria.
    By mlamb2005 in forum Excel General
    Replies: 6
    Last Post: 09-05-2008, 05:41 PM
  6. [SOLVED] Find most recent date
    By Andi Sea in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-08-2006, 07:10 PM
  7. [SOLVED] Find most recent date in a row of dates
    By Trapp in forum Excel General
    Replies: 3
    Last Post: 02-22-2006, 10:40 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