Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Neil
 
Posts: n/a
Default how do i sum 2 values that fall between date ranges?

i have several columns, for profit costs, VAT etc, on a seperate sheet within
the same workbook i want to create a summary sheet which totals all of the
profit costs that fall within each month.

i.e. sum of profit costs for february.

i have tried for hours without success, this is my current effort:

=SUM(IF(('Adam Burton - Costs Recovered.xls'!Date"31/12/2004")+('Adam
Burton - Costs Recovered.xls'!Date<"01/02/2005"),Paid!D4:D1000))

can anyone please help!?

Neil
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

An example could look like this

=SUMPRODUCT(--(A4:A1000DATE(2004,12,31)),--(A4:A1000<DATE(2005,2,1)),D4:D1000)

where A4:A1000 holds the dates and D4:D1000 the values you want to sum
Note that the date range needs to be of the same size as the sum range

--
Regards,

Peo Sjoblom


"Neil" wrote in message
...
i have several columns, for profit costs, VAT etc, on a seperate sheet
within
the same workbook i want to create a summary sheet which totals all of the
profit costs that fall within each month.

i.e. sum of profit costs for february.

i have tried for hours without success, this is my current effort:

=SUM(IF(('Adam Burton - Costs Recovered.xls'!Date"31/12/2004")+('Adam
Burton - Costs Recovered.xls'!Date<"01/02/2005"),Paid!D4:D1000))

can anyone please help!?

Neil



  #3   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Wed, 30 Mar 2005 06:43:04 -0800, "Neil"
wrote:

i have several columns, for profit costs, VAT etc, on a seperate sheet within
the same workbook i want to create a summary sheet which totals all of the
profit costs that fall within each month.

i.e. sum of profit costs for february.

i have tried for hours without success, this is my current effort:

=SUM(IF(('Adam Burton - Costs Recovered.xls'!Date"31/12/2004")+('Adam
Burton - Costs Recovered.xls'!Date<"01/02/2005"),Paid!D4:D1000))

can anyone please help!?

Neil


Look at the SUMIF function.

For January 2004, something like:

=SUMIF(Dt,"="&DATE(2004,1,1),Paid)-
SUMIF(Dt,""&DATE(2004,1,31),Paid)

This assumes that Dt and Paid are named ranges on the appropriate worksheet.


--ron
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Grabbing recods based on date and shift values Jay Excel Worksheet Functions 1 February 25th 05 02:42 PM
SUMPRODUCT with date range question Rob V Excel Discussion (Misc queries) 1 January 31st 05 03:55 PM
Need totals of values that fall within a given year Pierre Excel Worksheet Functions 12 January 5th 05 04:45 PM
Counting values within a Date Range Jana Excel Discussion (Misc queries) 7 December 9th 04 10:18 PM
How can I sum information in a list with a date range? Dave Excel Worksheet Functions 2 November 23rd 04 08:17 PM


All times are GMT +1. The time now is 07:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"