Calculating Dates

davros

New Member
Joined
May 23, 2011
Messages
1
Hi,

Really struggling with date ranges in excel, basically i have a spreadsheet to track sales. Sales are entered by entering a date into column G on sheet 1. I then want an overall sales count on sheet 2, which will add up all sales between specific date using the date input in columng G on sheet 1. Does anyone know what formula i can use to search column G and count the amount of dates in this column between a specific date range?

Im finding it impossible.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hey davros.

If you're using Excel 2007 onwards, this might work if you wanted to count, say, the number of dates in column G of Sheet1 falling between Jan 31, 2011 and Feb 15, 2011:

=COUNTIFS(Sheet1!$G:$G,">31/01/2011",Sheet1!$G:$G,"<=15/02/2011")
 
Last edited:
Upvote 0
For earlier versions, this might work:

=SUMPRODUCT((Sheet1!$G:$G>DATEVALUE("31/01/2011"))*(Sheet1!$G:$G<=DATEVALUE("15/02/2011")))

You could also input the lower and upper date in two cells of your sheet, say, cells A1 and A2 of Sheet2, and refer to them in the function.

E.g.

=SUMPRODUCT((Sheet1!$G:$G>Sheet2!A1)*(Sheet1!$G:$G<=Sheet2!A2))
 
Upvote 0

Forum statistics

Threads
1,224,594
Messages
6,179,794
Members
452,943
Latest member
Newbie4296

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