Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.newusers,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 49
Default One of lifes little mystery?

IF function

if you omit the false parameter, the function returns "FALSE"

=IF(A1="Bob",TRUE)

so why doesn't it return "TRUE" so you can omit the true parameter

e.g

=IF(A1="Bob")

whilst everyone reading this post knows the answer (clue: it's either TRUE
or FALSE) - excel doesn't? - it kicks up syntax error

Doh!


  #2   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.newusers,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default One of lifes little mystery?

But you can use

=A1="Bob"

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"JethroUK©" wrote in message ...
| IF function
|
| if you omit the false parameter, the function returns "FALSE"
|
| =IF(A1="Bob",TRUE)
|
| so why doesn't it return "TRUE" so you can omit the true parameter
|
| e.g
|
| =IF(A1="Bob")
|
| whilst everyone reading this post knows the answer (clue: it's either TRUE
| or FALSE) - excel doesn't? - it kicks up syntax error
|
| Doh!
|
|


  #3   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.newusers,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default One of lifes little mystery?

"Niek Otten" wrote in message
...
But you can use

=A1="Bob"

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"JethroUK©" wrote in message
...
| IF function
|
| if you omit the false parameter, the function returns "FALSE"
|
| =IF(A1="Bob",TRUE)
|
| so why doesn't it return "TRUE" so you can omit the true parameter
|
| e.g
|
| =IF(A1="Bob")
|
| whilst everyone reading this post knows the answer (clue: it's either
TRUE
| or FALSE) - excel doesn't? - it kicks up syntax error
|
| Doh!
|
|

You forgot one: =A!<"Bob"
A B C D E
1 Bull FALSE =IF(A1="Bob") FALSE TRUE
1 Bob TRUE =IF(A1="Bob") TRUE FALSE
Formulas =IF(A1="Bob",TRUE) =IF(A1="Bob") =A1="Bob" =A!<"Bob"


  #4   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.newusers,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default One of lifes little mystery?

A1="Bob" will return FALSE then

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"PBalmanno" wrote in message
news:8EOVg.1067$BC6.432@fed1read01...
"Niek Otten" wrote in message
...
But you can use

=A1="Bob"

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"JethroUK©" wrote in message
...
| IF function
|
| if you omit the false parameter, the function returns "FALSE"
|
| =IF(A1="Bob",TRUE)
|
| so why doesn't it return "TRUE" so you can omit the true parameter
|
| e.g
|
| =IF(A1="Bob")
|
| whilst everyone reading this post knows the answer (clue: it's either
TRUE
| or FALSE) - excel doesn't? - it kicks up syntax error
|
| Doh!
|
|

You forgot one: =A!<"Bob"
A B C D E
1 Bull FALSE =IF(A1="Bob") FALSE TRUE
1 Bob TRUE =IF(A1="Bob") TRUE FALSE
Formulas =IF(A1="Bob",TRUE) =IF(A1="Bob") =A1="Bob" =A!<"Bob"




  #5   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.newusers,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default One of lifes little mystery?

"Bob Phillips" wrote in message
...
A1="Bob" will return FALSE then

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"PBalmanno" wrote in message
news:8EOVg.1067$BC6.432@fed1read01...
"Niek Otten" wrote in message
...
But you can use

=A1="Bob"

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"JethroUK©" wrote in message
...
| IF function
|
| if you omit the false parameter, the function returns "FALSE"
|
| =IF(A1="Bob",TRUE)
|
| so why doesn't it return "TRUE" so you can omit the true parameter
|
| e.g
|
| =IF(A1="Bob")
|
| whilst everyone reading this post knows the answer (clue: it's either
TRUE
| or FALSE) - excel doesn't? - it kicks up syntax error
|
| Doh!
|
|

You forgot one: =A!<"Bob"
A B C D E
1 Bull FALSE =IF(A1="Bob") FALSE TRUE
1 Bob TRUE =IF(A1="Bob") TRUE FALSE
Formulas =IF(A1="Bob",TRUE) =IF(A1="Bob") =A1="Bob" =A!<"Bob"



Conversely: =A!<"Bob" will return TRUE / FALSE as well.




  #6   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.newusers,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 49
Default One of lifes little mystery?

it still seems strage that the IF function doesn't need a false argument but
does need a true one


"PBalmanno" wrote in message
news:RKVVg.1116$BC6.563@fed1read01...
| "Bob Phillips" wrote in message
| ...
| A1="Bob" will return FALSE then
|
| --
| HTH
|
| Bob Phillips
|
| (replace somewhere in email address with gmail if mailing direct)
|
| "PBalmanno" wrote in message
| news:8EOVg.1067$BC6.432@fed1read01...
| "Niek Otten" wrote in message
| ...
| But you can use
|
| =A1="Bob"
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "JethroUK©" wrote in message
| ...
| | IF function
| |
| | if you omit the false parameter, the function returns "FALSE"
| |
| | =IF(A1="Bob",TRUE)
| |
| | so why doesn't it return "TRUE" so you can omit the true parameter
| |
| | e.g
| |
| | =IF(A1="Bob")
| |
| | whilst everyone reading this post knows the answer (clue: it's
either
| TRUE
| | or FALSE) - excel doesn't? - it kicks up syntax error
| |
| | Doh!
| |
| |
|
| You forgot one: =A!<"Bob"
| A B C D E
| 1 Bull FALSE =IF(A1="Bob") FALSE TRUE
| 1 Bob TRUE =IF(A1="Bob") TRUE FALSE
| Formulas =IF(A1="Bob",TRUE) =IF(A1="Bob") =A1="Bob" =A!<"Bob"
|
|
|
| Conversely: =A!<"Bob" will return TRUE / FALSE as well.
|
|


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions,microsoft.public.excel.newusers,microsoft.public.excel
external usenet poster
 
