Solved

Excel Max

Posted on 2016-10-09
6
41 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
Outlook Free & Paid Tools
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
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…

776 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