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 Using Sumproduct when some of the values are null

I am having a problem using Sumproduct when some of the cells have
null values. I will try to describe the problem. Please let me know
if
you need additional information. Do any of you have any ideas of how
I
can fix that sumproduct to get it to work?

A B C
Row Trend Claims
5 Emergency $0
6 Emergency $0
7 Emergency $0
8 Emergency 81.68% $24,444
9 Emergency 35.00% $164,758
10 Emergency 35.00% $215,237
11 Emergency 22.73% $105,059
12 Emergency 8.46% $53,760

20 Emergency $563,258

My goal is to calculate an aggregate trend for the Emergency Category
excluding those rows that are null trend in cell b20. I tried the
following formula:
SUMPRODUCT((A20=A5:A12)*(A5:A12)*b5:b12)/c20
The result s "#Value"
Do you know how to get this to work?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 905
Default Using Sumproduct when some of the values are null

See your thread in m.p.excel.

Do not multipost or split threads, especially when there is already people
trying help you. It serves no useful purpose, and it can waste time since
responders do not benefit from the other context.


----- original message -----

"SanCarlosCyclist" wrote in message
...
I am having a problem using Sumproduct when some of the cells have
null values. I will try to describe the problem. Please let me know
if
you need additional information. Do any of you have any ideas of how
I
can fix that sumproduct to get it to work?

A B C
Row Trend Claims
5 Emergency $0
6 Emergency $0
7 Emergency $0
8 Emergency 81.68% $24,444
9 Emergency 35.00% $164,758
10 Emergency 35.00% $215,237
11 Emergency 22.73% $105,059
12 Emergency 8.46% $53,760

20 Emergency $563,258

My goal is to calculate an aggregate trend for the Emergency Category
excluding those rows that are null trend in cell b20. I tried the
following formula:
SUMPRODUCT((A20=A5:A12)*(A5:A12)*b5:b12)/c20
The result s "#Value"
Do you know how to get this to work?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 50
Default Using Sumproduct when some of the values are null

This will work if you expect a result of 42.32%:
=SUMPRODUCT(--(A20=A5:A12),(B5:B12),(C5:C12))/C20



"SanCarlosCyclist" wrote:

I am having a problem using Sumproduct when some of the cells have
null values. I will try to describe the problem. Please let me know
if
you need additional information. Do any of you have any ideas of how
I
can fix that sumproduct to get it to work?

A B C
Row Trend Claims
5 Emergency $0
6 Emergency $0
7 Emergency $0
8 Emergency 81.68% $24,444
9 Emergency 35.00% $164,758
10 Emergency 35.00% $215,237
11 Emergency 22.73% $105,059
12 Emergency 8.46% $53,760

20 Emergency $563,258

My goal is to calculate an aggregate trend for the Emergency Category
excluding those rows that are null trend in cell b20. I tried the
following formula:
SUMPRODUCT((A20=A5:A12)*(A5:A12)*b5:b12)/c20
The result s "#Value"
Do you know how to get this to work?
.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Using Sumproduct when some of the values are null

On Mar 23, 1:45*pm, JBoulton
wrote:
This will work if you expect a result of 42.32%:
=SUMPRODUCT(--(A20=A5:A12),(B5:B12),(C5:C12))/C20



"SanCarlosCyclist" wrote:
I am having a problem using Sumproduct when some of the cells have
null values. I will try to describe the problem. Please let me know
if
you need additional information. Do any of you have any ideas of how
I
can fix that sumproduct to get it to work?


* * * * * A * * * * * * * * * * B * * * * C
Row * * * * * * * * * * * * Trend * * Claims
5 * *Emergency * * * * * * * * * * * * *$0
6 * *Emergency * * * * * * * * * * * * *$0
7 * *Emergency * * * * * * * * * * * * *$0
8 * *Emergency * * * 81.68% * * *$24,444
9 * *Emergency * * * 35.00% * * *$164,758
10 * Emergency * * * 35.00% * * *$215,237
11 * Emergency * * * 22.73% * * *$105,059
12 * Emergency * * * 8.46% * * * $53,760


20 * *Emergency * * * * * * * * * * * * $563,258


My goal is to calculate an aggregate trend for the Emergency Category
excluding those rows that are null trend in cell b20. I tried the
following formula:
SUMPRODUCT((A20=A5:A12)*(A5:A12)*b5:b12)/c20
The result s "#Value"
Do you know how to get this to work?
.- Hide quoted text -


- Show quoted text -


Yesssssssssssssssss, it worked!! Woohoooooo!!!! Thanks so much for
your help. This formula was driving me crazy.
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 905
Default Using Sumproduct when some of the values are null

"SanCarlosCyclist" wrote:
On Mar 23, 1:45 pm,
JBoulton wrote:
This will work if you expect a result of 42.32%:
=SUMPRODUCT(--(A20=A5:A12),(B5:B12),(C5:C12))/C20

[....]
Yesssssssssssssssss, it worked!! Woohoooooo!!!!


Exactly the solution I provided and you read an hour earlier in the other
thread. I'm glad you finally tried it.

FYI, there is no need for the parentheses around the ranges. The best way
to write that is:

=SUMPRODUCT(--(A20=A5:A12),B5:B12,C5:C12)/C20


----- original message -----

"SanCarlosCyclist" wrote in message
...
On Mar 23, 1:45 pm, JBoulton
wrote:
This will work if you expect a result of 42.32%:
=SUMPRODUCT(--(A20=A5:A12),(B5:B12),(C5:C12))/C20



"SanCarlosCyclist" wrote:
I am having a problem using Sumproduct when some of the cells have
null values. I will try to describe the problem. Please let me know
if
you need additional information. Do any of you have any ideas of how
I
can fix that sumproduct to get it to work?


A B C
Row Trend Claims
5 Emergency $0
6 Emergency $0
7 Emergency $0
8 Emergency 81.68% $24,444
9 Emergency 35.00% $164,758
10 Emergency 35.00% $215,237
11 Emergency 22.73% $105,059
12 Emergency 8.46% $53,760


20 Emergency $563,258


My goal is to calculate an aggregate trend for the Emergency Category
excluding those rows that are null trend in cell b20. I tried the
following formula:
SUMPRODUCT((A20=A5:A12)*(A5:A12)*b5:b12)/c20
The result s "#Value"
Do you know how to get this to work?
.- Hide quoted text -


- Show quoted text -


Yesssssssssssssssss, it worked!! Woohoooooo!!!! Thanks so much for
your help. This formula was driving me crazy.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Using Sumproduct when some of the values are null

Thanks so much Joe User and JBoulton for your help.
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
How to replace null values with zero? Eric Setting up and Configuration of Excel 2 April 28th 23 03:43 AM
If values of Cell are Null........... Saz New Users to Excel 1 April 25th 08 09:03 AM
Trouble with null values Tazzy via OfficeKB.com Excel Worksheet Functions 6 December 6th 07 11:23 AM
sum if - null values DC Excel Discussion (Misc queries) 1 October 16th 06 05:56 PM
return a " " for null values David# Excel Worksheet Functions 2 January 21st 05 06:47 PM


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

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"