Solved

Excel Max

Posted on 2016-10-09
6
39 Views
Last Modified: 2016-10-10
I have a Excel worksheet that has two columns. The first column is the user name and the second column contains the user date. I'm try to find the last (max) date in the second column (user date) based on the user name. For example if a user has ten rows (records) I want to find the max date in that group of records. When the user names changes repeat above. Thanks
0
Comment
Question by:shieldsco
6 Comments
 
LVL 8

Expert Comment

by:Koen
ID: 41836106
names in columns A, dates in column B:

add a column for the max and enter this formula

=MAX(IF($A$2:$A$4=A2;$B$2:$B$4))
(you might need to replace ; with , depending on your regional settings)

hit CTRL+Shift+enter to turn it into a formula array, then copy down

{=MAX(IF($A$2:$A$4=A2;$B$2:$B$4))}
0
 

Author Comment

by:shieldsco
ID: 41836121
returns the date 1/0/1900
0
 

Author Comment

by:shieldsco
ID: 41836132
Pic
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 21

Expert Comment

by:Ejgil Hedegaard
ID: 41836135
With Index you can use a standard formula
=MAX(INDEX(($A$2:$A$100=A2)*$B$2:$B$100,,))
Change the ranges to fit the data, it can be longer than the list.
0
 
LVL 8

Accepted Solution

by:
Koen earned 500 total points
ID: 41836137
works for me... see attached file
Book2.xlsx
0
 
LVL 32

Expert Comment

by:Rob Henson
ID: 41836740
You could also summarise the data in a pivot table.

Set up correctly, this would give a list of unique names and the max date for each. With the data set as a Table, the pivot will adjust the range from which it gets the data and can be refreshed easily.

Copy of Koen's file attached with pivot.

Thanks
Rob H
Book2--1-.xlsx
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will show you how to use shortcut menus in the Access run-time environment.
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now