+ Reply to Thread
Results 1 to 7 of 7

Find Max Date for each cell in a column

  1. #1
    Registered User
    Join Date
    04-13-2022
    Location
    Brussels
    MS-Off Ver
    MS365
    Posts
    12

    Find Max Date for each cell in a column

    Hi,
    in the attached file i would like to replace the "YES" in column C by a formula
    The formula will check for each "code" (column A) which is the date that is most recent (max), and assign "YES" next to it..
    Any idea?
    Thanks a lot!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    06-16-2022
    Location
    New Jersey
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Find Max Date for each cell in a column

    enter in C2 and copy down.
    =IF(MAX(IF((A2=$A$2:$A$10)*($B$2:$B$10),$B$2:$B$10))=B2,"YES","")

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Find Max Date for each cell in a column

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor PaulSP8's Avatar
    Join Date
    11-21-2017
    Location
    Chorley, England
    MS-Off Ver
    2013 & 2021
    Posts
    437

    Re: Find Max Date for each cell in a column

    This should work;

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You'll need to use "Shift, CTRL and Enter" to use it, it's an array formula - If done correctly you'll see "{" and "}" at the start and end of the formula - Don't try and enter these yourself

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: Find Max Date for each cell in a column

    An alternative solution if you have a lot of records and are looking for speed is to employ power query.

    the attached demos your issue and a power query solution.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  6. #6
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,830

    Re: Find Max Date for each cell in a column

    Quote Originally Posted by PaulSP8 View Post
    You'll need to use "Shift, CTRL and Enter" to use it, it's an array formula - If done correctly you'll see "{" and "}" at the start and end of the formula - Don't try and enter these yourself
    Just FYI - the OP is on version 365. This is no longer needed in that version.

  7. #7
    Valued Forum Contributor PaulSP8's Avatar
    Join Date
    11-21-2017
    Location
    Chorley, England
    MS-Off Ver
    2013 & 2021
    Posts
    437

    Re: Find Max Date for each cell in a column

    Thanks Greg - I didn't know that.

    I also forgot about MAXIFS as per Fluffs answer - Still getting used to some of these new fangled things LOL

+ 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. find the date of the column with data and copy a cell to a new sheet
    By Farley945 in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 04-08-2022, 07:15 AM
  2. Replies: 2
    Last Post: 02-28-2018, 10:01 AM
  3. Loop through column to find EID then find date and paste corresponding data
    By CieloSalas in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-01-2017, 06:33 PM
  4. Find next date in a column and count how many rows fall in the first date
    By zookeepertx in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-11-2014, 10:50 AM
  5. VBA to find cell value in column and count occurances in same row within date range
    By Furutsun in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2014, 11:55 AM
  6. [SOLVED] vba code to find Duplicate Values and Newest date(Max) date in the Corresponding Column(ce
    By Pradu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-10-2013, 05:20 AM
  7. Replies: 5
    Last Post: 10-14-2010, 01: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