+ Reply to Thread
Results 1 to 10 of 10

Nth Row and Sub total

Hybrid View

  1. #1
    Registered User
    Join Date
    01-11-2011
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    7

    Nth Row and Sub total

    I have a spreadsheet that I would like to add a row every 4th row and subtotal the numbers in the columns D-H (last five columns). Just need a summation in the last five columns. Any assistance would be appreciated. Thanks.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Nth Row and Sub total

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

  3. #3
    Registered User
    Join Date
    01-11-2011
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Nth Row and Sub total

    Sorry...did not realize I couls add an attachment
    Attached Files Attached Files

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Nth Row and Sub total

    I'm still not clear on what you want to achieve. Can you manually mock up a sample of the expected result?

    cheers,

  5. #5
    Registered User
    Join Date
    01-11-2011
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Nth Row and Sub total

    the yellow lines are the additional lines needed....basically a blank row inserted after each fourth line and the last five columns ares summed.
    Attached Files Attached Files

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Nth Row and Sub total

    Ah, now I see. These formulas are summing rows, not columns.

    Create the first row with the sum formula, copy the whole row (by selecting the row header), then use Insert Copied Cells to paste into their new locations (a new row will be inserted)

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Nth Row and Sub total

    Perhaps simplest to just use Excel's inbuilt Subtotal functionality:

    Highlight A:H and apply Data -> Subtotal as follows:

    At Each Change In: Half Hour

    Use Function: Sum

    Add Subtotals To: Calls, Abandoned Calls, Avg Speed of Answer, Avg Abandoned Time
    The other alternative would be to use a Pivot Table to analyse the Data

  8. #8
    Registered User
    Join Date
    01-11-2011
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Nth Row and Sub total

    that works great...Looks like I need to do some formatting in the cells that have hours, minutes, and seconds. This spreadsheet is a transfer from a business objects query and just changing the format does not allow the cells to be summed. Need to retype the number and then the summation works... I have changed the cell format from a general number to a custom h:mm:ss and the cell show that but still does not allow summation.

  9. #9
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Nth Row and Sub total

    Prior to adding the Subtotals...

    Type 0 into a blank cell - copy it - highlight your "Time" cells and run Paste Special -> Operation: Add

    If you have just one column for the above you can also try highlight the column and run Data -> Text to Columns -> click Finish.
    (TtC is limited to one column at a time so for multiple the Paste Special route can be preferable)

    You might want to format as [h]:mm if any cell (incl. sub totals) can exceed 24 hours.

  10. #10
    Registered User
    Join Date
    01-11-2011
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Nth Row and Sub total

    worked great....think this is all I need to do to get this done...Thanks!

+ 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