Sumif by date

Hozz

Board Regular
Joined
Feb 10, 2005
Messages
140
Hi,

I'm attempting to use the sumif command depending on a date in column D. D is formatted as a date (mmm-yy).

Column V contains the numbers i need to add.

If the dates in D is january and the year is 06, then i want the corresponding numbers in column V added.

What would the formula for this be?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi

I put todays date in D1 and put 12 in V1

In any column i put this:

=SUM(D1+V1)

It returned 08/08/07

Hope this helps
 
Upvote 0
No. You misunderstand.

I have a column of random numbers in V.

If the date in column D is showing as january 2006 then i want the corresponding numbers in column V to be added together.
 
Upvote 0
sumif is normally used to add data in one column under some crietria.;
if the adding depends upon value in another column better use sumproduct.

see the sample sheet below
see formula in B12 . modify formula to suit you.
Book1
ABCD
11-Jul10
22-Jul4
33-Jul6
44-Jul7
51-Jul6
62-Jul8
71-Jul9
82-Jul5
91-Jul7
10
11
1232
Sheet1
 
Upvote 0
So....you have a date in D1, D2 D3 etc....
and you want them adding to V1, V2, V3??


My original post would work:

=SUM(D1+V1) fill this down whichever column you are going to have the formula would then produce
=SUM(D+V2) etc etc
 
Upvote 0
Hozz,

Try this (you may have to adjust the ranges):
=SUMPRODUCT(--(TEXT($D$2:$D$1000,"mmm-yy")="Jan-06"),$V$2:$V$1000)

Have a great day,
Stan
 
Upvote 0
Stan, why do you feel the need to coerce the date into text?

I am asking you this because, Venkat provided an example above and it works perfect without coercing the date.
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,700
Members
448,979
Latest member
DET4492

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