Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / February 2007

Tip: Looking for answers? Try searching our database.

The '" -- " before a function

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ComicFly - 07 Feb 2007 02:16 GMT
What is the name of this symbol and what is it do when placed in front of a
function name.  ie.  --isnumber........

Thanks
T. Valko - 07 Feb 2007 02:24 GMT
See these:

http://mcgimpsey.com/excel/formulae/doubleneg.html

http://xldynamic.com/source/xld.SUMPRODUCT.html

Biff

> What is the name of this symbol and what is it do when placed in front of
> a
> function name.  ie.  --isnumber........
>
> Thanks
ComicFly - 08 Feb 2007 04:14 GMT
Biff,

Thanks for the guidelines / direction on the suggested websites.  

Comicfly

> See these:
>
[quoted text clipped - 9 lines]
> >
> > Thanks
Ron Coderre - 07 Feb 2007 02:27 GMT
When you use a Boolean formula (a formula that returns TRUE or FALSE), Excel
returns those values. If the formula returns "numeric text", Excel will
treat it AS text. To coerce the conversion from Boolean to Numeric, or from
"numeric text" to Numeric, you need to apply an arithmetic operator. The
generally accepted convention is to use a double minus sign (--).

It works this way:
The negative of a value reverses the sign.
The negative of that value restores the sign.

Example:
RIGHT("W1000",4) returns with the *word* "1000"
-RIGHT("W1000",4) converts "1000" to the number -1000
--RIGHT("W1000",4) converts the negative number to 1000

In the case of boolean values, the dbl-neg converts TRUE and FALSE to 1 and
0, respectively.

You could achieve the same results by multiplying a value by 1, but the
dbl-neg indicates to knowledgable users that a "type conversion" is being
effected.

Does that help?
***********
Regards,
Ron

XL2002, WinXP

> What is the name of this symbol and what is it do when placed in front of a
> function name.  ie.  --isnumber........
>
> Thanks
ComicFly - 08 Feb 2007 04:14 GMT
Ron,

Thanks for the great explanation.  It makes alot of sense.

Comicfly

> When you use a Boolean formula (a formula that returns TRUE or FALSE), Excel
> returns those values. If the formula returns "numeric text", Excel will
[quoted text clipped - 29 lines]
> >
> > Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.