Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 54
  • Last Modified:

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
Asked:
shieldsco
1 Solution
 
KoenCommented:
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
 
shieldscoAuthor Commented:
returns the date 1/0/1900
0
 
shieldscoAuthor Commented:
Pic
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Ejgil HedegaardCommented:
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
 
KoenCommented:
works for me... see attached file
Book2.xlsx
0
 
Rob HensonIT & Database AssistantCommented:
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now