Small If on Range

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
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Perfect, Thank you both for your help, this worked perfectly, even if it did take about 4 hours to process on my ropey laptop and slightly large file. ;)

Cheers

John
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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