Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 129
Default True/False : 1/0

Hi,

I'm sure this is a simple query, but can you convert true/false returns into
1/0? I have a page full of either "true or false"'s, and it is much easier to
see where you are if you are just dealing with 1 or 0's.

Thanks,

Will
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default True/False : 1/0

Maybe a couple of Edit|Replaces would be the simplest way to convert them.

will wrote:

Hi,

I'm sure this is a simple query, but can you convert true/false returns into
1/0? I have a page full of either "true or false"'s, and it is much easier to
see where you are if you are just dealing with 1 or 0's.

Thanks,

Will


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 129
Default True/False : 1/0

Dave,

Thanks for the reply, but these values will be constantly changing so it
needs to be dynamic.

Will

"Dave Peterson" wrote:

Maybe a couple of Edit|Replaces would be the simplest way to convert them.

will wrote:

Hi,

I'm sure this is a simple query, but can you convert true/false returns into
1/0? I have a page full of either "true or false"'s, and it is much easier to
see where you are if you are just dealing with 1 or 0's.

Thanks,

Will


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default True/False : 1/0

=IF(YourOriginalFormula,1,0)

--
Kind regards,

Niek Otten

"will" wrote in message
...
Hi,

I'm sure this is a simple query, but can you convert true/false returns
into
1/0? I have a page full of either "true or false"'s, and it is much easier
to
see where you are if you are just dealing with 1 or 0's.

Thanks,

Will



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default True/False : 1/0

Will,
In Excel, multiply by 1 to change to numeric value

e.g in b1 put =a1*1

in VBA multiply by -1!

HTH

"will" wrote:

Dave,

Thanks for the reply, but these values will be constantly changing so it
needs to be dynamic.

Will

"Dave Peterson" wrote:

Maybe a couple of Edit|Replaces would be the simplest way to convert them.

will wrote:

Hi,

I'm sure this is a simple query, but can you convert true/false returns into
1/0? I have a page full of either "true or false"'s, and it is much easier to
see where you are if you are just dealing with 1 or 0's.

Thanks,

Will


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default True/False : 1/0

If TRUE/FALSE come out of an expression like:
=(1=1) this always gives true, then use:
=--(1=1) will convert to a number
--
Gary''s Student


"will" wrote:

Hi,

I'm sure this is a simple query, but can you convert true/false returns into
1/0? I have a page full of either "true or false"'s, and it is much easier to
see where you are if you are just dealing with 1 or 0's.

Thanks,

Will

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the best way to toggle between true and false in Excel? Hiall, My excel work involves a lot of toggling between true and false (booleantypes) ... and it's very repetitive... Is there a way to select a bunch ofcells, and press a key short-cu LunaMoon Excel Discussion (Misc queries) 9 July 29th 08 12:28 AM
Search for 2 true arguments and return true or false David Excel Discussion (Misc queries) 3 July 15th 06 10:18 AM
Function to return True/False if all are validated as True by ISNU Tetsuya Oguma Excel Worksheet Functions 2 March 15th 06 10:28 AM
Reverse false and combine with true true value Emmie99 Excel Worksheet Functions 5 August 17th 05 04:38 PM
True Or False, no matter what... it still displays the false statement rocky640[_2_] Excel Programming 2 May 13th 04 04:57 PM


All times are GMT +1. The time now is 03:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"