Finding the lowest date in of a particular year

maria90

New Member
Joined
Apr 9, 2012
Messages
38
I've got two table ranges: CustomerID and Date. I'd like to find out the lowest date of a particular customer and year.
Example:

CustomerID Date
113.02.2014
203.04.2014
108.08.2014
101.12.2014
101.01.2015
601.02.2015
701.03.2015
801.04.2015

<tbody>
</tbody>

I tried to use SUMPRODUCT to find the lowest date for customer 1.
=SUMPRODUCT((Orders[CustomerID]=1)*(Year(Orders[Date]=2014)*(MIN(Orders[Date]))


Now this doesn't work. I tried (array) IF formulas, but they don't seem to work either.
What would you do in order to find the lowest date/the first order of a customer?

Thanks
Maria
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
One way:

Row\Col
A​
B​
C​
D​
E​
1​
ID
Date
2​
1​
13 Feb 2014​
3​
2​
03 Apr 2014​
4​
1​
08 Aug 2014​
5​
1​
01 Dec 2014​
6​
1​
01 Jan 2015​
7​
6​
01 Feb 2015​
8​
7​
01 Mar 2015​
9​
8​
01 Apr 2015​
10​
11​
ID
2014​
2015​
12​
1​
13 Feb 2014​
01 Jan 2015​
B12: {=IFERROR(1 / (1/MIN(IF(($A$2:$A$9 = $A12) * (YEAR($B$2:$B$9) = B$11), $B$2:$B$9))), "")}
13​
2​
03 Apr 2014​
14​
6​
01 Feb 2015​
15​
7​
01 Mar 2015​
16​
8​
01 Apr 2015​
 
Upvote 0

Forum statistics

Threads
1,215,942
Messages
6,127,807
Members
449,408
Latest member
Bharathi V

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