ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Logical Value (https://www.excelbanter.com/excel-worksheet-functions/76927-logical-value.html)

At A Loss

Logical Value
 
When using a IF formula, one answer is false.
Can the word FALSE be changed to a zero?
Would appericate a "simple" example...
Thanks in advance


Logical Value
 
Hi
Something like:
=IF(A2=6,"Yes",0)

Andy.

"At A Loss" wrote in message
...
When using a IF formula, one answer is false.
Can the word FALSE be changed to a zero?
Would appericate a "simple" example...
Thanks in advance




Ron Coderre

Logical Value
 
Without an example of the formula you're using or what you're trying to
accomplish, I can only guess...

Perhaps something like this:

=IF(A1=5,1000,0)
That formula test if the value of A1 is 5.
If TRUE, then return 1000
If FALSE, then return 0

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"At A Loss" wrote:

When using a IF formula, one answer is false.
Can the word FALSE be changed to a zero?
Would appericate a "simple" example...
Thanks in advance


Gary''s Student

Logical Value
 
You can convert FALSE to zero as follows:

=(1=2) will return FALSE
=(1=2)*1 will return zero
--
Gary's Student


"At A Loss" wrote:

When using a IF formula, one answer is false.
Can the word FALSE be changed to a zero?
Would appericate a "simple" example...
Thanks in advance


At A Loss

Logical Value
 
Ron, Here is my formula:
=IF(G2=0,0,IF(G2=4,VLOOKUP(G2,J2:K8,2)))
Hope the formula makes sense!!
Appericate your time and help on this.

On Mon, 13 Mar 2006 07:49:27 -0800, Ron Coderre
wrote:

Without an example of the formula you're using or what you're trying to
accomplish, I can only guess...

Perhaps something like this:

=IF(A1=5,1000,0)
That formula test if the value of A1 is 5.
If TRUE, then return 1000
If FALSE, then return 0

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"At A Loss" wrote:

When using a IF formula, one answer is false.
Can the word FALSE be changed to a zero?
Would appericate a "simple" example...
Thanks in advance



Ron Coderre

Logical Value
 
Here you go:

=IF(G2=0,0,IF(G2=4,VLOOKUP(G2,J2:K8,2),0))

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"At A Loss" wrote:

Ron, Here is my formula:
=IF(G2=0,0,IF(G2=4,VLOOKUP(G2,J2:K8,2)))
Hope the formula makes sense!!
Appericate your time and help on this.

On Mon, 13 Mar 2006 07:49:27 -0800, Ron Coderre
wrote:

Without an example of the formula you're using or what you're trying to
accomplish, I can only guess...

Perhaps something like this:

=IF(A1=5,1000,0)
That formula test if the value of A1 is 5.
If TRUE, then return 1000
If FALSE, then return 0

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"At A Loss" wrote:

When using a IF formula, one answer is false.
Can the word FALSE be changed to a zero?
Would appericate a "simple" example...
Thanks in advance




Ron Coderre

Logical Value
 
Alternatively, couldn't you just use this?

=IF(G2=4,VLOOKUP(G2,J2:K8,2),0)

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Ron Coderre" wrote:

Here you go:

=IF(G2=0,0,IF(G2=4,VLOOKUP(G2,J2:K8,2),0))

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"At A Loss" wrote:

Ron, Here is my formula:
=IF(G2=0,0,IF(G2=4,VLOOKUP(G2,J2:K8,2)))
Hope the formula makes sense!!
Appericate your time and help on this.

On Mon, 13 Mar 2006 07:49:27 -0800, Ron Coderre
wrote:

Without an example of the formula you're using or what you're trying to
accomplish, I can only guess...

Perhaps something like this:

=IF(A1=5,1000,0)
That formula test if the value of A1 is 5.
If TRUE, then return 1000
If FALSE, then return 0

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"At A Loss" wrote:

When using a IF formula, one answer is false.
Can the word FALSE be changed to a zero?
Would appericate a "simple" example...
Thanks in advance




At A Loss

Logical Value
 
Ron, Used your formula. Appericate your time and help
Thanks!!

On Mon, 13 Mar 2006 08:27:06 -0800, Ron Coderre
wrote:

Alternatively, couldn't you just use this?

=IF(G2=4,VLOOKUP(G2,J2:K8,2),0)

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Ron Coderre" wrote:

Here you go:

=IF(G2=0,0,IF(G2=4,VLOOKUP(G2,J2:K8,2),0))

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"At A Loss" wrote:

Ron, Here is my formula:
=IF(G2=0,0,IF(G2=4,VLOOKUP(G2,J2:K8,2)))
Hope the formula makes sense!!
Appericate your time and help on this.

On Mon, 13 Mar 2006 07:49:27 -0800, Ron Coderre
wrote:

Without an example of the formula you're using or what you're trying to
accomplish, I can only guess...

Perhaps something like this:

=IF(A1=5,1000,0)
That formula test if the value of A1 is 5.
If TRUE, then return 1000
If FALSE, then return 0

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"At A Loss" wrote:

When using a IF formula, one answer is false.
Can the word FALSE be changed to a zero?
Would appericate a "simple" example...
Thanks in advance






All times are GMT +1. The time now is 06:08 AM.

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