Difficulty with SumIFs for specific dates in every Year

BeepBeep

New Member
Joined
Jan 27, 2015
Messages
35
Hi all,

Good Afternoon,

I have my first column with pure Dates and second column with Sales running for 10 years, starting from 200 5 to 2014.

Requirement-I:

I want to calculate Sum of sales ONLY on some specific days say, Jan-1st, Dec-25th for all years.

If I choose 25th Dec, I want the Sum of Sales for 25th Dec for all the 10 years from 2005 to 2014.


Requirement-II:

Same way, I want to calculate Sum of sales between two specific dates for all the 10 years (2005 to 2014) say, Jan 8th to Jan 15th.

If I choose Jan 8th to Jan 15th, I want the Sum of Sales between those two dates from all the years i.e. 2005 to 2014.

I know standard SUMIFS function, but I do not know how to use it in this situation. Any help from anybody will be greatly appreciated.

Thank you.
BepBeep
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi,

This would sum 1 Jan for all years

=SUMPRODUCT((TEXT(A2:A1000,"DDMM")="0101")*(B2:B1000))

and like wise for 25 Dec


=SUMPRODUCT((TEXT(A2:A1000,"DDMM")="2512")*(B2:B1000))

and between 2 dates in this case 8 Jan and 15 jan inclusive.


=SUMPRODUCT((TEXT(A2:A1000,"DDMM")>="0801")*(TEXT(A2:A1000,"DDMM")<="1501")*(B2:B1000))
 
Upvote 0
Try this change the ranges to suit,
C=Range to sum
F7 & F8 = Start & End dates (put same date in both to sum for 1 date)

=SUMIFS(C2:C14,A2:A14,">="&F7,A2:A14,"<="&F8)

Edit: realised you want it for ALL years, so this won't work.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,244
Messages
6,170,976
Members
452,372
Latest member
Natalie18

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