+ Reply to Thread
Results 1 to 6 of 6

Sum range of numbers within a range of cells separated by /

  1. #1
    Registered User
    Join Date
    03-05-2014
    Location
    Wisconsin, USA
    MS-Off Ver
    2007,2010
    Posts
    6

    Sum range of numbers within a range of cells separated by /

    Hello,

    I have very basic knowledge of excel and I could use some assistance finding a complicated solution to what should be a easy one. I have spent a number of hours over the past few days searching your vast and informative forums with no avail. (Love the forums by the way)

    I have monthly data like this: Untitled.png

    ____Company A1______Company A2________Brand A

    Jan____11/10__________15/15____________26/25
    Feb____5/5_____________7/6____________12/11
    Mar___ 0/0_____________2/1_____________2/1
    Apr
    May
    ....
    Dec
    Total__16/15___________24/22___________40/37


    I am trying to sum numbers vertically and horizontally as shown in the Brand A column and Total row. Now I know the easiest solution would be to break the data into separate columns, the problem is that this is part of a bigger table and I need to maintain the structure of the table. I found a messy way of collecting the horizontal Brand A data, but it only works when all cells are populated.

    For the Total row, I tried this formula;
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Unfortunately it also does not work with empty cells and I need to see the running total.

    So if somebody could assist with finding a way to clean up the Horizontal brand data and calculate the running totals row, it would be greatly appreciated. File attached.Helpbook1.xlsx

    Thank you in advance.
    Last edited by Squidlo; 03-06-2014 at 01:52 PM. Reason: Data was misaligned, added picture

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Sum range of numbers within a range of cells separated by /

    wrong formula posted
    Last edited by hemesh; 03-06-2014 at 01:56 PM.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Sum range of numbers within a range of cells separated by /

    In I 37 should work
    =SUMPRODUCT(IFERROR(LEFT(SUBSTITUTE(B37:D37,"/",REPT(" ",100)),50)+0,0))&"/"&SUMPRODUCT(IFERROR(RIGHT(SUBSTITUTE(B37:D37,"/",REPT(" ",100)),50)+0,0))

    copy paste above then hold control and shift together and then hit enter and release all three keys !

    Now this will work even if cell has no value or any cell has value
    Last edited by hemesh; 03-06-2014 at 02:04 PM.

  4. #4
    Registered User
    Join Date
    03-05-2014
    Location
    Wisconsin, USA
    MS-Off Ver
    2007,2010
    Posts
    6

    Re: Sum range of numbers within a range of cells separated by /

    Spectacular! Looks like that did the trick! Thank you hemesh for your time and expertise. I really appreciate it.

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Sum range of numbers within a range of cells separated by /

    Maybe this one

    and drag formula to the right

    =SUM(--(LEFT(B2:B4,FIND("/",B2:B4)-1)))&"/"&SUM(--(RIGHT(B2:B4,LEN(B2:B4)-FIND("/",B2:B4))))

    B
    C
    D
    2
    11/10 15/15 26/25
    3
    5/5 7/6 12/11
    4
    0/0 2/1 2/1
    5
    6
    16/15 24/22 40/37




    ...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. Press F2 on that cell and try again.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Sum range of numbers within a range of cells separated by /

    Thanks for the feedback ! if your query is solved you can mark thread as solved.
    GO to thread tools and mark as solved !

+ 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: 7
    Last Post: 02-27-2014, 10:56 PM
  2. Find the smallest number in a range of cells that are separated by boarder
    By svetlich in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-08-2012, 03:58 AM
  3. Convert range of cells to comma separated list
    By maw230 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-23-2012, 06:03 PM
  4. Need to total ranges of numbers separated by empty cells
    By iturnrocks in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-03-2009, 12:06 PM
  5. [SOLVED] Count comma separated numbers, numbers in a range with dash, not t
    By Mahendra in forum Excel General
    Replies: 0
    Last Post: 08-08-2005, 01:05 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