|
One of our
students asked this question on Facebook: I would like to know how to calculate a
sum in a period of time where dates are involved. This
interesting problem can be solved either using the DSUM function or
Array
formulas. The DSUM
involves:
- Copying the headers to a location below the data leaving a
space 3-4 rows
- Defining the condition or criteria under the labels or
headers
- The headers and the conditions become the 'criteria' of the
DSUM function
- For a range of dates you can copy the 'dates' header twice
so that under the first header you define the start date and in the
other 'Dates' header you define the End date as shown in the training
video.
The use of the sumif function as an array is quite powerful and
useful. Here you need to do the following:
- The data under the headers is selected and given a name.
This data then becomes the named range. For example the data under the
Dates header is selected and given the name 'dates' and the data under
the 'Values' header is given the name 'values'.
- Now you write the formula in any cell where you wish to get
the result (E5 or E6): =sum(if((Month=(dates)=6), values,0)). Then
press the 3 keys ctrl+shift+enter simultaneously
from the keyboard to get the result for June. In case you don't do this
correctly you'll get the result '#value'!
Watch the video below to see how to use the dsum and array formulas to
solve the problem:
More Tips:
How do I view and edit Microsoft Excel files on an
iPad?
Inventory Soluton
How to rename and color worksheet tabs
Copy Worksheet Quickly
Criteria Range
Animations in Microsoft Excel
Create two charts at once
How to avoid errors while working in Excel
How to benefit from
Microsoft Excel Templates
How to use Microsoft Excel 2007 with Word 2007 -
create mail
merge labels
Landscape Oriented Worksheet Template
How to-make a worksheet fit a printed page
How to make
your charts more impressive
Perpetual
Calendar from 1900 to 9999
How to create your own custom add-in
How
to clear conditional formattng in Excel worksheets
How to speed up data entry of decimal numbers
How to change the color of the gridlines of an Excel
worksheet or hide them
How to use Autosum in Multiple Worksheet Cells Quickly
How to have your free personal assistant in Mcrosoft
Excel who reads out the data to you
How to use the status bar in Microsoft Excel to do a
quick data analysis
How to calculate equal monthly payments or instalments
using a mathematical equation
Data Forms to Enter and Edit Data
View 2 worksheets in same workbook side by side
Accessing a specific worksheet in large workbooks with
multiple worksheets
Referencing a cell in another worksheet
How to perform a what-if analysis using a scrollbar
form control
An interesting
payroll solution
Future Value Solution in Microsoft Excel
Another Interesting Conditional Formatting Solution
|