RANKX on date by group

rpadminserver

Board Regular
Joined
Nov 7, 2007
Messages
111
Office Version
  1. 365
Hello ALL...
My Goal: Find the most recent time that a student took a class.
I have a table (called CLASSCOMPLETED) that contains the employreeID, CourseID, CompletedDate.
I need to group by employee id, then group by courseID, then (in descending order of date) rank the classes.
I think RANKX is my solution, but I've not been able to figure out.
Here is an example of what I'm trying to get:

Employee IDCourseIDCompletedDateRanking
robc0001
7/1/2020​
1​
robc0001
6/15/2019​
2​
robc0002
3/12/2021​
1​
robc0002
9/15/2020​
2​
robc0002
2/25/2019​
3​

Thanks in advance.
Rob
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,215,161
Messages
6,123,377
Members
449,097
Latest member
Jabe

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top