Function

Gusher

Board Regular
Joined
Aug 21, 2011
Messages
206
Office Version
  1. 365
Platform
  1. Windows
Hi

In column A I have series of dates. In column D I have numbers.

I need a function that will return the sum of numbers in column D between the dates Jan 1st and June 30th 2017.

Many Thanks, Mark
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Try, where A2:A7 has your dates and B2:B7 has your numbers
Code:
=SUMIFS(B2:B7,A2:A7,">="&DATEVALUE("1/1/2017"),A2:A7,"<="&DATEVALUE("6/30/2017"))
 
Upvote 0
Try, where A2:A7 has your dates and B2:B7 has your numbers
Code:
=SUMIFS(B2:B7,A2:A7,">="&DATEVALUE("1/1/2017"),A2:A7,"<="&DATEVALUE("6/30/2017"))

Thanks Scott, I tried this and it returned zero, any ideas?
 
Upvote 0
okay figured it out, problem was the date 6/30/2017 - excel didn't like that but did like 30/6/2017, thanks for your help
 
Upvote 0

Forum statistics

Threads
1,223,705
Messages
6,173,985
Members
452,540
Latest member
haasro02

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