countif

jasman

Board Regular
Joined
Oct 30, 2010
Messages
141
Hi. I have f4 columns with "TRUE" & "FALSE" values in them. I am tryign to do a countif at the bottom of each to see how many "TRUE" vales there are in each column. Im using formula below but it only works for one of the columns and wont count the "TRUE"s in the other ...just gives answer as 0?

=COUNTIF(O7:O122,"TRUE")
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
If you want to count the "True's" in 4 columns your formula must include all columns such as
HTML:
=countif(L7:O122,"true")
 
Upvote 0
sorry i wasnt clear.... im doing the countif for each column at the bottom so I have four seperate counts
 
Upvote 0
then for column L it would be
HTML:
=COUNTIF(L7:L122,"TRUE")
column M would be
HTML:
=COUNTIF(M7:M122,"TRUE")
and so on
 
Upvote 0
If the TRUE's are a result of a formula, you won't need to put them in quotes:
=COUNTIF(O7:O122,TRUE)
 
Upvote 0
thats exactly what ive done but it doesnt work, only works for column O.

i have formulas in each of the columns which calculate the TRUE or FALSE outcome. could this have an affect?
 
Upvote 0
no --- if there is a "true" in the column the formula should count it -- check your spelling to make sure it is correct
 
Upvote 0
thats exactly what ive done but it doesnt work, only works for column O.

i have formulas in each of the columns which calculate the TRUE or FALSE outcome. could this have an affect?

Post the formula you currently have that returns TRUE or FALSE.
 
Upvote 0
ive checked and double checked its all consistent. the onyl thing is that column O has countif formula in it to caculate the TRUE or FALSE values, whereas the others are IF statements.

Thanks for your help...its driving me mad! :S
 
Upvote 0
Have you tried changing the "True" in your formula to "False" to see if it will count them
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,734
Members
452,939
Latest member
WCrawford

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