Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default another sumproduct with #value error...

Hello,

I'm trying to compare 7 columns in two worksheets, containing text, numbers
and dates. I found here a very helpful formula with sumproduct that woked on
my trial spreadsheet, but returns a #value error on the real thing.

The formula is:

=SUMPRODUCT(--(Sheet2!$A$1:$A10=A1),--(Sheet2!$B$1:$B10=B1),--(Sheet2!$C$1:$C10=C1),--(Sheet2!$D$1:$D10=D1),--(Sheet2!$E$1:$E34=E1),--(Sheet2!$F$1:$F10=F1),Sheet2!G$1:$G$10)

Any ideas what I'm doing wrong?

Thanks,
Maya
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default another sumproduct with #value error...

Try the below. The range should be same

=SUMPRODUCT(--(Sheet2!$A$1:$A10=A1),--(Sheet2!$B$1:$B10=B1),
--(Sheet2!$C$1:$C10=C1),--(Sheet2!$D$1:$D10=D1),--(Sheet2!$E$1:$E10=E1),--(Sheet2!$F$1:$F10=F1),Sheet2!G$1:$G$10)

If this post helps click Yes
---------------
Jacob Skaria


"Maya" wrote:

Hello,

I'm trying to compare 7 columns in two worksheets, containing text, numbers
and dates. I found here a very helpful formula with sumproduct that woked on
my trial spreadsheet, but returns a #value error on the real thing.

The formula is:

=SUMPRODUCT(--(Sheet2!$A$1:$A10=A1),--(Sheet2!$B$1:$B10=B1),--(Sheet2!$C$1:$C10=C1),--(Sheet2!$D$1:$D10=D1),--(Sheet2!$E$1:$E34=E1),--(Sheet2!$F$1:$F10=F1),Sheet2!G$1:$G$10)

Any ideas what I'm doing wrong?

Thanks,
Maya

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default another sumproduct with #value error...

Hi Jacob,

Thanks for this!

I corrected the range to be the same and now I get a 0 instead of the value
in column G. My row 1 was copied from Sheet2 row 1 so I'm positive they do
match. any more thoughts?

Many thanks
Maya

"Jacob Skaria" wrote:

Try the below. The range should be same

=SUMPRODUCT(--(Sheet2!$A$1:$A10=A1),--(Sheet2!$B$1:$B10=B1),
--(Sheet2!$C$1:$C10=C1),--(Sheet2!$D$1:$D10=D1),--(Sheet2!$E$1:$E10=E1),--(Sheet2!$F$1:$F10=F1),Sheet2!G$1:$G$10)

If this post helps click Yes
---------------
Jacob Skaria


"Maya" wrote:

Hello,

I'm trying to compare 7 columns in two worksheets, containing text, numbers
and dates. I found here a very helpful formula with sumproduct that woked on
my trial spreadsheet, but returns a #value error on the real thing.

The formula is:

=SUMPRODUCT(--(Sheet2!$A$1:$A10=A1),--(Sheet2!$B$1:$B10=B1),--(Sheet2!$C$1:$C10=C1),--(Sheet2!$D$1:$D10=D1),--(Sheet2!$E$1:$E34=E1),--(Sheet2!$F$1:$F10=F1),Sheet2!G$1:$G$10)

Any ideas what I'm doing wrong?

Thanks,
Maya

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default another sumproduct with #value error...

... I get a 0 instead of the value in column G.
My row 1 was copied from Sheet2 row 1 so I'm positive they do match.


Could be that the nums in col G are text nums
Try an "+0" to col G to coerce it to sum correctly, viz make it:
... ,Sheet2!G$1:$G$10+0)

--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default another sumproduct with #value error...

you're a star Max - it works perfectly now!

Thanks to Jacob, Max and Eduardo for taking the time to help!

Maya
www.concern-universal.org

"Max" wrote:

... I get a 0 instead of the value in column G.
My row 1 was copied from Sheet2 row 1 so I'm positive they do match.


Could be that the nums in col G are text nums
Try an "+0" to col G to coerce it to sum correctly, viz make it:
... ,Sheet2!G$1:$G$10+0)

--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default another sumproduct with #value error...

Hi,
Range should be the same in each component of the formula try

=SUMPRODUCT(--(Sheet2!$A$1:$A34=A1),--(Sheet2!$B$1:$B34=B1),--(Sheet2!$C$1:$C34=C1),--(Sheet2!$D$1:$D34=D1),--(Sheet2!$E$1:$E34=E1),--(Sheet2!$F$1:$F34=F1),Sheet2!G$1:$G$34)
"Maya" wrote:

Hello,

I'm trying to compare 7 columns in two worksheets, containing text, numbers
and dates. I found here a very helpful formula with sumproduct that woked on
my trial spreadsheet, but returns a #value error on the real thing.

The formula is:

=SUMPRODUCT(--(Sheet2!$A$1:$A10=A1),--(Sheet2!$B$1:$B10=B1),--(Sheet2!$C$1:$C10=C1),--(Sheet2!$D$1:$D10=D1),--(Sheet2!$E$1:$E34=E1),--(Sheet2!$F$1:$F10=F1),Sheet2!G$1:$G$10)

Any ideas what I'm doing wrong?

Thanks,
Maya

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
Why an error on Sumproduct? Madduck Excel Discussion (Misc queries) 3 August 29th 07 04:10 AM
SUMPRODUCT #N/A error R Ormerod Excel Discussion (Misc queries) 7 April 14th 07 02:56 AM
Sumproduct value error Brad Excel Worksheet Functions 7 October 31st 06 09:47 PM
Sumproduct error nospaminlich Excel Worksheet Functions 0 March 1st 05 06:48 PM
Sumproduct #num error Dominique Feteau Excel Worksheet Functions 2 December 19th 04 09:43 PM


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