Posts: 208
Default One of lifes little mystery?

Both parameters are optional, but the firt comma is not...
=IF(A1="Bob",)
--
Festina Lente


"JethroUK©" wrote:

IF function

if you omit the false parameter, the function returns "FALSE"

=IF(A1="Bob",TRUE)

so why doesn't it return "TRUE" so you can omit the true parameter

e.g

=IF(A1="Bob")

whilst everyone reading this post knows the answer (clue: it's either TRUE
or FALSE) - excel doesn't? - it kicks up syntax error

Doh!



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions,microsoft.public.excel.newusers,microsoft.public.excel
external usenet poster
 
Posts: 208
Default One of lifes little mystery?

Ah !
Sorry, I got it wrong at first.
You are right, the first parameter is not really optional.

But it would not be a very useful entry with no parameters, would it ?
LOL
--
Festina Lente


"PapaDos" wrote:

Both parameters are optional, but the firt comma is not...
=IF(A1="Bob",)
--
Festina Lente


"JethroUK©" wrote:

IF function

if you omit the false parameter, the function returns "FALSE"

=IF(A1="Bob",TRUE)

so why doesn't it return "TRUE" so you can omit the true parameter

e.g

=IF(A1="Bob")

whilst everyone reading this post knows the answer (clue: it's either TRUE
or FALSE) - excel doesn't? - it kicks up syntax error

Doh!



  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions,microsoft.public.excel.newusers,microsoft.public.excel
external usenet poster
 
Posts: 49
Default One of lifes little mystery?


"PapaDos" wrote in message
...
| Ah !
| Sorry, I got it wrong at first.
| You are right, the first parameter is not really optional.
|
| But it would not be a very useful entry with no parameters, would it ?

Yes! if you merely need a TRUE or FALSE answer



| LOL
| --
| Festina Lente
|
|
| "PapaDos" wrote:
|
| Both parameters are optional, but the firt comma is not...
| =IF(A1="Bob",)
| --
| Festina Lente
|
|
| "JethroUK©" wrote:
|
| IF function
|
| if you omit the false parameter, the function returns "FALSE"
|
| =IF(A1="Bob",TRUE)
|
| so why doesn't it return "TRUE" so you can omit the true parameter
|
| e.g
|
| =IF(A1="Bob")
|
| whilst everyone reading this post knows the answer (clue: it's either
TRUE
| or FALSE) - excel doesn't? - it kicks up syntax error
|
| Doh!
|
|
|


  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions,microsoft.public.excel.newusers,microsoft.public.excel
external usenet poster
 
Posts: 208
Default One of lifes little mystery?

In that case, no need for the IF() at all, as already mentioned by others...
--
Festina Lente


"JethroUK©" wrote:


"PapaDos" wrote in message
...
| Ah !
| Sorry, I got it wrong at first.
| You are right, the first parameter is not really optional.
|
| But it would not be a very useful entry with no parameters, would it ?

Yes! if you merely need a TRUE or FALSE answer



| LOL
| --
| Festina Lente
|
|
| "PapaDos" wrote:
|
| Both parameters are optional, but the firt comma is not...
| =IF(A1="Bob",)
| --
| Festina Lente
|
|
| "JethroUK©" wrote:
|
| IF function
|
| if you omit the false parameter, the function returns "FALSE"
|
| =IF(A1="Bob",TRUE)
|
| so why doesn't it return "TRUE" so you can omit the true parameter
|
| e.g
|
| =IF(A1="Bob")
|
| whilst everyone reading this post knows the answer (clue: it's either
TRUE
| or FALSE) - excel doesn't? - it kicks up syntax error
|
| Doh!
|
|
|





  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions,microsoft.public.excel.newusers,microsoft.public.excel
external usenet poster
 
Posts: 49
Default One of lifes little mystery?

in that case you dont need 'most' of the XL functions


"PapaDos" wrote in message
...
| In that case, no need for the IF() at all, as already mentioned by
others...
| --
| Festina Lente
|
|
| "JethroUK©" wrote:
|
|
| "PapaDos" wrote in message
| ...
| | Ah !
| | Sorry, I got it wrong at first.
| | You are right, the first parameter is not really optional.
| |
| | But it would not be a very useful entry with no parameters, would it ?
|
| Yes! if you merely need a TRUE or FALSE answer
|
|
|
| | LOL
| | --
| | Festina Lente
| |
| |
| | "PapaDos" wrote:
| |
| | Both parameters are optional, but the firt comma is not...
| | =IF(A1="Bob",)
| | --
| | Festina Lente
| |
| |
| | "JethroUK©" wrote:
| |
| | IF function
| |
| | if you omit the false parameter, the function returns "FALSE"
| |
| | =IF(A1="Bob",TRUE)
| |
| | so why doesn't it return "TRUE" so you can omit the true parameter
| |
| | e.g
| |
| | =IF(A1="Bob")
| |
| | whilst everyone reading this post knows the answer (clue: it's
either
| TRUE
| | or FALSE) - excel doesn't? - it kicks up syntax error
| |
| | Doh!
| |
| |
| |
|
|
|


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
Mystery Cell Jim H. Excel Discussion (Misc queries) 4 March 24th 06 05:40 PM
Mystery ALT key character illudes all methods of extraction! HELP! bxc2739 Excel Discussion (Misc queries) 6 March 16th 06 08:12 PM
Print Preview Mystery KemS Charts and Charting in Excel 0 November 10th 05 11:22 PM
Mystery: System Error and blank squares Bettergains Excel Discussion (Misc queries) 0 September 7th 05 05:56 PM
mystery function called 'TABLE' SongBear Excel Worksheet Functions 7 January 7th 05 04:56 AM


All times are GMT +1. The time now is 09:13 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"