+ Reply to Thread
Results 1 to 10 of 10

Adding Numerators Help

  1. #1
    Registered User
    Join Date
    07-29-2017
    Location
    Wisconsin
    MS-Off Ver
    Excel 2016
    Posts
    6

    Adding Numerators Help

    I am adding numerators from fractions and currently using this formula:

    =SUMPRODUCT(--(LEFT(0&I35:I38,FIND("/",0&I35:I38)-1)))

    25/20
    25/20
    10/20
    10/20
    70

    I want my formula to cap out at the denominator however, for example on my first two cell IF numerator is more than denominator, use denominator. Current formula gives 70, looking to get 60 (20+20+10+10)
    Can anyone help?

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Adding Numerators Help

    It would help to see the workbook.

    You get better help on your question if you add a small excel file, without confidential information.

    Please also add manualy the expected result in your file.

    To Attach a File:

    1. Scroll down to the window below your post Additional Options
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    07-29-2017
    Location
    Wisconsin
    MS-Off Ver
    Excel 2016
    Posts
    6

    Re: Adding Numerators Help

    Here is a sample file thank you
    Attached Files Attached Files

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

    Re: Adding Numerators Help

    a
    b
    1
    25/20
    2
    25/20
    3
    10/20
    4
    10/20
    5
    6
    60
    a6: {=sumproduct(if(left(a1:a4, find("/", a1:a4) - 1) - mid(a1:a4, find("/", a1:a4) + 1, 15) < 0, --left(a1:a4, find("/", a1:a4) - 1), --mid(a1:a4, find("/", a1:a4) + 1, 15)))}
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    07-29-2017
    Location
    Wisconsin
    MS-Off Ver
    Excel 2016
    Posts
    6

    Re: Adding Numerators Help

    Thanks for reply I see you got the needed result.

    I'm returning error when inserting formula. Any idea?

    book is attached.
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,086

    Re: Adding Numerators Help

    Array formulae are confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    07-29-2017
    Location
    Wisconsin
    MS-Off Ver
    Excel 2016
    Posts
    6

    Re: Adding Numerators Help

    Awesome, got it!

    Thank you very much.

  8. #8
    Registered User
    Join Date
    07-29-2017
    Location
    Wisconsin
    MS-Off Ver
    Excel 2016
    Posts
    6

    Re: Adding Numerators Help

    Ok I hit a roadblock.

    My data is outside of one range.
    For example:
    The formula above works because data was in one range. But I'm trying to use the same formula for the cells highlighted in Blue. Cell D37 needs data from D4 and D8:D10 or D4:D10 but avoid my X's.

    File is attached so it makes sense.

    Really appreciate the help trying to finish this tonight.

    Edit: IF X 0/0 would be best
    Attached Files Attached Files
    Last edited by JrayK; 07-29-2017 at 03:15 PM.

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

    Re: Adding Numerators Help

    Add formulas in cells as necessary to make the values of interest contiguous.

  10. #10
    Registered User
    Join Date
    07-29-2017
    Location
    Wisconsin
    MS-Off Ver
    Excel 2016
    Posts
    6

    Re: Adding Numerators Help

    Yeah I just insert 0/0 in those cells and hid with black that will work. Thanks again for the help

+ 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. Replies: 13
    Last Post: 07-16-2016, 10:53 PM
  2. Adding rows to multiple sheets when adding new item using DataForm
    By pandora1a2b in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-11-2014, 01:00 PM
  3. [SOLVED] adding target lines into graphs without adding an extra column of data
    By ea223 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 03-16-2013, 12:32 PM
  4. Replies: 2
    Last Post: 04-06-2012, 02:42 PM
  5. Replies: 0
    Last Post: 04-18-2011, 06:39 PM
  6. Replies: 2
    Last Post: 05-16-2010, 11:23 PM
  7. Fractions: summing numerators and denomerators separately
    By burnsbyrne in forum Excel General
    Replies: 4
    Last Post: 05-26-2005, 07:03 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