Help with a Count formula

Tigolivier

New Member
Joined
Sep 22, 2021
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have a set of data that I need to have a formula in my 1st row that will tell me the % of the cells that are filled in.

I achieve this with a =COUNTA pretty easily but there's some issues in a couple of columns where I expect some cells to be blank.

I'd like this formula to read in Column E and only consider cells that are "True", in other columns I will need the formula to only consider cells that are "False".

This will take me two formulas but I can't seem to work it out.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
I think we need more details. It would probably be best if you could post a small example of your data, along with the expected results of your data.
Seeing that should help clarify exactly how you want this to work.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Hi Joe4,
Here is the data sample, so the formula should live in Row1, in Column C you will see that I have True / False in there, based on that value I want the formula to give me the % of completion of the data.
So in E1, the formula should give me 100% because I want to validate that all my rows with "True" are filled out.
In F1, the formula should return 50%, because in that column I need all the rows with "False" filled out.
I understand this probably takes two formulas and not one, at this point I am more than ok with that.
Book2
ABCDEFGH
1Formula HereFormula HereFormula HereFormula HereFormula HereFormula HereFormula HereFormula Here
2BrandProduct CategoryTrue / FalseSKUTest Data 1Test Data 2Test Data 3Test Data 4
3FoodFruitTRUEBanana11
4FoodFruitFALSEBanana-1Bli1
5FoodFruitFALSEBanana-2Bla1
6FoodFruitFALSEBanana-3Blo1
7FoodFruitTRUEOrange12
8FoodFruitFALSEOrange-111
9FoodFruitFALSEOrange-221
10FoodFruitFALSEOrange-331
11FoodFruitFALSEOrange-441
12FoodFruitFALSEOrange-551
13FoodFruitFALSEOrange-661
14FoodFruitTRUECarrot13
15FoodFruitFALSECarrot-13
16FoodFruitFALSECarrot-23
17FoodFruitFALSECarrot-33
18FoodFruitTRUETomato14
19FoodFruitFALSETomato-15
20FoodFruitFALSETomato-25
21FoodFruitFALSETomato-35
22FoodFruitFALSETomato-45
23FoodFruitFALSETomato-55
24FoodFruitFALSETomato-65
Sheet1
 
Upvote 0
I am not quite sure I understand stand that in column E, you want the percentage of TRUE values with cells filled out in column E,
but in column F, you want the percentage of FALSE values with cells filled out in column F.
Maybe you want each column to alternate between TRUE/FALSE? Not sure your logic there.

However, these formula return what you want:

In cell E1:
Excel Formula:
=COUNTIFS($C:$C,TRUE,E:E,"<>")/COUNTIFS($C:$C,TRUE)

In cell F1:
Excel Formula:
=COUNTIFS($C:$C,FALSE,F:F,"<>")/COUNTIFS($C:$C,FALSE)

If it is truly an alternating check by column (TRUE/FALSE/TRUE/FALSE/, etc).
then you could put this one formula in cell E1 and copy across for all columns in that row:
Excel Formula:
=COUNTIFS($C:$C,ISODD(COLUMN()),E:E,"<>")/COUNTIFS($C:$C,ISODD(COLUMN()))
 
Upvote 0

Forum statistics

Threads
1,224,297
Messages
6,177,743
Members
452,797
Latest member
prophet4see

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