Forum Discussion

smanas87's avatar
smanas87
Copper Contributor
Mar 01, 2023
Solved

Datedif function for duplicates

Hi I'm trying an excel formula for the below. I need to find the difference of the highlighted dates for each ID in months. Thank you ID Start Date End Date 1 5/1/2022 1/31/2023 1 6/1/...
  • HansVogelaar's avatar
    HansVogelaar
    Mar 02, 2023

    smanas87 

    Which version of Excel do you use? MAXIFS is available in Office 2019, Office 2021 and Microsoft 365.

    If you have an older version, try the following formula, confirmed by pressing Ctrl+Shift+Enter:

     

    =DATEDIF(MAX(IF($A$2:$A$100=A2, $B$2:$B$100)), C2, "m")

Resources