+ Reply to Thread
Results 1 to 5 of 5

Running total formula that skips blank cells

  1. #1
    Registered User
    Join Date
    09-05-2014
    Location
    Pittsburgh
    MS-Off Ver
    2010
    Posts
    16

    Running total formula that skips blank cells

    I have a column of results (Column A) and the cells are populated with Win, Loss, Tie, or the cell is blank. In column B, I want to keep a running total where a win adds 1 to the total, a loss subtracts 1, and a tie keeps the total the same. I can make this work with the following:

    =IF(LEFT(A2)="W",B1+1,IF(LEFT(A2)="L",B1-1,IF(A2="T",B1,B1)))

    This will keep the running total for all four cell possibilities and look like this:

    01.jpg

    But what I really want is when there is a blank cell in column A that the adjacent cell in column B also be blank but keep the running total. Like this:

    02.jpg

    Since I never know how many blank cells there will be I don't know how to do this. Any help would be greatly appreciated.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Running total formula that skips blank cells

    Try this in B2 and filled down.

    =IF(A2="","",COUNTIF(A$2:A2,"W")-COUNTIF(A$2:A2,"L"))

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: Running total formula that skips blank cells

    =if(a2="","",countif(a$2:a2,"w")-countif(a$2:a2,"l"))
    try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Registered User
    Join Date
    09-05-2014
    Location
    Pittsburgh
    MS-Off Ver
    2010
    Posts
    16

    Re: Running total formula that skips blank cells

    Exactly what I needed. And much cleaner than what I was doing before. Thanks SO much for taking the time.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Running total formula that skips blank cells

    You're welcome.

+ 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. Formula that skips blank cells
    By chisox721 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-17-2013, 01:03 AM
  2. [SOLVED] Create a Formula That Skips Every n Cells
    By tj2434 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 11-20-2013, 05:30 PM
  3. [SOLVED] Need Formula that skips cells when using Autofill
    By Asaan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-20-2012, 10:54 AM
  4. if formula to show blank or show instead of displaying the running total
    By js1978 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-10-2008, 04:38 PM
  5. creating a formula that skips empty cells
    By turbo90talon in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 10-19-2007, 08:31 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