#1   Report Post  
Joe
 
Posts: n/a
Default Unary operators

I've noticed several posts which use the unary operators "--" before
implementing some function. Why is this done?

Here's an example:

=--(COUNTIF(A1,"CA*")0)

TIA,
--
Joe

VBA Automation/VB/C++/Web and DB development
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Check out

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

In article ,
Joe wrote:

I've noticed several posts which use the unary operators "--" before
implementing some function. Why is this done?

Here's an example:

=--(COUNTIF(A1,"CA*")0)

  #3   Report Post  
Duke Carey
 
Posts: n/a
Default

Great explanation! It helped me go from completely clueless to .. having
SOME understanding

"JE McGimpsey" wrote:

Check out

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

In article ,
Joe wrote:

I've noticed several posts which use the unary operators "--" before
implementing some function. Why is this done?

Here's an example:

=--(COUNTIF(A1,"CA*")0)


  #4   Report Post  
Fredrik Wahlgren
 
Posts: n/a
Default

Agreed! I didn't understand this either.

/Fredrik


"Duke Carey" wrote in message
...
Great explanation! It helped me go from completely clueless to .. having
SOME understanding

"JE McGimpsey" wrote:

Check out

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

In article ,
Joe wrote:

I've noticed several posts which use the unary operators "--" before
implementing some function. Why is this done?

Here's an example:

=--(COUNTIF(A1,"CA*")0)




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
Comparison Operators for IF statement. Shams Excel Worksheet Functions 1 February 14th 05 03:35 PM


All times are GMT +1. The time now is 01:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"