Solved

# Excel Max

Posted on 2016-10-09
49 Views
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
Question by:shieldsco
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points

LVL 8

Expert Comment

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

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

Author Comment

ID: 41836132
0

LVL 22

Expert Comment

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

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

LVL 33

Expert Comment

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

Question has a verified solution.

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

This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
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…
###### Suggested Courses
Course of the Month10 days, 5 hours left to enroll