+ Reply to Thread
Results 1 to 2 of 2

calculating keeping the results in specified range

  1. #1
    Registered User
    Join Date
    07-06-2013
    Location
    Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    7

    calculating keeping the results in specified range

    Hello guys,
    It is a bit complicated, so I will try to explain the problem in more details and I also attached a file:
    In column F, K,P I have a list of values
    F K O P Q R S T
    100 20
    0,00 8,50 2
    0,00 12,42 2
    0,00 16,50 2
    0,00 20,67 2
    0,00 25,83 2
    2,42 30,83 2
    8,00 35,75 2
    11,33 40,50 2
    15,08 45,00 2
    18,58 51,50 2
    22,58 58,75 2
    in T I put a formula which has to calculate the data from F,K,P when some conditions are fulfill:
    - The value in T is in the range of [$O$74; $Q$73] if it is not there are two options
    o To be > $Q$73 and then has to return $Q$73
    o Or to be < $O$74 and in this case has to return $O$74
    - If the first value in P, P76 =1 then return the value from $O$74, if in column down P is again =1 it has to return the value from the cell above;
    - If P76=3 then do T75+(F76)-K76;
    - If P76=2 then do T75-(K76-(F76));
    When the calculations starts there will be a case in which the calculated value will be
    - Less than $Q$73 then it has to return $Q$73 to the moment in which the value starts to grow again.
    - Bigger than $O$74 then it has to return $O$74 to the moment in which the value starts to decrease again.
    I try to do it with:
    =IF(P76=3;$Q$73+T75+SUM(F76)-K76;IF(AND(T75<=$O$74;T75>=$Q$73);IF(P76=1;T75;IF(P76=3;T75+SUM(F76)-K76;IF(P76=2;T75-(K76-SUM(F76)))))))
    But when the value starts to grow it exceeds the limit of $O$74 and the second problem is that when the value is less than $Q$73 it returns false instead of $Q$73
    Hope someone can give me a hand,

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: calculating keeping the results in specified range

    No file attached
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Keeping Old Values upon re-calculating
    By Captain Brian in forum Excel General
    Replies: 3
    Last Post: 09-18-2012, 12:52 PM
  2. Looping Solver in VBA: Keeping results problem
    By hps204 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-15-2012, 09:23 AM
  3. Using VBA to add new results but keeping original in cell?
    By peakymatt in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-19-2008, 08:35 PM
  4. Help!! Excel keeping Calculating
    By redskinp in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-30-2006, 12:57 AM
  5. [SOLVED] Keeping track of results of refreshed/updated data
    By vitaleca in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-02-2006, 10:50 PM

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