Closed Thread
Results 1 to 5 of 5

Stop calculation once a condition is met

  1. #1
    Registered User
    Join Date
    05-15-2013
    Location
    Israel
    MS-Off Ver
    Excel 2013
    Posts
    70

    Stop calculation once a condition is met

    hi everyone,

    So I've been working hard on this spreadsheet to make it track stocks prices live. it gets a live prices from my broker and multiple formulas are ran using these prices. One of them is a "Stop-Loss" Flag function, that constantly checks if current market price (that is set as a "stop-loss" level) has been reached or not (i.e A1 is the "live" price cell;
    Please Login or Register  to view this content.
    ).
    My problems are:

    1. the price keeps fluctuate after the condition has been met, and if the price then goes back above 1.5, the condition is now FALSE again and if I come back an hour later I can't tell if the stop-loss level had been reached (I know what you're thinking, I can just check the stock chart, but I'm actually using multiple option contracts prices and the example given here is only to simplify things). So my question is, how can I tell excel "once the condition (A1<1.5) is TRUE, populate the cell with text ("Stop-Loss") and then STOP checking A1, so that the text is always there).

    2. Also, if possible, I'd like excel to register the price of that first cross below 1.5 (so if the price that triggered the stop-loss was 1.48 I want it to save it somewhere so I can come back later and know what price I got out at..

    3. Last but not least, right now I have to manually match the strike price of the option (E6) to the corresponding "live" price of that strike (S4:S13) so excel knows what prices to work with. I want a formula that will look like this:
    look for the value in E6 in range S4:S13, once you've found it, compare the Stop Loss trigger price (O7) to the live price of that strike
    . I know it sounds really complicated but really it as simple as it get, I just don't know how to do it.. so in the spreadsheet example, since the strike price in E6=15, excel needs to compare the trigger value (O7) against the prices of the 15 strike price (T6 and U6) and ignore all other prices..


    I hope my explanation was not too clumsy and that my goal is clear. see attached spreadhseet to see what it looks like right now

    thanks in advance
    Attached Files Attached Files
    Last edited by ryefield; 07-27-2013 at 04:37 PM.

  2. #2
    Registered User
    Join Date
    05-15-2013
    Location
    Israel
    MS-Off Ver
    Excel 2013
    Posts
    70

    Re: Stop calculation once a condition is met

    update: I actually managed to work our issue nomber 3 using the =vlookup formula, so that's one off the list

  3. #3
    Registered User
    Join Date
    05-15-2013
    Location
    Israel
    MS-Off Ver
    Excel 2013
    Posts
    70

    Re: Stop calculation once a condition is met

    really guys? no one?

  4. #4
    Registered User
    Join Date
    05-15-2013
    Location
    Israel
    MS-Off Ver
    Excel 2013
    Posts
    70

    Re: Stop calculation once a condition is met

    So am Ito draw from this silence that there's no way to do it?

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Stop calculation once a condition is met

    Dupl.

    You should continue discussion vba is needed in your situation.

    http://www.excelforum.com/excel-prog...condition.html

    Thread Closed.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Stop SUM of array on cell condition
    By uriavni in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-08-2013, 09:26 AM
  2. How do I stop calculation??
    By jimojimo in forum Excel General
    Replies: 5
    Last Post: 04-16-2010, 12:03 AM
  3. How to start and stop a loop base on condition.
    By Jwalker in forum Excel General
    Replies: 1
    Last Post: 08-30-2006, 12:13 AM
  4. How do I stop a calculation rounding up
    By Lynneth in forum Excel General
    Replies: 8
    Last Post: 01-13-2006, 04:00 PM
  5. [SOLVED] How to stop automatic calculation
    By Arthur in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-06-2005, 10:06 AM

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