LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel - Double Negatives (Past, Present and Future)

for this specific usage, wouldn't

=SUMPRODUCT(-(A1:A100="A"),-(B1:B100="B"))

Achieve the same and be even "faster" than

=SUMPRODUCT(--(A1:A100="A"),--(B1:B100="B"))

Surprised Mr. Grove or Aladan haven't raised this issue - or have they?


--
Regards,
Tom Ogilvy

"Frank Kabel" wrote in message
...
Hi
one of the common usages is to convert boolean values into numbers
(TRUE = 1, FALSE = 0)
e.g. the formula
=--FALSE = 0
=--TRUE = 1

often used within the SUMPRODUCT function to coerce the boolean values:
=SUMPRODUCT(--(A1:A100="A"),--(B1:B100="B"))

Another usage is to convert numbers which are returned from string
function to real numbers.
e.g. the function
=LEFT("1ABS",1)
will return 1 as STRING. You can't use this return in calculations
Though the formula
=--LEFT("1ABS",1)
will return a value.

In this case it replaces the function VALUE(string)


--
Regards
Frank Kabel
Frankfurt, Germany


TKT-Tang wrote:
Am interested to search for exemplary formulae incorporating
minus-minus signs thereof. However, deploying search criterion such

as
"--" ain't gotten no good return from the archives. Please show the
ways to search in-situ.

Also, would like to request enlightenment on situations whereby

Double
Negatives would be aptly applied in formulae.

Regards.






 
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
present value of "past" and future amounts Tim Excel Worksheet Functions 0 March 26th 09 02:54 AM
present value of a future amount xrbbaker Excel Worksheet Functions 4 September 11th 07 12:00 AM
Present value and future value Ted Metro Excel Worksheet Functions 6 April 7th 07 09:30 PM
How do I Calculate a future or past date in Excel? MosMash Excel Discussion (Misc queries) 2 July 6th 05 10:15 PM
calculating the future value of a present value se Excel Worksheet Functions 2 December 8th 04 03:42 PM


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