ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I change FALSE values to 0? (https://www.excelbanter.com/excel-discussion-misc-queries/38238-how-do-i-change-false-values-0-a.html)

Redleg40

How do I change FALSE values to 0?
 
How do change values of TRUE or FALSE to 0?

Jambruins

what is the formula you are using?


"Redleg40" wrote:

How do change values of TRUE or FALSE to 0?


Redleg40

=IF(AD7<0,AD7*-1)
&
=IF(AD13=0,AD13)

"Jambruins" wrote:

what is the formula you are using?


"Redleg40" wrote:

How do change values of TRUE or FALSE to 0?


MrShorty


Put a 0 in for the value_if_false argument. Standard IF syntax:
=IF(condition,value_if_true,value_if_false), so for your first formula:
=IF(AD7<0,AD7*-1,0)


--
MrShorty
------------------------------------------------------------------------
MrShorty's Profile: http://www.excelforum.com/member.php...o&userid=22181
View this thread: http://www.excelforum.com/showthread...hreadid=392143


Dave Peterson

=IF(AD7<0,AD7*-1,0)
&
=IF(AD13=0,AD13,0)

I'm not sure I understand about changing True to 0, though.

Redleg40 wrote:

=IF(AD7<0,AD7*-1)
&
=IF(AD13=0,AD13)

"Jambruins" wrote:

what is the formula you are using?


"Redleg40" wrote:

How do change values of TRUE or FALSE to 0?


--

Dave Peterson


All times are GMT +1. The time now is 07:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com