LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #17   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 620
Default Macro start and finish date from rows

Well, I'm not replying MVPly, and some would argue that I'm not
advising expertly either, but my advice would be not to use ABS() in
place of the double unary minus, because if my text number is a
negative one ABS turns it positive while the double unary minus leaves
it negative.
--
David Biddulph

On 17 Aug, 09:28, " wrote

ABS() works for for me (Excel97 s2) for simple conversion of positive
or negative text ("" or ') to a real number.

Particularly as inExcelfunctions (where comments in the code is not
possible) I think clarity is essential (even going to hidden columns
instead of very complex functions).

For those who are expertly or MVPly helping inexperienced users, I
think that they have a duty to be explicitly clear in their advice.

Alan Lloyd


On Aug 17, 9:07 am, "DavidBiddulph" <groups [at]biddulph.org.uk
wrote:

If you're only trying to distinguish 0 from 1, then ABS() would work, but
that doesn't work in other cases where -- works, such as converting a text
representation of a number (including negative numbers) into a real number.
There are many other options, including the use of +0 or *1. The choice of
which (if any) to use is with the user, of course.



 
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
start finish dates JB2010 Excel Discussion (Misc queries) 2 September 19th 07 01:46 PM
Start:Finish with If formula Bongard Excel Discussion (Misc queries) 8 February 19th 07 02:16 PM
Getting no of hours from start to finish Peter Mount Excel Discussion (Misc queries) 3 September 10th 06 02:11 PM
Start & Finish Time bosox9 Excel Worksheet Functions 0 July 24th 06 10:01 PM
How do I chart date ranges with varying start and finish dates? projectplanner Charts and Charting in Excel 4 May 1st 05 11:36 PM


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