+ Reply to Thread
Results 1 to 8 of 8

Find max date with three conditions met

  1. #1
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Find max date with three conditions met

    I using 2013 excel.
    I have two sheets
    In one sheet our data record more than 15000 rows
    In sheet2 i required max date with three conditions met
    Conditions : Part number, Branch, Type
    In sheet2 total record more than 5000 rows, hence i required faster formula.
    File attach : Yellow cell required output.
    Attached Files Attached Files
    Last edited by avk; 02-03-2023 at 07:38 AM.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  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,704

    Re: Find max date with three conditions met

    You can use this array* formula:

    =MAX(IF((A2=Sheet1!$D$2:$D$15)*(B2=Sheet1!$A$2:$A$15)*(C2=Sheet1!$C$2:$C$15),Sheet1!$B$2:$B$15))

    *Note that an array formula needs to be confirmed using the key combination Ctr-Shift-Enter rather than the usual Enter.

    If you had a later version of Excel you could use the faster MAXIFS function.

    Hope this helps.

    Pete

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Find max date with three conditions met

    Hi avk,

    This is an array (CSE) answer/problem. See the attached for the answer.
    Find Max Date using CSE Answer.xlsx

    Edit: I don't think the "IF" is needed in the answer above mine.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Find max date with three conditions met

    In D2 copy down
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  5. #5
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Find max date with three conditions met

    Thanks to all. Its working.
    But calculating processor (4) taken more time, Running very slow.
    Hence we go with Pivot. File attached.
    Once again thanks to every one.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,287

    Re: Find max date with three conditions met

    Power Query
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Find max date with three conditions met

    Sheet2

    D2=AGGREGATE(14,6,Table1[Transaction Date]/(Sheet1!D2:D16=Sheet2!A2)/(Table1[Branch Code]=Sheet2!B2),1)

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Find max date with three conditions met

    If dates are in ascending order for for each part number you can try. This is faster than Aggregate formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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 date of which employee satisfies two conditions
    By kv.singh in forum Excel Formulas & Functions
    Replies: 29
    Last Post: 06-15-2020, 02:51 AM
  2. FIND Date Month Year with conditions
    By hkbhansali in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2019, 04:08 PM
  3. [SOLVED] Code doesn't find a date if it is a formula, but does find hard coded date
    By ABSTRAKTUS in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-14-2018, 06:25 AM
  4. MATCH and INDEX to find most recent date and other conditions
    By vwlibra in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-09-2016, 08:05 PM
  5. [SOLVED] Cells.Find xlDate does not find first date in sheet unless date format is dd/mm/yyyy
    By AtTheControls in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-07-2013, 12:35 PM
  6. Find earliest date if a range of conditions are met
    By Confused_Meme in forum Excel General
    Replies: 2
    Last Post: 03-02-2012, 04:39 PM
  7. Find Earliest Date based on conditions
    By ShredDude in forum Excel General
    Replies: 6
    Last Post: 07-14-2007, 01:56 PM

Tags for this Thread

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