+ Reply to Thread
Results 1 to 4 of 4

Left, Right with count.

  1. #1
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Left, Right with count.

    I am looking to add a count function in a formula to compute the win % of sports teams. Ihe formula I have works but I need to adjust the count manually.

    Currently if a team has less than 10 wins or 10 losses I can use 'Left or right with 1' but when a team goes into a double digit number I need to change the count to 2. I think some sort of count or countif would be the solution but I am not sure how to add that function into my formula (see attached).


    Jim O
    Attached Files Attached Files
    Last edited by JO505; 04-25-2015 at 04:22 PM.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Left, Right with count.

    You could try something like

    =IFERROR(LEFT(E2,FIND("-",E2)-1)/SUM(LEFT(E2,FIND("-",E2)-1)+RIGHT(E2,LEN(E2)-FIND("-",E2))),0)
    Martin

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: Left, Right with count.

    does the team record always take the format
    85-77
    6-9

    with a dash

    you could use the - to find what to extract

    for the left number

    =LEFT(E2,FIND("-",E2,1)-1)

    for right number
    =MID(E2,FIND("-",E2,1)+1,3)

    so
    =IFERROR(LEFT(E2,FIND("-",E2,1)-1)/(LEFT(E2,FIND("-",E2,1)-1)+MID(E2,FIND("-",E2,1)+1,3)),0)
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: Left, Right with count.

    Martin,

    Thank you for your input.

    I thought about it some more and did some searching on the web and came up with a very similar formula.

    =IFERROR(LEFT($E2,FIND("-",E2)-1)/SUM(LEFT($E2,FIND("-",E2)-1)+RIGHT($E2,RIGHT(LEN(E2)-J2)-1)),0)

    Again thanks for your time.

    Jim O

+ 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. [SOLVED] How do I count from the left upto the comma
    By ajbaldwin in forum Excel General
    Replies: 7
    Last Post: 11-03-2014, 07:43 AM
  2. [SOLVED] rows left count
    By ks1102 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-07-2014, 09:30 AM
  3. Count using left function in Range
    By vinaynaran in forum Excel General
    Replies: 2
    Last Post: 07-27-2011, 11:38 AM
  4. Count if numbers in cell to left
    By Nadir Soofi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-28-2008, 09:22 PM
  5. Count-down timer? (e.g. 10 days left...9...8...)
    By mesotech in forum Excel General
    Replies: 3
    Last Post: 01-06-2005, 01:06 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