Confidentjohn
Board Regular
- Joined
- Mar 3, 2009
- Messages
- 73
Hi
I need to figure out the first date a customer ordered an item, i have a very large database output and with customer ID and Order dates, against each customer I need add a cell that states the 1st order date.
Raw data example
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Customer ID[/TD]
[TD]Order Date[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1/10/2012[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]25/12/2012[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1/1/2013[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1/11/2012[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1/12/2012[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1/1/2013[/TD]
[/TR]
</tbody>[/TABLE]
Next to each line i want to add the earliest order date, is there a way using if and small against a range to do this?
Any help will be greatly appreciated.
John
I need to figure out the first date a customer ordered an item, i have a very large database output and with customer ID and Order dates, against each customer I need add a cell that states the 1st order date.
Raw data example
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Customer ID[/TD]
[TD]Order Date[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1/10/2012[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]25/12/2012[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1/1/2013[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1/11/2012[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1/12/2012[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1/1/2013[/TD]
[/TR]
</tbody>[/TABLE]
Next to each line i want to add the earliest order date, is there a way using if and small against a range to do this?
Any help will be greatly appreciated.
John