+ Reply to Thread
Results 1 to 10 of 10

Sum Column of Win-Loss-Tie records

  1. #1
    Registered User
    Join Date
    11-06-2015
    Location
    Great Falls, MT
    MS-Off Ver
    2011
    Posts
    3

    Sum Column of Win-Loss-Tie records

    I am attempting to sum a single column (17 rows) of win-loss-tie records in WW-LL-TT format. A cell in the summation column could have up to two digits in either of the 3 areas before or after the dash (9-10-1, 10-2-10, or 1-2-9). Also, a cell in the summation column could only have numbers in the WW & LL areas (no ties: 9-7, or 10-3). I would like the summation cell to look like the same format (WW-LL-TT). I hope this makes sense.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sum Column of Win-Loss-Tie records

    This would be very simple if you put each number in a separate cell.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Valued Forum Contributor
    Join Date
    06-21-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2000, Excel XP, Excel 2002, Excel 2007, Excel 2010, Excel 2013
    Posts
    975

    Re: Sum Column of Win-Loss-Tie records

    Use this :
    Please Login or Register  to view this content.
    Replace A1:A4 with your range.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sum Column of Win-Loss-Tie records

    Quote Originally Posted by sanram View Post
    =SUMPRODUCT(INT(LEFT(A1:A4,FIND("-",A1:A4)-1)))&"-"&SUMPRODUCT(INT(SUBSTITUTE(MID(A1:A4,FIND("-",A1:A4)+1,2),"-","")))&"-"&SUMPRODUCT(INT((LEN(A1:A4)-LEN(SUBSTITUTE(A1:A4,"-",""))>1)*SUBSTITUTE(RIGHT(A1:A4,2),"-","")))
    Adjusted the range as needed.

    Using this data:

    Data Range
    A
    1
    9-10
    2
    12-2-0
    3
    5-1-3
    4
    7-100-2500
    5
    0-0-2


    That formula returns 33-23-5.

  5. #5
    Valued Forum Contributor
    Join Date
    06-21-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2000, Excel XP, Excel 2002, Excel 2007, Excel 2010, Excel 2013
    Posts
    975

    Re: Sum Column of Win-Loss-Tie records

    Quote Originally Posted by Tony Valko View Post
    Adjusted the range as needed.

    Using this data:

    Data Range
    A
    1
    9-10
    2
    12-2-0
    3
    5-1-3
    4
    7-100-2500
    5
    0-0-2


    That formula returns 33-23-5.
    This will not work for that. nlarson has told us the format as WW-LL-TT. That's why this formula will work with that format. If you need the formula for any format then it would be larger. And if we can achieve anything with a smaller one, then why do we look for larger?

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sum Column of Win-Loss-Tie records

    Quote Originally Posted by sanram View Post
    if we can achieve anything with a smaller one, then why do we look for larger?
    See reply #2.

  7. #7
    Registered User
    Join Date
    11-06-2015
    Location
    Great Falls, MT
    MS-Off Ver
    2011
    Posts
    3

    Re: Sum Column of Win-Loss-Tie records

    wow...it works like a champ...thank you very much. you guys are amazing. One thing about the formula's result...it will return a #VALUE! result if there is a blank cell within the range. Not a big deal, but is this fixable to ignore the blank cell and return the summation of any cells w/in a range with data?

  8. #8
    Valued Forum Contributor
    Join Date
    06-21-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2000, Excel XP, Excel 2002, Excel 2007, Excel 2010, Excel 2013
    Posts
    975

    Re: Sum Column of Win-Loss-Tie records

    For some strange reason I couldn't mix up A1:A6<>"" with the sumproduct formula. May be an expert can solve that issue.

    But I have solved that problem with an array formula :
    Please Login or Register  to view this content.
    Confirm Ctrl+Shift+Enter.

  9. #9
    Registered User
    Join Date
    11-06-2015
    Location
    Great Falls, MT
    MS-Off Ver
    2011
    Posts
    3

    Re: Sum Column of Win-Loss-Tie records

    Sanram:

    You are da bomb. works awesome. Thank you so much. I tried and tried to do on my own for weeks...took this forum and it's genius' a couple hours. Thanks again!!!

    Nate

  10. #10
    Valued Forum Contributor
    Join Date
    06-21-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2000, Excel XP, Excel 2002, Excel 2007, Excel 2010, Excel 2013
    Posts
    975

    Re: Sum Column of Win-Loss-Tie records

    You are 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. Win Loss records copy as dates
    By chipgiii in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-14-2017, 03:05 AM
  2. Win-Loss Records
    By IdonotknowExcel in forum Excel General
    Replies: 1
    Last Post: 02-04-2016, 07:19 PM
  3. [SOLVED] Trading Spreadsheet - Random win/loss outcome against established Win/Loss %
    By cruze2005 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-18-2014, 05:08 AM
  4. [SOLVED] Consecutive win/loss and current win/loss streak
    By TK2013 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 09-18-2013, 09:15 AM
  5. Totalling a Win-Loss Column
    By IronDogg in forum Excel General
    Replies: 9
    Last Post: 09-27-2009, 01:45 PM
  6. Multiple team "All-Play" Won, loss, tie records
    By swig via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-03-2005, 11:05 PM
  7. [SOLVED] Calculating Profit and Loss in one column
    By Dismal in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

Tags for this Thread

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