How can you convert the false/true into 1/0 in Excel?

K

Ken Wright

=--Your_formula

or

=Your_formula*1

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------­------------------------------­----------------
It's easier to beg forgiveness than ask permission :)
------------------------------­------------------------------­----------------
 
R

Ron Coderre

Generally, 2 ways:

Either multiply by the number 1
ExampleS:
=(4=4) ->Returns TRUE
=(4=4)*1 ->Returns 1

=(5=4) ->Returns FALSE
=(5=4)*1 ->Returns 0

or

Prepend two minus signs
Example:
=(4=4) ->Returns TRUE
=--(4=4) ->Returns 1

=(5=4) ->Returns FALSE
=--(5=4) ->Returns 0

Does that help?


Regards,
Ron
 
Joined
Feb 28, 2016
Messages
2
Reaction score
0
Generally, 2 ways:

Either multiply by the number 1
ExampleS:
=(4=4) ->Returns TRUE
=(4=4)*1 ->Returns 1

=(5=4) ->Returns FALSE
=(5=4)*1 ->Returns 0

or

Prepend two minus signs
Example:
=(4=4) ->Returns TRUE
=--(4=4) ->Returns 1

=(5=4) ->Returns FALSE
=--(5=4) ->Returns 0

Does that help?


Regards,
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=21419
View this thread: http://www.excelforum.com/showthread.php?threadid=483679
Generally, 2 ways:

Either multiply by the number 1
ExampleS:
=(4=4) ->Returns TRUE
=(4=4)*1 ->Returns 1

=(5=4) ->Returns FALSE
=(5=4)*1 ->Returns 0

or

Prepend two minus signs
Example:
=(4=4) ->Returns TRUE
=--(4=4) ->Returns 1

=(5=4) ->Returns FALSE
=--(5=4) ->Returns 0

Does that help?


Regards,
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=21419
View this thread: http://www.excelforum.com/showthread.php?threadid=483679
 
Joined
Feb 28, 2016
Messages
2
Reaction score
0
Thank you Ron and Ken. I have been wondering how to do that for years ! but it has never been critical until now. I suppose the *1 solution is pretty obvious, even to a superannuated marine engineer, but I never managed to work it out for myself. All working tickety-boo now.

Old Possum
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top