SUM ROW BASED ON DATE

bpworker

New Member
Joined
Sep 2, 2002
Messages
11
I need help with figuring out what formula to use.

In cell A3 is where the date value is. In cells E3:M3 are where the values I need to sum are located. I would like to place a formula in N3 to sum E3:M3 if A3 has a certain month located in it's date. Example...12-08-02 or 12-Aug-02. If it does not have this particular month, do not want a sum. I have sent in a similar request for this before but it was a much larger range and could not get it to work.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Say you are interested in September. Try something like

=IF(MONTH(A3)=9,SUM(E3:M3),"")

You could replace the "9" with a formula or cell reference to choose the month of interest
 
Upvote 0
The following may be what your looking for.
According to your example you were looking for a specific month, this formula works for August.


=IF(MONTH(A3)=8,SUM(E3:M3),FALSE)
 
Upvote 0

Forum statistics

Threads
1,213,534
Messages
6,114,186
Members
448,554
Latest member
Gleisner2

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