RANKX Query

gmazza76

Well-known Member
Joined
Mar 19, 2011
Messages
767
Office Version
  1. 365
Platform
  1. Windows
Good afternoon

I am trying to do a rankx(all query in my data and failing miserably, hopefully I can be pointed in the right direction.

I need to create the "rankx(all" based on the "Contact No" and "Call End Date" to show 1 being the last call.
The formula I am using currently is showing all as rank 1 when the 20/07/21 & Phone No 1 should be as per the below. I have even tried to split the "Call End Date" into 2 separate columns but I am having no luck.

The formula I am using is as follows

Code:
=rankx(filter(all('Data1'),'Data1'[Contact]=earlier('Data1'[Contact])
&& 'Data1'[Call End Date]>earlier('Data1'[Call End Date])),
[Date],,0,Dense)

1627469861834.png

All help/advice appreciated.
Gavin
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
I have worked this out.
I needed to amend the [Date] to [Call End Date]
 
Upvote 0

Forum statistics

Threads
1,214,792
Messages
6,121,612
Members
449,039
Latest member
Mbone Mathonsi

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