Excel 2013
Column A has the dates from January 1, 2012 to December 31, 2012 beginning in Row 2 formatted as 1/1, 1/2 to 12/31.
Row 1 has the years 2012 to 2015 in columns B - E
The sales data is in a separate table called ARBatch.
I have this to pull in the sales data for each day copied down the year column:
=SUMIFS(ARBatch[AMTENTR],ARBatch[Date],DATE(C$1,MONTH($A2),DAY($A2)))
The problem is that it double pulls in the non leap years Feb 29th using Mar 1st data. 2012 works great because it is a leap year.
I have tried IF statements but can't get any to work.
Any help is appreciated.
Thanks,
Lee
I created a Pivot Table that works great showing the same data but thought I would make a simple sales date table and I can't solve the problem.
Column A has the dates from January 1, 2012 to December 31, 2012 beginning in Row 2 formatted as 1/1, 1/2 to 12/31.
Row 1 has the years 2012 to 2015 in columns B - E
The sales data is in a separate table called ARBatch.
I have this to pull in the sales data for each day copied down the year column:
=SUMIFS(ARBatch[AMTENTR],ARBatch[Date],DATE(C$1,MONTH($A2),DAY($A2)))
The problem is that it double pulls in the non leap years Feb 29th using Mar 1st data. 2012 works great because it is a leap year.
I have tried IF statements but can't get any to work.
Any help is appreciated.
Thanks,
Lee
I created a Pivot Table that works great showing the same data but thought I would make a simple sales date table and I can't solve the problem.