Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 113
Default Sumproduct #Value! Problem

I have a sumproduct formula that is returning #Value! when the range includes
cells with a "-" instead of a zero. How can I get around this so that it
treats the "-" like zeros? My formula:

=SUMPRODUCT((Data!A70:A78=Sheet1!B72)*(Data!H70:H7 8))

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Sumproduct #Value! Problem

Use a custom format, for instance

0.00;-0.00;"-"

will display zero as -

or if these are money use accounting format


--


Regards,


Peo Sjoblom


"deeds" wrote in message
...
I have a sumproduct formula that is returning #Value! when the range
includes
cells with a "-" instead of a zero. How can I get around this so that it
treats the "-" like zeros? My formula:

=SUMPRODUCT((Data!A70:A78=Sheet1!B72)*(Data!H70:H7 8))

Thanks in advance



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Sumproduct #Value! Problem

Not sure I completely understand you, but maybe something like this:

=SUMPRODUCT(--(Data!A70:A78=Sheet1!B72)+(Data!A70:A78="-"),(Data!H70:H78))

HTH,
Paul

--

"deeds" wrote in message
...
I have a sumproduct formula that is returning #Value! when the range
includes
cells with a "-" instead of a zero. How can I get around this so that it
treats the "-" like zeros? My formula:

=SUMPRODUCT((Data!A70:A78=Sheet1!B72)*(Data!H70:H7 8))

Thanks in advance



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 113
Default Sumproduct #Value! Problem

Thanks...I just noticed these are formated as text....I tried your custom
format below...didn't work. Is there any way I can convert these to numbers
and make them zeros? Thanks again

"Peo Sjoblom" wrote:

Use a custom format, for instance

0.00;-0.00;"-"

will display zero as -

or if these are money use accounting format


--


Regards,


Peo Sjoblom


"deeds" wrote in message
...
I have a sumproduct formula that is returning #Value! when the range
includes
cells with a "-" instead of a zero. How can I get around this so that it
treats the "-" like zeros? My formula:

=SUMPRODUCT((Data!A70:A78=Sheet1!B72)*(Data!H70:H7 8))

Thanks in advance




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Sumproduct #Value! Problem

If they are text format and not general with text in them, do an
editreplace and replace - with 0
after you have change the format to the custom one


--


Regards,


Peo Sjoblom



"deeds" wrote in message
...
Thanks...I just noticed these are formated as text....I tried your custom
format below...didn't work. Is there any way I can convert these to
numbers
and make them zeros? Thanks again

"Peo Sjoblom" wrote:

Use a custom format, for instance

0.00;-0.00;"-"

will display zero as -

or if these are money use accounting format


--


Regards,


Peo Sjoblom


"deeds" wrote in message
...
I have a sumproduct formula that is returning #Value! when the range
includes
cells with a "-" instead of a zero. How can I get around this so that
it
treats the "-" like zeros? My formula:

=SUMPRODUCT((Data!A70:A78=Sheet1!B72)*(Data!H70:H7 8))

Thanks in advance








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Sumproduct #Value! Problem

=SUMPRODUCT(--(Data!A70:A78=Sheet1!B72),Data!H70:H78)

With this syntax, text will be ignored/treated as 0.



deeds wrote:

I have a sumproduct formula that is returning #Value! when the range includes
cells with a "-" instead of a zero. How can I get around this so that it
treats the "-" like zeros? My formula:

=SUMPRODUCT((Data!A70:A78=Sheet1!B72)*(Data!H70:H7 8))

Thanks in advance


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 113
Default Sumproduct #Value! Problem

Excellent! This works perfect. Thanks much!

"PCLIVE" wrote:

Not sure I completely understand you, but maybe something like this:

=SUMPRODUCT(--(Data!A70:A78=Sheet1!B72)+(Data!A70:A78="-"),(Data!H70:H78))

HTH,
Paul

--

"deeds" wrote in message
...
I have a sumproduct formula that is returning #Value! when the range
includes
cells with a "-" instead of a zero. How can I get around this so that it
treats the "-" like zeros? My formula:

=SUMPRODUCT((Data!A70:A78=Sheet1!B72)*(Data!H70:H7 8))

Thanks in advance




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 113
Default Sumproduct #Value! Problem

That would work.....thanks for your help!

"Peo Sjoblom" wrote:

If they are text format and not general with text in them, do an
editreplace and replace - with 0
after you have change the format to the custom one


--


Regards,


Peo Sjoblom



"deeds" wrote in message
...
Thanks...I just noticed these are formated as text....I tried your custom
format below...didn't work. Is there any way I can convert these to
numbers
and make them zeros? Thanks again

"Peo Sjoblom" wrote:

Use a custom format, for instance

0.00;-0.00;"-"

will display zero as -

or if these are money use accounting format


--


Regards,


Peo Sjoblom


"deeds" wrote in message
...
I have a sumproduct formula that is returning #Value! when the range
includes
cells with a "-" instead of a zero. How can I get around this so that
it
treats the "-" like zeros? My formula:

=SUMPRODUCT((Data!A70:A78=Sheet1!B72)*(Data!H70:H7 8))

Thanks in advance






  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 113
Default Sumproduct #Value! Problem

Even better....thanks for the solution!

"Dave Peterson" wrote:

=SUMPRODUCT(--(Data!A70:A78=Sheet1!B72),Data!H70:H78)

With this syntax, text will be ignored/treated as 0.



deeds wrote:

I have a sumproduct formula that is returning #Value! when the range includes
cells with a "-" instead of a zero. How can I get around this so that it
treats the "-" like zeros? My formula:

=SUMPRODUCT((Data!A70:A78=Sheet1!B72)*(Data!H70:H7 8))

Thanks in advance


--

Dave Peterson

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
Problem using SUMPRODUCT JoAnn New Users to Excel 1 April 22nd 08 08:57 PM
sumproduct problem nada Excel Worksheet Functions 4 April 3rd 08 09:17 AM
sumproduct problem andy New Users to Excel 2 March 29th 06 01:52 PM
sumproduct problem christophe meresse Excel Worksheet Functions 3 July 30th 05 02:23 PM
Another Sumproduct & #N/A problem Dave Davis Excel Worksheet Functions 3 January 10th 05 03:59 PM


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