How to sum values based on criteria in another column in Excel

DanDBZ

New Member
Joined
Jul 11, 2017
Messages
17
Hi,

I am wondering if there is an easy conditioning format to have a cell sum all the rows of a column that contain a certain date in the column next to it?

Dan
 
Ok, so you can use sumifS

Try this for July 2017, summing column A for dates in column B in July 2017

=SUMIFS(A:A,B:B,">="&DATE(2017,7,1),B:B,"<="&DATE(2017,7,31))
 
Upvote 0

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Use SUMIF()...
=SUMIF(date-range, date, sum-range)
date can either be hard coded or put into its own cell (preferred) and then referenced.

If you want to sum between 2 dates, change to sumifS()...
=sumifs(sum-range, date-range, ">="&start-date, date-range, "<="& end date()
again, the start date and end date are better referenced, than hard coded[
/QUOTE]

Perhaps my 2nd suggestion will work for you, as long as your dates are real dates (try Jonmo1's test)
If it is just text dates (month names), then SUMIF with July should work
 
Upvote 0
HiJonMo,

that worked a treat, thanking you very much.

I appreciate your help including FDibbins.
 
Upvote 0

Forum statistics

Threads
1,215,364
Messages
6,124,507
Members
449,166
Latest member
hokjock

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