• Status: Solved
• Priority: Medium
• Security: Public
• Views: 59

# Excel Max

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
shieldsco
1 Solution

Change and Transition ManagerCommented:
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 Commented:
returns the date 1/0/1900
0

Author Commented:
0

Commented:
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

Change and Transition ManagerCommented:
works for me... see attached file
Book2.xlsx
0

Finance AnalystCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.