+ Reply to Thread
Results 1 to 12 of 12

threshold formula

  1. #1
    Registered User
    Join Date
    12-28-2010
    Location
    Tel-Aviv, Israel
    MS-Off Ver
    Excel 2007
    Posts
    29

    threshold formula

    hi,

    In the following spreadsheet i have got a series of daily prices form the nasdaq. In column I, i wrote a formula that will tell me in each day when the value in column h is equal or bigger than 0.7%. I would like to know how could i get ( maybe in a new column) each time the formula to give me the first time it crosses or equlas 0.7% ( the threashold) and wont continue to give me the value throughout the same day.
    thanks in advance,

    Hidai
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,165

    Re: threshold formula

    Hi,

    Is the .7% of the daily open or the first day's open?

    Why don't you simply graph the data to see it's ups and downs?
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    12-28-2010
    Location
    Tel-Aviv, Israel
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: threshold formula

    I need it for a more advanced statistical analysis. the 0.7% is just a point in one day that i wish to see when the market gets to.

  4. #4
    Forum Contributor bentleybob's Avatar
    Join Date
    02-27-2009
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    644

    Re: threshold formula

    If I understand you correctly, try this (in cell M5 and copied down):
    Please Login or Register  to view this content.
    You can't use this in M3 or M4 because you have an error in I3. Also, I would check your formula in Column I as it seems odd.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: threshold formula

    i agree with that column I thing
    =IF(AND(A3:A17=A17,H17>=0.7%),0.7%,"-") what is this trying to calculate?
    -
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Registered User
    Join Date
    12-28-2010
    Location
    Tel-Aviv, Israel
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: threshold formula

    This formula calculates, in each day( column a), when the value of column H equals or greater than 0.7% it shows 0.7% and otherwise it shows "-"
    I tried your formula and it didnt work. i want that the threshold value or the first time the daily value equals or greater than 0.7% appears i want it to be the only one. i dont want to see 0.7% throughout the days but only once..

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: threshold formula

    its this bit that doesnt make sense
    A3:A17=A17

  8. #8
    Forum Contributor bentleybob's Avatar
    Join Date
    02-27-2009
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    644

    Re: threshold formula

    So you want to know the first instance (date and time) that .7% appears in Column I? You could change the formula I gave you previously (starting in M3 and then copied down) to:
    Please Login or Register  to view this content.
    If you want something else, please let me know.

  9. #9
    Registered User
    Join Date
    12-28-2010
    Location
    Tel-Aviv, Israel
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: threshold formula

    it does work for the first day where 0.7% appears(09/06/2005) but it doesnt continue working further on.. something in the formula should be changed for it to be more generalized for every date.
    thanks

  10. #10
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,165

    Re: threshold formula

    Hi Hidai,

    I think I've got what you want. The problem as first stated didn't really tell us enough. You wanted 1.007 times the open PER DAY and I didn't get that from the first question or the second answer.

    On the attached is a Pivot Table that might show you what you really are looking for.
    Attached Files Attached Files

  11. #11
    Forum Contributor bentleybob's Avatar
    Join Date
    02-27-2009
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    644

    Re: threshold formula

    ???

    That's what my original suggestion did -- showed the one time in each day that Column I showed 0.70% and otherwise showed blank (including days where there was no .7%). So you got a flag for 9/6 @ 9:00, 9/16 @ 14:00, 9/20 @ 9:00, 9/23 @ 12:30, etc.

    What is it you want that's different?

  12. #12
    Registered User
    Join Date
    12-28-2010
    Location
    Tel-Aviv, Israel
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: threshold formula

    You're right!! it was my mistake before...i found what i looked for..
    Thank you both you've been really helpful!

    Hidai

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1