+ Reply to Thread
Results 1 to 5 of 5

Adding fractions in excel

  1. #1
    Registered User
    Join Date
    06-08-2010
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    6

    Adding fractions in excel

    Hi All,

    I'm trying to sum fractions (#/#) to get an overall percentage, and am having some trouble with it.

    Here's a quick example:



    Row 1 2006 2007 2008 2009 | (desired outcome)

    Row 2 0/1 0/0 1/1 0/1 | 1/3

    Row 3 0/0 0/0 0/0 0/1 | 0/1

    Row 4 1/1 1/1 1/1 1/1 | 4/4

    Row 5 0/1 0/1 0/1 0/1 | 0/4


    Basically, I am trying to calculate participation (numerator) over whether they had the opportunity to participate (denominator). The column above, "desired outcome" is what I want these fractions to add up as (but am currently having trouble with). Basically, I would like to separately sum both numerators and denominators as an aggregate fraction (percentage would work, too). Similar to a basketball player's shooting percentage over the course of different games. The COUNT and SUM functions have been useless thus far.

    Thanks!!

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Adding fractions in excel

    In E2 and copy down,

    =SUM(LEFT(A2:D2, FIND("/", A2:D2) - 1) + 0) & "/" & SUM(MID(A2:D2, FIND("/", A2:D2) + 1, 9) + 0)

    The formula MUST be confirmed with Ctrl+Shift+Enter.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-08-2010
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Adding fractions in excel

    Awesome. That formula works, but I'm still having problems with my cells that have values "1/1" They are only returning "1" and it is giving me a value error with the function that you gave me. Any help on this issue? I think excel automatically formats "1/1" as "1" and it is giving my formula an error.

  4. #4
    Registered User
    Join Date
    06-08-2010
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Adding fractions in excel

    got it figured out by using the =TEXT(A2, "#/#") function to convert all fractions.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Adding fractions in excel

    Or just format the cells as text beforehand.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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