Boolean True/False values not recognised in Countifs formula

Higenbo

New Member
Joined
Mar 2, 2017
Messages
10
Hi,

I am running an SQL statement query via Azure directly into Excel.

The data is from Salesforce and some of the columns contain Boolean values shown as true or false (left aligned all lower case).

An example of the data set is below:

Salesman Converted Date
Fred true 02/01/2018
Jim false 05/01/2018
Billy true 06/01/2018


I want to count the number of instances of true for the month of January i.e. 2 conversions. When I compile a Countifs formula it doesn't recognise 'True' in my range.

If I click in the cells and hit Enter the true becomes TRUE and centre aligned. Then the formula works.

Any help converting the cells out of Boolean within a Countif formula would be really helpful.

Thanks
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hi,

Sorry should have mentioned.

I have date drivers so users can select a from and to date and then the countifs bring back the values from the data set for that period.

So my countifs currently looks like:

=Countifs(Date Column,">="&To Date Criteria Cell, Date Column,"<="&From Date Criteria Cell,Converted,"TRUE")

Can I use Sumproduct with changing criteria?

Thanks
 
Upvote 0
Hi,

Sorry should have mentioned.

I have date drivers so users can select a from and to date and then the countifs bring back the values from the data set for that period.

So my countifs currently looks like:

=Countifs(Date Column,">="&To Date Criteria Cell, Date Column,"<="&From Date Criteria Cell,Converted,"TRUE")

Can I use Sumproduct with changing criteria?

Thanks

=SUMPRODUCT(--$B$2:$B$4,--($C$2:$C$4-DAY($C$2:$C$4)+1=J2))

where J2 houses a first day date like 1/1/2018 indicative of a month of interest.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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