natetheblade2
New Member
- Joined
- Apr 20, 2016
- Messages
- 4
I am having a problem coming up with a MAX function that will return the last date in a sequence.
I have tried the =MAX(IF($A$n:$A$n=An,$B$n:$B$n)) function, although it returns the MAX date in the entire list rather than just the highest number date for the given unique ID number.
For example, here is what I would like:
<tbody>
</tbody>
What I get with the previous formula is 2016 for the MAX Year, rather than 2012 for those ID#'s that repeat.
Any idea of how to make Max Year return that max year for the ID number?
I have tried the =MAX(IF($A$n:$A$n=An,$B$n:$B$n)) function, although it returns the MAX date in the entire list rather than just the highest number date for the given unique ID number.
For example, here is what I would like:
ID# | Year | MAX Year |
12345 | 2011 | 2012 |
12345 | 2012 | 2012 |
23456 | 2016 | 2016 |
34567 | 2010 | 2012 |
34567 | 2012 | 2012 |
45678 | 2013 | 2013 |
56789 | 2014 | 2014 |
<tbody>
</tbody>
What I get with the previous formula is 2016 for the MAX Year, rather than 2012 for those ID#'s that repeat.
Any idea of how to make Max Year return that max year for the ID number?