+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Sum Up From - Until

  1. #1
    Registered User
    Join Date
    06-18-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Sum Up From - Until

    Please help me out with subtotals. Here's what I am trying to do:

    If any cell in the B column has the text "ShiftEnd", then I need to have a subtotal in the corresponding cell up till we encounter another "ShiftEnd". My data goes as follows:

    A B C
    Mins ShiftStatus Subtotal
    217
    19
    58
    44 ShiftEnd =Sum(A2 to ShiftEnded)
    338
    134
    21
    15
    24
    114 ShiftEnd =Sum(A6 to ShiftEnded)
    51
    166
    82
    19 ShiftEnd =Sum(A11 to ShiftEnded)
    143 ShiftEnd =Sum(A15 to ShiftEnded)

    Thanks so much!
    Sandy
    Last edited by sandsingh; 06-18-2009 at 09:25 AM. Reason: data didn't appear properly

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Sum Up From - Until

    Please Login or Register  to view this content.
    I think your row numbers are off a little at the end there, but that's ok.

    In C2 enter this formula and copy down:
    =IF(B2="ShiftEnd", SUM($A$1:A2) - SUM($C$1:C1), "")
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    06-18-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    2

    Thumbs up Re: Sum Up From - Until

    You ARE a rocket scientist JB. Thanks so much, you rock!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Sum Up From - Until

    LOL...glad to help!

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)

+ 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