+ Reply to Thread
Results 1 to 7 of 7

IF formulas or True/False formulas?

  1. #1
    Registered User
    Join Date
    11-17-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    4

    Exclamation IF formulas or True/False formulas?

    Sorry in advance first, my english is not very good. But I really hope someone can help me on this.

    I need do something to make this happen.

    Example:

    I had 2 columns, 1 for win, 1 for loss and 1 row for unbeaten runs

    First, I will like 5 wins and 0 losses to the column, then the unbeaten runs will show up "5".

    Second, when I add 1 loss to the column, the unbeaten runs will reset to "0"

    So basically, what I wanted to do is, whenever I key in a win, it will added up to the Unbeaten Runs row until I added a loss to the loss column then the Unbeaten Runs row will reset to 0.


    Hope someone can help me on this.
    Last edited by goodnightworld; 11-17-2013 at 06:05 AM. Reason: Wrong title.

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: IF formulas or True/False formulas?

    I'd set up a helper column, call it "Streak."

    Then, if "wins" are in A1:A10, you would use something like
    C1 = 1
    C2 = IF(A2=A1, C1 + 1, 1)
    pull down

    Note this starts counting from 1, not from 0; your OP could be interpreted either way (eg, 5-in-a-row is described as 5, but 1-in-a-row is described as 0), so you can change the C1 = 1 and the FALSE term to either zero or one to match the behavior you want.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: IF formulas or True/False formulas?

    Hi and welcome to the forum

    Perhaps take a look at using the countif() function, and if that doesnt help you, I would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, a few examples of what your expected outcome is, and how you arrived at that
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    11-17-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: IF formulas or True/False formulas?

    https://docs.google.com/spreadsheet/...p=docslist_api

    Actually, I am looking for a formula for my "Runs" part. I can't seem to figure out.

    Example, I keep winning consecutive

    Let's say I update those games 1 by 1, so whenever I win, I will key in the column accordingly at cell "B3:B11"

    Whenever I add 1 win to the cell "B3:B11", the Runs will keep adding up 1 by 1 until I lose a match, that's when I keyed something to the cell between "C3:C11", when I key something on the Defeated column. The "Runs" will be reseted to 0.

    I hope you guys get what I mean, my English is bad.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: IF formulas or True/False formulas?

    Please upload your file here. Some members are unable/unwilling top open files from file-hosting sites

  6. #6
    Registered User
    Join Date
    11-17-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: IF formulas or True/False formulas?

    Sorry about that, heres the file.
    Hope you guys can help me with it.
    Attached Files Attached Files

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: IF formulas or True/False formulas?

    Could you show a few samples of what you expect? You have rows with values in both win and defeat, so Im not sure what you want

+ 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. Alternative Formula for multiples IFs (to make my formula shorter)
    By chico.corrales in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-07-2013, 12:37 AM
  2. [SOLVED] Formula whit INDEX and MATCH. I try to make this formula to result.
    By Anka in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-28-2012, 06:26 PM
  3. Formula question - cell value to make a formula true?
    By jabadeer in forum Excel General
    Replies: 3
    Last Post: 07-19-2011, 12:07 PM
  4. Replies: 7
    Last Post: 03-25-2011, 02:44 PM
  5. Replies: 7
    Last Post: 06-20-2006, 05:56 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