#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 173
Default SUMPRODUCT Help

Here is my formula:

=SUMPRODUCT(('5-1'!$B$2:$B$1000="John Doe")&('5-1'!$D$2:$D$1000="Product
One")&('5-1'!$D$2:$D$1000="Product Two")*('5-1'!$G$2:$G$1000)).

The addition is off, the total should only be 13 but is counting 43.

Second, when I change the range from G2:G1000 to what it should be
G2:G10000, it gives me a #value error message.

What am I missing?

Thank you
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default SUMPRODUCT Help

RoadKill wrote:
Here is my formula:

=SUMPRODUCT(('5-1'!$B$2:$B$1000="John Doe")&('5-1'!$D$2:$D$1000="Product
One")&('5-1'!$D$2:$D$1000="Product Two")*('5-1'!$G$2:$G$1000)).

The addition is off, the total should only be 13 but is counting 43.

Second, when I change the range from G2:G1000 to what it should be
G2:G10000, it gives me a #value error message.

What am I missing?

Thank you



You should have "*" instead of "&".

There is probably text somewhere in G1001:G10000.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default SUMPRODUCT Help

Hi,
regarding your 2nd question, all the ranges has to match so you need to
enter 10000 in B and D as well
1s question was answered Glenn

"RoadKill" wrote:

Here is my formula:

=SUMPRODUCT(('5-1'!$B$2:$B$1000="John Doe")&('5-1'!$D$2:$D$1000="Product
One")&('5-1'!$D$2:$D$1000="Product Two")*('5-1'!$G$2:$G$1000)).

The addition is off, the total should only be 13 but is counting 43.

Second, when I change the range from G2:G1000 to what it should be
G2:G10000, it gives me a #value error message.

What am I missing?

Thank you

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 173
Default SUMPRODUCT Help

Eduardo, I realize that aspect as well but it gives the error message even
when adjusting all the B's and D's.

"Eduardo" wrote:

Hi,
regarding your 2nd question, all the ranges has to match so you need to
enter 10000 in B and D as well
1s question was answered Glenn

"RoadKill" wrote:

Here is my formula:

=SUMPRODUCT(('5-1'!$B$2:$B$1000="John Doe")&('5-1'!$D$2:$D$1000="Product
One")&('5-1'!$D$2:$D$1000="Product Two")*('5-1'!$G$2:$G$1000)).

The addition is off, the total should only be 13 but is counting 43.

Second, when I change the range from G2:G1000 to what it should be
G2:G10000, it gives me a #value error message.

What am I missing?

Thank you

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 173
Default SUMPRODUCT Help

Sorry, I did have a typo, it is actually:

=SUMPRODUCT(('5-1'!$B$2:$B$1000="John Doe")*('5-1'!$D$2:$D$1000="Product
One")*('5-1'!$D$2:$D$1000="Product Two")*('5-1'!$G$2:$G$1000)).

But it doesn't work properly either way.

"RoadKill" wrote:

Here is my formula:

=SUMPRODUCT(('5-1'!$B$2:$B$1000="John Doe")&('5-1'!$D$2:$D$1000="Product
One")&('5-1'!$D$2:$D$1000="Product Two")*('5-1'!$G$2:$G$1000)).

The addition is off, the total should only be 13 but is counting 43.

Second, when I change the range from G2:G1000 to what it should be
G2:G10000, it gives me a #value error message.

What am I missing?

Thank you



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SUMPRODUCT Help

Try it like this (I left out the sheet name so be sure to add it):

=SUMPRODUCT(--($B$2:$B$1000="John Doe"),($D$2:$D$1000="Product
One")+($D$2:$D$1000="Product Two"),$G$2:$G$1000)

--
Biff
Microsoft Excel MVP


"RoadKill" wrote in message
...
Here is my formula:

=SUMPRODUCT(('5-1'!$B$2:$B$1000="John Doe")&('5-1'!$D$2:$D$1000="Product
One")&('5-1'!$D$2:$D$1000="Product Two")*('5-1'!$G$2:$G$1000)).

The addition is off, the total should only be 13 but is counting 43.

Second, when I change the range from G2:G1000 to what it should be
G2:G10000, it gives me a #value error message.

What am I missing?

Thank you



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 173
Default SUMPRODUCT Help

That worked perfect. Thanks

"T. Valko" wrote:

Try it like this (I left out the sheet name so be sure to add it):

=SUMPRODUCT(--($B$2:$B$1000="John Doe"),($D$2:$D$1000="Product
One")+($D$2:$D$1000="Product Two"),$G$2:$G$1000)

--
Biff
Microsoft Excel MVP


"RoadKill" wrote in message
...
Here is my formula:

=SUMPRODUCT(('5-1'!$B$2:$B$1000="John Doe")&('5-1'!$D$2:$D$1000="Product
One")&('5-1'!$D$2:$D$1000="Product Two")*('5-1'!$G$2:$G$1000)).

The addition is off, the total should only be 13 but is counting 43.

Second, when I change the range from G2:G1000 to what it should be
G2:G10000, it gives me a #value error message.

What am I missing?

Thank you




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SUMPRODUCT Help

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"RoadKill" wrote in message
...
That worked perfect. Thanks

"T. Valko" wrote:

Try it like this (I left out the sheet name so be sure to add it):

=SUMPRODUCT(--($B$2:$B$1000="John Doe"),($D$2:$D$1000="Product
One")+($D$2:$D$1000="Product Two"),$G$2:$G$1000)

--
Biff
Microsoft Excel MVP


"RoadKill" wrote in message
...
Here is my formula:

=SUMPRODUCT(('5-1'!$B$2:$B$1000="John
Doe")&('5-1'!$D$2:$D$1000="Product
One")&('5-1'!$D$2:$D$1000="Product Two")*('5-1'!$G$2:$G$1000)).

The addition is off, the total should only be 13 but is counting 43.

Second, when I change the range from G2:G1000 to what it should be
G2:G10000, it gives me a #value error message.

What am I missing?

Thank you






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
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
Can I use SUMPRODUCT for this? cottage6 Excel Worksheet Functions 5 November 15th 05 10:09 PM
how to use sumproduct alias abuhasan Excel Worksheet Functions 1 November 15th 05 03:45 AM
sumproduct rhouchins Excel Worksheet Functions 1 November 1st 05 03:11 PM


All times are GMT +1. The time now is 12: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"