toshimarise
New Member
- Joined
- Feb 1, 2013
- Messages
- 21
Thank you in advance for your assistance.
I need to perform two related functions on a set of data. Here is a sample of the spreadsheet, which is actually around 500 lines long and will be growing in the future:
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Case 1[/TD]
[TD]Case 2[/TD]
[TD]Case 3[/TD]
[/TR]
[TR]
[TD]Aa23[/TD]
[TD]none (24)[/TD]
[TD]none (31)[/TD]
[TD]none (14)[/TD]
[/TR]
[TR]
[TD]Bb34[/TD]
[TD]7[/TD]
[TD]none (38)[/TD]
[TD]none (45)[/TD]
[/TR]
[TR]
[TD]Jj45[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Cc56[/TD]
[TD]4[/TD]
[TD]none (14)[/TD]
[TD]none (18)[/TD]
[/TR]
[TR]
[TD]GG67[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]none (15)[/TD]
[/TR]
[TR]
[TD]Zz78[/TD]
[TD]none (14)[/TD]
[TD]4[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
First, I need to count how many people (unique IDs) have a number greater than 0 in at least one of the columns, ignoring anything marked "none". In this case it should return "4".
Second, I need an average of the non-0 numbers, again ignoring anything marked "none". In this case it should return "4.2".
I am having a ridiculously hard time with this. I have tried a variety of sumproduct and countif solutions, and even one promising sumproduct(sign((etc)). But I just can't get my head around excluding text, excluding 0s, and only counting each row once, all at the same time.
Thanks!
I need to perform two related functions on a set of data. Here is a sample of the spreadsheet, which is actually around 500 lines long and will be growing in the future:
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Case 1[/TD]
[TD]Case 2[/TD]
[TD]Case 3[/TD]
[/TR]
[TR]
[TD]Aa23[/TD]
[TD]none (24)[/TD]
[TD]none (31)[/TD]
[TD]none (14)[/TD]
[/TR]
[TR]
[TD]Bb34[/TD]
[TD]7[/TD]
[TD]none (38)[/TD]
[TD]none (45)[/TD]
[/TR]
[TR]
[TD]Jj45[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Cc56[/TD]
[TD]4[/TD]
[TD]none (14)[/TD]
[TD]none (18)[/TD]
[/TR]
[TR]
[TD]GG67[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]none (15)[/TD]
[/TR]
[TR]
[TD]Zz78[/TD]
[TD]none (14)[/TD]
[TD]4[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
First, I need to count how many people (unique IDs) have a number greater than 0 in at least one of the columns, ignoring anything marked "none". In this case it should return "4".
Second, I need an average of the non-0 numbers, again ignoring anything marked "none". In this case it should return "4.2".
I am having a ridiculously hard time with this. I have tried a variety of sumproduct and countif solutions, and even one promising sumproduct(sign((etc)). But I just can't get my head around excluding text, excluding 0s, and only counting each row once, all at the same time.
Thanks!