Order of events happening... occurences

smylod

New Member
Joined
Jun 8, 2011
Messages
1
Ok. So I am trying to get the order of when an event happened. (1st, 2nd, 3rd, etc).

Column 1 is cars... col 2... dates... and col3 is the desired output I want.

COL 1 COL 2 COL3
CAR-A 01/10 1
CAR-A 02/10 2
CAR-A 03/10 3
CAR-B 02/10 1
CAR-B 03/10 2
CAR-C 04/10 1
CAR-D 02/10 1
CAR-D 06/10 2

I have an alogorhtyhm but seems to keep breaking when I only have one occurence.

Can anyone help me out... THANKS
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hi,

Try in Col C

=COUNTIF(A$1:A1,A1)

and copy down

Hope it helps you

George

Ok. So I am trying to get the order of when an event happened. (1st, 2nd, 3rd, etc).

Column 1 is cars... col 2... dates... and col3 is the desired output I want.

COL 1 COL 2 COL3
CAR-A 01/10 1
CAR-A 02/10 2
CAR-A 03/10 3
CAR-B 02/10 1
CAR-B 03/10 2
CAR-C 04/10 1
CAR-D 02/10 1
CAR-D 06/10 2

I have an alogorhtyhm but seems to keep breaking when I only have one occurence.

Can anyone help me out... THANKS
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,545
Messages
6,179,432
Members
452,915
Latest member
hannnahheileen

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