The Grim Discovery
Board Regular
- Joined
- Jan 23, 2015
- Messages
- 244
- Office Version
- 365
- Platform
- Windows
Hiya
This table is representative of a larger data set I'm working with. I want to calculate the number of yes / (yes+no)%. I wondered if I could use a named range by highlighting only rows of data which were relevant and ignore those that were blank or contained numerical .
But Excel didn't like my new formula (where namedrange is A1:G1, A3:G3 & A5:G5).
=(COUNTIF(namedrange,"yes")/(COUNTIF(namedrange,"yes")+COUNTIF(namedrange,"no"))%
Can this be done?
Thanks
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]yes[/TD]
[TD]no[/TD]
[TD]n/a[/TD]
[TD]yes[/TD]
[TD]yes[/TD]
[TD]no[/TD]
[TD]n/a[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]25[/TD]
[TD]40[/TD]
[TD]46[/TD]
[TD]38[/TD]
[TD]71[/TD]
[TD]25[/TD]
[TD]47[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]yes[/TD]
[TD]no[/TD]
[TD]n/a[/TD]
[TD]n/a[/TD]
[TD]n/a[/TD]
[TD]yes[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]no[/TD]
[TD]n/a[/TD]
[TD]yes[/TD]
[TD]yes[/TD]
[TD]n/a[/TD]
[TD]no[/TD]
[TD]no[/TD]
[/TR]
</tbody>[/TABLE]
This table is representative of a larger data set I'm working with. I want to calculate the number of yes / (yes+no)%. I wondered if I could use a named range by highlighting only rows of data which were relevant and ignore those that were blank or contained numerical .
But Excel didn't like my new formula (where namedrange is A1:G1, A3:G3 & A5:G5).
=(COUNTIF(namedrange,"yes")/(COUNTIF(namedrange,"yes")+COUNTIF(namedrange,"no"))%
Can this be done?
Thanks
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]yes[/TD]
[TD]no[/TD]
[TD]n/a[/TD]
[TD]yes[/TD]
[TD]yes[/TD]
[TD]no[/TD]
[TD]n/a[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]25[/TD]
[TD]40[/TD]
[TD]46[/TD]
[TD]38[/TD]
[TD]71[/TD]
[TD]25[/TD]
[TD]47[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]yes[/TD]
[TD]no[/TD]
[TD]n/a[/TD]
[TD]n/a[/TD]
[TD]n/a[/TD]
[TD]yes[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]no[/TD]
[TD]n/a[/TD]
[TD]yes[/TD]
[TD]yes[/TD]
[TD]n/a[/TD]
[TD]no[/TD]
[TD]no[/TD]
[/TR]
</tbody>[/TABLE]