Charles651
New Member
- Joined
- Jul 11, 2015
- Messages
- 6
Hi, all. First time posting to this site but long-time lurker. I need a formula to add a column to my data that numbers each customer's orders based on the purchase date. The table contains a separate row for each item ordered by a customer, so there may be several rows with the same order date for an individual customer, but all order dates that are the same for an individual customer would be assigned the same number. The first (earliest) order date for each customer would be numbered "1", the second order date numbered "2", and so on until all unique order dates for each customer are numbered.
The columns in my spreadsheet are shown in example columns A-C below. The order number I want to add will be in column D.
Thanks for any and all guidance as I have no idea about how to do this!
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]CustomerID[/TD]
[TD]OrderDate[/TD]
[TD]ItemID[/TD]
[TD]Order[/TD]
[/TR]
[TR]
[TD]John Doe[/TD]
[TD]06/01/2014[/TD]
[TD]55555[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]John Doe[/TD]
[TD]06/01/2014[/TD]
[TD]12345[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]John Doe[/TD]
[TD]10/12/2014[/TD]
[TD]XYZ99[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Jane Doe[/TD]
[TD]07/19/2014[/TD]
[TD]AZ123[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Jane Doe[/TD]
[TD]09/01/2014[/TD]
[TD]99999[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Jane Doe[/TD]
[TD]10/05/2014[/TD]
[TD]77777[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
The columns in my spreadsheet are shown in example columns A-C below. The order number I want to add will be in column D.
Thanks for any and all guidance as I have no idea about how to do this!
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]CustomerID[/TD]
[TD]OrderDate[/TD]
[TD]ItemID[/TD]
[TD]Order[/TD]
[/TR]
[TR]
[TD]John Doe[/TD]
[TD]06/01/2014[/TD]
[TD]55555[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]John Doe[/TD]
[TD]06/01/2014[/TD]
[TD]12345[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]John Doe[/TD]
[TD]10/12/2014[/TD]
[TD]XYZ99[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Jane Doe[/TD]
[TD]07/19/2014[/TD]
[TD]AZ123[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Jane Doe[/TD]
[TD]09/01/2014[/TD]
[TD]99999[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Jane Doe[/TD]
[TD]10/05/2014[/TD]
[TD]77777[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]