Ranking question

Cobber2008

New Member
Joined
Nov 29, 2020
Messages
28
Office Version
  1. 365
Hi all, i have a spreadsheet such as below. i want to add a column in column that cranks the time as grouped by Date and city. Eg for Ayr on the 2/1/18 the first rows with the earliers time in this case 12:30 gets a 1 in Column D for each cell and for same day on 2/1 at 12:55 is the next value so thats get a 2. This should be done for each date and city. i cant figure out how to do this i suspect its a Countifs thing but couldnt get it to work? Thanks.
2/01/2018​
AYR
12:30:00 PM​
2/01/2018​
AYR
12:30:00 PM​
2/01/2018​
AYR
12:30:00 PM​
2/01/2018​
AYR
12:30:00 PM​
2/01/2018​
AYR
12:30:00 PM​
2/01/2018​
AYR
12:30:00 PM​
2/01/2018​
AYR
12:30:00 PM​
2/01/2018​
AYR
12:30:00 PM​
2/01/2018​
AYR
12:55:00 PM​
2/01/2018​
AYR
12:55:00 PM​
2/01/2018​
AYR
12:55:00 PM​
2/01/2018​
AYR
12:55:00 PM​
2/01/2018​
AYR
12:55:00 PM​
2/01/2018​
AYR
12:55:00 PM​
2/01/2018​
AYR
12:55:00 PM​
2/01/2018​
BATH
1:00:00 PM​
2/01/2018​
BATH
1:00:00 PM​
2/01/2018​
BATH
1:00:00 PM​
2/01/2018​
BATH
1:00:00 PM​
2/01/2018​
BATH
1:00:00 PM​
2/01/2018​
BATH
1:00:00 PM​
2/01/2018​
BATH
1:00:00 PM​
4/01/2018​
BANGOR-ON-DEE
1:15:00 PM​
4/01/2018​
BANGOR-ON-DEE
1:15:00 PM​
4/01/2018​
BANGOR-ON-DEE
1:15:00 PM​
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Does this do what you want?

23 08 20.xlsm
ABCD
1
21/02/2018AYR12:30:00 PM1
31/02/2018AYR12:30:00 PM1
41/02/2018AYR12:30:00 PM1
51/02/2018AYR12:30:00 PM1
61/02/2018AYR12:30:00 PM1
71/02/2018AYR12:30:00 PM1
81/02/2018AYR12:30:00 PM1
91/02/2018AYR12:30:00 PM1
101/02/2018AYR12:55:00 PM2
111/02/2018AYR12:55:00 PM2
121/02/2018AYR12:55:00 PM2
131/02/2018AYR12:55:00 PM2
141/02/2018AYR12:55:00 PM2
151/02/2018AYR12:55:00 PM2
161/02/2018AYR12:55:00 PM2
171/02/2018BATH1:00:00 PM1
181/02/2018BATH1:00:00 PM1
191/02/2018BATH1:00:00 PM1
201/02/2018BATH1:00:00 PM1
211/02/2018BATH1:00:00 PM1
221/02/2018BATH1:00:00 PM1
231/02/2018BATH1:00:00 PM1
241/04/2018BANGOR-ON-DEE1:15:00 PM1
251/04/2018BANGOR-ON-DEE1:15:00 PM1
261/04/2018BANGOR-ON-DEE1:15:00 PM1
Rank
Cell Formulas
RangeFormula
D2:D26D2=MATCH(C2,UNIQUE(FILTER(C$2:C$26,(B$2:B$26=B2)*(A$2:A$26=A2))),0)
 
Upvote 0
Solution
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,195
Messages
6,123,572
Members
449,108
Latest member
rache47

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