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

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
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,214,641
Messages
6,120,691
Members
448,978
Latest member
rrauni

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