+ Reply to Thread
Results 1 to 3 of 3

IF command resetting after 3 consecutive negative results

  1. #1
    Registered User
    Join Date
    12-14-2010
    Location
    canada
    MS-Off Ver
    Excel 2010
    Posts
    13

    IF command resetting after 3 consecutive negative results

    Hi Everyone,

    I'm trying to set up an IF command which would reset if the 3 previous calculations were a negative.

    Here is how the data is set up

    Columns A and B have max and min data.
    Column C Shows the average of A and B.
    Column D shows the cumulative result of Column C.

    What I'm trying to do is after 3 negatives are shown in Column D, the next cell would reset to zero and the process start's over again.

    I hope my questions is clear. Any help is appreciated.
    Thanks
    Last edited by chachie22; 02-28-2011 at 12:33 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: IF command resetting after 3 consecutive negative results

    D4=if(and(D3<0,D2<0,D1<0),0,D3+C4)

    dragged down?

  3. #3
    Registered User
    Join Date
    12-14-2010
    Location
    canada
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: IF command resetting after 3 consecutive negative results

    Quote Originally Posted by brokenbiscuits View Post
    D4=if(and(D3<0,D2<0,D1<0),0,D3+C4)

    dragged down?
    Thanks, works great

+ 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