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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
I have worked this out.
I needed to amend the [Date] to [Call End Date]
 
Upvote 0

Forum statistics

Threads
1,215,417
Messages
6,124,777
Members
449,187
Latest member
hermansoa

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