Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default sumproduct & dates

hi all,

i have created (or designed) an excel doc that tracks purchasing for
my projects. what i am trying to do is track how much is spent per
month

in one tab, i have all purchases consolidated .. which cotain the
amount of a PO and the date of which was purchased

Purchase Record tab
Column = PO Value (range F6:F18)
Column = Date Purchased (range G6:G18)

on a next tab, i am trying to identify how much total spend there was
per month using the tab above

Spend Calendar tab (where the issue is)
i have a start date .. say 01/07/2007 (B5)
Row = month number (range C6:N6) eg, 1-12 (for the months of the year)
couple of rows down is where i am trying to use SUMPRODUCT..
=SUMPRODUCT((INT(MONTH('Purchase Record'!$G$6:$G
$18)=INT(C7))*('Purchase Record'!$F$6:$F$7)))

i recieve an #N/A when there is no data within the Purchase record
cell's.

is there a way to ignore all empty rows and move on to the next so it
can calculate?

i have put the worksheet on a website so you guys can see what i am
talking about

http://dev1.replayfunctionsband.net...._Template1.zip

Cheers

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default sumproduct & dates

You have a couple of problems with this.

In Purchase Record column G you have a formula that returns either a date or
a formula blank. The MONTH function is causing an error when trying to
evaluate these formula blanks.

Also, this formula:

=SUMPRODUCT((INT(MONTH('Purchase Record'!$G$6:$G$18)=INT(C7))*('Purchase
Record'!$F$6:$F$7)))

is using uneven sized ranges. 'Purchase Record'!$F$6:$F$7 must be the same
size as 'Purchase Record'!$G$6:$G$18. You don't need the INT functions.

Change your formulas in column G of Purchase Record to return 0 instead of
the blank. If you don't want to see the 0s use conditional formatting to
hide them. Then you can write your formula like this:

=SUMPRODUCT(--('Purchase Record'!$G$6:$G$180),--(MONTH('Purchase
Record'!$G$6:$G$18)=C7),'Purchase Record'!$F$6:$F$18)

--
Biff
Microsoft Excel MVP


wrote in message
oups.com...
hi all,

i have created (or designed) an excel doc that tracks purchasing for
my projects. what i am trying to do is track how much is spent per
month

in one tab, i have all purchases consolidated .. which cotain the
amount of a PO and the date of which was purchased

Purchase Record tab
Column = PO Value (range F6:F18)
Column = Date Purchased (range G6:G18)

on a next tab, i am trying to identify how much total spend there was
per month using the tab above

Spend Calendar tab (where the issue is)
i have a start date .. say 01/07/2007 (B5)
Row = month number (range C6:N6) eg, 1-12 (for the months of the year)
couple of rows down is where i am trying to use SUMPRODUCT..
=SUMPRODUCT((INT(MONTH('Purchase Record'!$G$6:$G
$18)=INT(C7))*('Purchase Record'!$F$6:$F$7)))

i recieve an #N/A when there is no data within the Purchase record
cell's.

is there a way to ignore all empty rows and move on to the next so it
can calculate?

i have put the worksheet on a website so you guys can see what i am
talking about

http://dev1.replayfunctionsband.net...._Template1.zip

Cheers



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default sumproduct & dates

hi biff,

just wanted to say that your my hero ... it works like a charm

cheers for that

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default sumproduct & dates

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Chuck" wrote in message
oups.com...
hi biff,

just wanted to say that your my hero ... it works like a charm

cheers for that



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 - DIFFERENT DATES Danny Excel Worksheet Functions 1 August 25th 07 03:57 AM
Sumproduct and dates Lee New Users to Excel 5 July 22nd 07 01:54 PM
SUMPRODUCT and Dates Joe Gieder Excel Worksheet Functions 2 June 6th 07 05:21 PM
sumproduct with dates Bumblebee Excel Worksheet Functions 2 August 22nd 06 08:16 PM
sumproduct between two dates chased Excel Worksheet Functions 4 July 8th 05 05:24 PM


All times are GMT +1. The time now is 10:28 AM.

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"