Consulting

Results 1 to 7 of 7

Thread: Solved: using "--"

  1. #1

    Solved: using "--"

    just a general question as I see this in a lot of formulas posted here. when and why would one put "--" before a parameter in a formula?

    thanks,
    t

  2. #2
    Knowledge Base Approver VBAX Guru GTO's Avatar
    Joined
    Sep 2008
    Posts
    3,368
    Location
    Hi t,

    I would suggest reading and studying 'SUMPRODUCT Step by Step', parts 1, 2, and 3, in the SUMPRODUCT and Other Array Functions. While your question pertains to the double unary usage and not necessarily SUMPRODUCT, I find Bob's discourse immensely helpful.

    Mark

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    As further explanation, the double unary is used to coerce a numeric string or a boolean to its numeric equivalent, --True is 1, --"2009-06-16" is the numeric value of 16th June 2009.

    There is also further information at http://www.xldynamic.com/source/xld.SUMPRODUCT.html
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    thank you! i'll read through tonight and post any questions I have.

  5. #5
    read through the articles. very clearly written. thank you.
    so question:
    what's the difference between using --(...) and using value(...)?

    thanks,

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Try

    =VALUE(TRUE)
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  7. #7
    got it.
    thanks.
    u guys are awsome

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •