If "blank" then don't count in percentage calculation

mbritt

New Member
Joined
Aug 25, 2011
Messages
11
I would like to create an If/Then formula where I have a column of data (1 = yes) and (0 = No) where some cells are blank. Meaning there was neither a yes or no answer. I want to only calculate the percentages of the actual answers, not including the blank cells. How would I write a forumla for If cell is blank do not count it ... ? Have I said this correctly?
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
=countif(A1:A100,">""")/counta(A1:A100)....yields the percentage of actual answers out of the entire range.
 
Upvote 0
Hey guys.... neither one of those worked - most likely "user error" on my part .... first column of data is c5..c30 .... I switched c's for your a's.... HELP!!!!!!
 
Upvote 0
I need some of that Tangeray in your photo!!! Your formula worked but I got "0%" as my answer .... all those 1s and 0s didn't cooperate!!!! I feel so like the blonde I am!!!

Maybe I'm not analyzing the data properly....
 
Upvote 0
My results (loads of blanks and a few values)

Excel Workbook
CD
5Yes0.666667
6
7
8
9No
10
11
12
13Yes
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Sheet4
 
Upvote 0
OK, but my data has "1" for yes and "0" for no ... would it be better to change those to yes and no, actual words?
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,763
Members
452,940
Latest member
rootytrip

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top