PC Review


Reply
Thread Tools Rate Thread

Coverting TRUE to 1

 
 
Jeff Granger
Guest
Posts: n/a
 
      11th Jun 2007
I have a table containing TRUE and FALSE values. Essentially I want to count
the number of TRUEs, ultimately in a pivot table.

Should I convert TRUE to 1 first, (=IF(A1=TRUE,1,0)(??) or is there a way
to get a pivot table to cout the number of TRUEs in a category without
having to convert first?

More elegant solutions will also be considered!

Jeff


 
Reply With Quote
 
 
 
 
Roger Govier
Guest
Posts: n/a
 
      11th Jun 2007
Hi Jeff

Whatever your formula is that returns TRUE or FALSE, wrap it inside
parentheses with a double unary minus in front.
This will coerce the True and False to 1's and 0.'s directly

=--( your_Formula)

--
Regards

Roger Govier


"Jeff Granger" <(E-Mail Removed)> wrote in message
news:Y-(E-Mail Removed)...
>I have a table containing TRUE and FALSE values. Essentially I want to
>count the number of TRUEs, ultimately in a pivot table.
>
> Should I convert TRUE to 1 first, (=IF(A1=TRUE,1,0)(??) or is there
> a way to get a pivot table to cout the number of TRUEs in a category
> without having to convert first?
>
> More elegant solutions will also be considered!
>
> Jeff
>



 
Reply With Quote
 
Jeff Granger
Guest
Posts: n/a
 
      11th Jun 2007
Hi Roger

Now, that one I would never have discovered in a million years!

Thanks

Jeff


"Roger Govier" <(E-Mail Removed)> wrote in message
news:%23fApz%(E-Mail Removed)...
> Hi Jeff
>
> Whatever your formula is that returns TRUE or FALSE, wrap it inside
> parentheses with a double unary minus in front.
> This will coerce the True and False to 1's and 0.'s directly
>
> =--( your_Formula)
>
> --
> Regards
>
> Roger Govier
>
>
> "Jeff Granger" <(E-Mail Removed)> wrote in message
> news:Y-(E-Mail Removed)...
>>I have a table containing TRUE and FALSE values. Essentially I want to
>>count the number of TRUEs, ultimately in a pivot table.
>>
>> Should I convert TRUE to 1 first, (=IF(A1=TRUE,1,0)(??) or is there a
>> way to get a pivot table to cout the number of TRUEs in a category
>> without having to convert first?
>>
>> More elegant solutions will also be considered!
>>
>> Jeff
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stored Query - Criteria if box = true, => true, if box = false => BlueWolverine Microsoft Access Forms 1 4th Aug 2008 09:13 PM
RE: Page.User.IsInRole True for AD group in VS.NET not true on samemachine once published wildman@noclient.net Microsoft ASP .NET 0 10th Mar 2008 08:54 PM
Process.ExitCode returns InvalidOperationException when starting process with RedirectStandardInput = true, RedirectStandardError = true, RedirectStandardOutput = true; SMichal Microsoft Dot NET Framework 0 8th Sep 2006 07:28 AM
Search for 2 true arguments and return true or false =?Utf-8?B?RGF2aWQ=?= Microsoft Excel Misc 3 15th Jul 2006 10:18 AM
Function to return True/False if all are validated as True by ISNU =?Utf-8?B?VGV0c3V5YSBPZ3VtYQ==?= Microsoft Excel Worksheet Functions 2 15th Mar 2006 10:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:46 AM.