#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 128
Default Sumproduct error

I've got 2 worksheets in 1 workbook, one labelled PO and one labelled OCR.

In the PO worksheet, I've entered the following formula:
=SUMPRODUCT(--(OCR!A2:A65536=C4),--(OCR!D2:D65536=A1),--(OCR!V2:V65536))

It's only returning a value of £15,674, but it should be returning a value
of £251,537 (when checking the data manually).

I must be missing something with my formula - is there an obvious error?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Sumproduct error

Perhaps C4 or A1 contain numbers, but in the ranges some of the
numbers are actually text values (or vice versa). Or perhaps you have
text and some of the values in the ranges have extra spaces (which you
can't see, so it looks like they should match).

Hope this helps.

Pete

On Nov 11, 11:36*am, Sarah (OGI)
wrote:
I've got 2 worksheets in 1 workbook, one labelled PO and one labelled OCR..

In the PO worksheet, I've entered the following formula:
=SUMPRODUCT(--(OCR!A2:A65536=C4),--(OCR!D2:D65536=A1),--(OCR!V2:V65536))

It's only returning a value of £15,674, but it should be returning a value
of £251,537 (when checking the data manually).

I must be missing something with my formula - is there an obvious error?

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Sumproduct error

Sarah,

There's nothing wrong with the formula so it must be data problems. Put this
in w2
and drag down and it should evaluate as TRUE for your numbers. If it
evaluates as false then there not numbers

=isnumber(V2)

Mike

"Sarah (OGI)" wrote:

I've got 2 worksheets in 1 workbook, one labelled PO and one labelled OCR.

In the PO worksheet, I've entered the following formula:
=SUMPRODUCT(--(OCR!A2:A65536=C4),--(OCR!D2:D65536=A1),--(OCR!V2:V65536))

It's only returning a value of £15,674, but it should be returning a value
of £251,537 (when checking the data manually).

I must be missing something with my formula - is there an obvious error?

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Sumproduct error


For a well explained use of SUMPRODUCT look here
http://www.xldynamic.com/source/xld.SUMPRODUCT.html


--
The Code Cage Team

Regards,
The Code Cage Team
http://www.thecodecage.com
------------------------------------------------------------------------
The Code Cage Team's Profile: http://www.thecodecage.com/forumz/member.php?userid=2
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=27930

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 128
Default Sumproduct error

Thanks, Mike!

Using your idea, it appears that the culprit was actually column A - a
column of 4-digit values, but a mixture of numbers and text. I've changed
these to integers and it works fine now!!

Many thanks!

"Mike H" wrote:

Sarah,

There's nothing wrong with the formula so it must be data problems. Put this
in w2
and drag down and it should evaluate as TRUE for your numbers. If it
evaluates as false then there not numbers

=isnumber(V2)

Mike

"Sarah (OGI)" wrote:

I've got 2 worksheets in 1 workbook, one labelled PO and one labelled OCR.

In the PO worksheet, I've entered the following formula:
=SUMPRODUCT(--(OCR!A2:A65536=C4),--(OCR!D2:D65536=A1),--(OCR!V2:V65536))

It's only returning a value of £15,674, but it should be returning a value
of £251,537 (when checking the data manually).

I must be missing something with my formula - is there an obvious error?

Thanks

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 Error Kate Excel Discussion (Misc queries) 5 June 25th 08 02:37 PM
error in SUMPRODUCT Tufail Excel Discussion (Misc queries) 8 December 17th 07 12:03 AM
SUMPRODUCT #VALUE! Error juliejg1 Excel Worksheet Functions 2 December 13th 07 04:25 PM
Sumproduct value error Brad Excel Worksheet Functions 7 October 31st 06 09:47 PM
#ref error with Sumproduct [email protected] Excel Worksheet Functions 5 October 9th 06 07:00 PM


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