A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

SUMPRODUCT more help



 
 
Thread Tools Display Modes
  #1  
Old January 13th, 2005, 10:37 PM
benb
external usenet poster
 
Posts: n/a
Default SUMPRODUCT more help

I have a column of dates and a corresponding column of values that are
actually functions converting a foreign currency amount into USD. I want to
create a month-to-date total in a single cell by using SUMPRODUCT. What I am
using is:

=SUMPRODUCT(--(YEAR($A$15:$A$1000)=YEAR($C$7)),--(MONTH($A$15:$A$1000)=MONTH($C$7)),$B$15:$B$1000)

But I am getting the #VALUE! error message. Some of the cells in the dates
array are blank, and there may be a cell in the values array that has an
error because the values are functions themselves. How can I fix this? If I
can assure that none of the cells in the value array have errors will that
make it easier?
  #2  
Old January 13th, 2005, 10:50 PM
Dave R.
external usenet poster
 
Posts: n/a
Default

If any of the cells have VALUE errors, you'll get that message. Blank cells
are OK. If the cell contains some text, you'll be fine with the way your
formula is written.

You can count error messages in a range with;

=SUMPRODUCT(--ISERROR(A1:A100))


"benb" wrote in message
...
I have a column of dates and a corresponding column of values that are
actually functions converting a foreign currency amount into USD. I want

to
create a month-to-date total in a single cell by using SUMPRODUCT. What I

am
using is:


=SUMPRODUCT(--(YEAR($A$15:$A$1000)=YEAR($C$7)),--(MONTH($A$15:$A$1000)=MONTH
($C$7)),$B$15:$B$1000)

But I am getting the #VALUE! error message. Some of the cells in the

dates
array are blank, and there may be a cell in the values array that has an
error because the values are functions themselves. How can I fix this?

If I
can assure that none of the cells in the value array have errors will that
make it easier?



  #3  
Old January 13th, 2005, 11:02 PM
Bob Phillips
external usenet poster
 
Posts: n/a
Default

Personally, I would fix the data and ensure there are no errors there.

--
HTH

-------

Bob Phillips
"Dave R." wrote in message
...
If any of the cells have VALUE errors, you'll get that message. Blank

cells
are OK. If the cell contains some text, you'll be fine with the way your
formula is written.

You can count error messages in a range with;

=SUMPRODUCT(--ISERROR(A1:A100))


"benb" wrote in message
...
I have a column of dates and a corresponding column of values that are
actually functions converting a foreign currency amount into USD. I

want
to
create a month-to-date total in a single cell by using SUMPRODUCT. What

I
am
using is:



=SUMPRODUCT(--(YEAR($A$15:$A$1000)=YEAR($C$7)),--(MONTH($A$15:$A$1000)=MONTH
($C$7)),$B$15:$B$1000)

But I am getting the #VALUE! error message. Some of the cells in the

dates
array are blank, and there may be a cell in the values array that has an
error because the values are functions themselves. How can I fix this?

If I
can assure that none of the cells in the value array have errors will

that
make it easier?





  #4  
Old January 14th, 2005, 02:47 PM
benb
external usenet poster
 
Posts: n/a
Default

There are no errors, but I am still coming up with the #VALUE! error message
using SUMPRODUCT(). I've tried a few things, changing the formula and using
a dummy dataset, but I couldn't figure out why I was getting the error.
Fortunately I found a SUMIF variation that worked instead, but I'm still
curious what's causing the error in SUMPRODUCT.

"Bob Phillips" wrote:

Personally, I would fix the data and ensure there are no errors there.

--
HTH

-------

Bob Phillips
"Dave R." wrote in message
...
If any of the cells have VALUE errors, you'll get that message. Blank

cells
are OK. If the cell contains some text, you'll be fine with the way your
formula is written.

You can count error messages in a range with;

=SUMPRODUCT(--ISERROR(A1:A100))


"benb" wrote in message
...
I have a column of dates and a corresponding column of values that are
actually functions converting a foreign currency amount into USD. I

want
to
create a month-to-date total in a single cell by using SUMPRODUCT. What

I
am
using is:



=SUMPRODUCT(--(YEAR($A$15:$A$1000)=YEAR($C$7)),--(MONTH($A$15:$A$1000)=MONTH
($C$7)),$B$15:$B$1000)

But I am getting the #VALUE! error message. Some of the cells in the

dates
array are blank, and there may be a cell in the values array that has an
error because the values are functions themselves. How can I fix this?

If I
can assure that none of the cells in the value array have errors will

that
make it easier?






  #5  
Old January 14th, 2005, 05:07 PM
Bob Phillips
external usenet poster
 
Posts: n/a
Default

Show us the SUMIF variation that works, and we might be able to figure it.

--
HTH

Bob Phillips

"benb" wrote in message
...
There are no errors, but I am still coming up with the #VALUE! error

message
using SUMPRODUCT(). I've tried a few things, changing the formula and

using
a dummy dataset, but I couldn't figure out why I was getting the error.
Fortunately I found a SUMIF variation that worked instead, but I'm still
curious what's causing the error in SUMPRODUCT.

"Bob Phillips" wrote:

Personally, I would fix the data and ensure there are no errors there.

--
HTH

-------

Bob Phillips
"Dave R." wrote in message
...
If any of the cells have VALUE errors, you'll get that message. Blank

cells
are OK. If the cell contains some text, you'll be fine with the way

your
formula is written.

You can count error messages in a range with;

