Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 96
Default sumproduct with date range

i am trying to sum column i on a particular worksheet where the date in
column f is greater than or equal to the beginning of the month. the formula
i have is as follows...

=SUMPRODUCT(--'Jan-Jun'!I2:I65536,--'Jan-Jun'!F:F=(TODAY()-(DAY(TODAY())-1)))

the result is a #num! error...where is my formula incorrect?


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default sumproduct with date range

Hi

Try
=SUMPRODUCT(--('Jan-Jun'!F2:F65536=(TODAY()-DAY(TODAY())-1)),'Jan-Jun'!I2:I65536)

--
Regards
Roger Govier

"joemeshuggah" wrote in message
...
i am trying to sum column i on a particular worksheet where the date in
column f is greater than or equal to the beginning of the month. the
formula
i have is as follows...

=SUMPRODUCT(--'Jan-Jun'!I2:I65536,--'Jan-Jun'!F:F=(TODAY()-(DAY(TODAY())-1)))

the result is a #num! error...where is my formula incorrect?



__________ Information from ESET Smart Security, version of virus
signature database 4751 (20100107) __________

The message was checked by ESET Smart Security.

http://www.eset.com




__________ Information from ESET Smart Security, version of virus signature database 4751 (20100107) __________

The message was checked by ESET Smart Security.

http://www.eset.com



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default sumproduct with date range

Are you using Excel 2007? If not, then you can't use entire columns as range
references in SUMPRODUCT.

I'd use a cell to hold the date criteria.

A1 = some date like 1/1/2010

Then:

=SUMIF('Jan-Jun'!F:F,"="&A1,'Jan-Jun'!I:I)

--
Biff
Microsoft Excel MVP


"joemeshuggah" wrote in message
...
i am trying to sum column i on a particular worksheet where the date in
column f is greater than or equal to the beginning of the month. the
formula
i have is as follows...

=SUMPRODUCT(--'Jan-Jun'!I2:I65536,--'Jan-Jun'!F:F=(TODAY()-(DAY(TODAY())-1)))

the result is a #num! error...where is my formula incorrect?




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default sumproduct with date range

First issue is that sumproduct does not like references to entire columns
(prior to 2007) and even if it did your ranges are not equal in size.

(--'Jan-Jun'!I2:I65536,--'Jan-Jun'!F2:F65536=(

I did not check your logic to confirm that it will return the correct amount.
--
HTH...

Jim Thomlinson


"joemeshuggah" wrote:

i am trying to sum column i on a particular worksheet where the date in
column f is greater than or equal to the beginning of the month. the formula
i have is as follows...

=SUMPRODUCT(--'Jan-Jun'!I2:I65536,--'Jan-Jun'!F:F=(TODAY()-(DAY(TODAY())-1)))

the result is a #num! error...where is my formula incorrect?


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 96
Default sumproduct with date range

i totally missed that i forgot to put the row numbers in the range reference
in the second portion of the equation...works fine after the change...thanks!

"Jim Thomlinson" wrote:

First issue is that sumproduct does not like references to entire columns
(prior to 2007) and even if it did your ranges are not equal in size.

(--'Jan-Jun'!I2:I65536,--'Jan-Jun'!F2:F65536=(

I did not check your logic to confirm that it will return the correct amount.
--
HTH...

Jim Thomlinson


"joemeshuggah" wrote:

i am trying to sum column i on a particular worksheet where the date in
column f is greater than or equal to the beginning of the month. the formula
i have is as follows...

=SUMPRODUCT(--'Jan-Jun'!I2:I65536,--'Jan-Jun'!F:F=(TODAY()-(DAY(TODAY())-1)))

the result is a #num! error...where is my formula incorrect?


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
Sumproduct of date range roy.okinawa Excel Worksheet Functions 9 July 24th 09 07:43 PM
SUMPRODUCT with Date Range LouD Excel Worksheet Functions 4 July 16th 09 07:04 PM
Sumproduct on date range Southpaw Excel Discussion (Misc queries) 3 June 12th 08 11:05 PM
Can a date range be used in SUMPRODUCT bruce Excel Worksheet Functions 2 December 17th 07 12:56 PM
SUMPRODUCT between date range Celia New Users to Excel 1 November 9th 06 06:39 PM


All times are GMT +1. The time now is 06:59 PM.

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

About Us

"It's about Microsoft Excel"