How many values has a single ID, excel

AliceKO

New Member
Joined
Aug 1, 2015
Messages
14
I can't find how to solve one question. I have list of ClientID, also i have a list of agreement dates.
CLIENT_ID AGREEMENT_DATE
1 01/03/2012
2 01/05/2013
5 11/10/2013
3 01/06/2014
5 06/08/2015

i need to find out how many agreements had a single Client? and if there are several agreements i need to show which was first, second and so on.
As a result i would have:
ClientID CountOfAgreements
5 2
1 1
2 1
3 1

than:
ClientID AgreementOrder
5 11/10/2013
5 06/08/2015
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hello,

As an initial step, have you tried to insert a pivot table ...?

HTH
 
Upvote 0
Yes, I've made the pivot table and know how many agreements has a single client, but how can order the agreements?

Hello,

When you say " order the agreements" ... do you mean to sort them alphabetically ?
 
Upvote 0
In order to sort, you can use the Agreement_date Field ...in the pivot table ... right click and sort in ascending order ...

HTH
 
Upvote 0

Forum statistics

Threads
1,213,562
Messages
6,114,326
Members
448,564
Latest member
ED38

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