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:
[TABLE="width: 151"]
<tbody>[TR]
[TD]CustomerID[/TD]
[TD] Date[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]13.02.2014[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]03.04.2014[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]08.08.2014[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]01.12.2014[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]01.01.2015[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]01.02.2015[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]01.03.2015[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]01.04.2015[/TD]
[/TR]
</tbody>[/TABLE]
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
Example:
[TABLE="width: 151"]
<tbody>[TR]
[TD]CustomerID[/TD]
[TD] Date[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]13.02.2014[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]03.04.2014[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]08.08.2014[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]01.12.2014[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]01.01.2015[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]01.02.2015[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]01.03.2015[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]01.04.2015[/TD]
[/TR]
</tbody>[/TABLE]
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