=SUMPRODUCT(--ISERROR(A1:A100))


"benb" wrote in message
...
I have a column of dates and a corresponding column of values that

are
actually functions converting a foreign currency amount into USD. I

want
to
create a month-to-date total in a single cell by using SUMPRODUCT.

What
I
am
using is:




=SUMPRODUCT(--(YEAR($A$15:$A$1000)=YEAR($C$7)),--(MONTH($A$15:$A$1000)=MONTH
($C$7)),$B$15:$B$1000)

But I am getting the #VALUE! error message. Some of the cells in

the
dates
array are blank, and there may be a cell in the values array that

has an
error because the values are functions themselves. How can I fix

this?
If I
can assure that none of the cells in the value array have errors

will
that
make it easier?







  #6  
Old January 14th, 2005, 07:21 PM
JBoulton
external usenet poster
 
Posts: n/a
Default

You'll get that error if your arrays contain a non-numeric header. If row 15
contains the name of your field, for example.

"Bob Phillips" wrote:

Show us the SUMIF variation that works, and we might be able to figure it.

--
HTH

Bob Phillips

"benb" wrote in message
...
There are no errors, but I am still coming up with the #VALUE! error

message
using SUMPRODUCT(). I've tried a few things, changing the formula and

using
a dummy dataset, but I couldn't figure out why I was getting the error.
Fortunately I found a SUMIF variation that worked instead, but I'm still
curious what's causing the error in SUMPRODUCT.

"Bob Phillips" wrote:

Personally, I would fix the data and ensure there are no errors there.

--
HTH

-------

Bob Phillips
"Dave R." wrote in message
...
If any of the cells have VALUE errors, you'll get that message. Blank
cells
are OK. If the cell contains some text, you'll be fine with the way

your
formula is written.

You can count error messages in a range with;

=SUMPRODUCT(--ISERROR(A1:A100))


"benb" wrote in message
...
I have a column of dates and a corresponding column of values that

are
actually functions converting a foreign currency amount into USD. I
want
to
create a month-to-date total in a single cell by using SUMPRODUCT.

What
I
am
using is:




=SUMPRODUCT(--(YEAR($A$15:$A$1000)=YEAR($C$7)),--(MONTH($A$15:$A$1000)=MONTH
($C$7)),$B$15:$B$1000)

But I am getting the #VALUE! error message. Some of the cells in

the
dates
array are blank, and there may be a cell in the values array that

has an
error because the values are functions themselves. How can I fix

this?
If I
can assure that none of the cells in the value array have errors

will
that
make it easier?








  #7  
Old January 14th, 2005, 10:25 PM
benb
external usenet poster
 
Posts: n/a
Default

Someone suggested using =SUMIF(A:A,""&(TODAY()-DAY(TODAY())),B:B)

I adapted that into
=SUMPRODUCT(--($A$15:$A$1000($Z$7-DAY($Z$7))),--($A$15:$A$1000=$Z$7),Z$15:Z$1000)

This version worked. Something in the MONTH() and YEAR() was giving me the
#VALUE! error. I thought it might be the headers, but when I excluded those
from the array I still got the error. The experience has been worthwhile
though because it's forced me to learn much more about SUMPRODUCT.

"Bob Phillips" wrote:

Show us the SUMIF variation that works, and we might be able to figure it.

--
HTH

Bob Phillips

"benb" wrote in message
...
There are no errors, but I am still coming up with the #VALUE! error

message
using SUMPRODUCT(). I've tried a few things, changing the formula and

using
a dummy dataset, but I couldn't figure out why I was getting the error.
Fortunately I found a SUMIF variation that worked instead, but I'm still
curious what's causing the error in SUMPRODUCT.

"Bob Phillips" wrote:

Personally, I would fix the data and ensure there are no errors there.

--
HTH

-------

Bob Phillips
"Dave R." wrote in message
...
If any of the cells have VALUE errors, you'll get that message. Blank
cells
are OK. If the cell contains some text, you'll be fine with the way

your
formula is written.

You can count error messages in a range with;

=SUMPRODUCT(--ISERROR(A1:A100))


"benb" wrote in message
...
I have a column of dates and a corresponding column of values that

are
actually functions converting a foreign currency amount into USD. I
want
to
create a month-to-date total in a single cell by using SUMPRODUCT.

What
I
am
using is:




=SUMPRODUCT(--(YEAR($A$15:$A$1000)=YEAR($C$7)),--(MONTH($A$15:$A$1000)=MONTH
($C$7)),$B$15:$B$1000)

But I am getting the #VALUE! error message. Some of the cells in

the
dates
array are blank, and there may be a cell in the values array that

has an
error because the values are functions themselves. How can I fix

this?
If I
can assure that none of the cells in the value array have errors

will
that
make it easier?








 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a named range in a Sumproduct comparison Hari General Discussion 7 August 23rd, 2004 06:48 PM
SUMIF vs SUM(IF(..)) vs SUMPRODUCT Harlan Grove Worksheet Functions 7 July 1st, 2004 10:22 PM
SUMIF vs SUM(IF(..)) vs SUMPRODUCT Harlan Grove General Discussion 7 July 1st, 2004 10:22 PM
Sumproduct and zero's..help please www.ttdown.com Worksheet Functions 6 March 21st, 2004 01:19 PM
If & SumProduct Otto Moehrbach Worksheet Functions 6 November 14th, 2003 11:43 AM


All times are GMT +1. The time now is 09:21 AM.


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