+ Reply to Thread
Results 1 to 7 of 7

Macro or formula to total sum

  1. #1
    Registered User
    Join Date
    05-12-2010
    Location
    Adrian, MI
    MS-Off Ver
    Excel 2010
    Posts
    76

    Macro or formula to total sum

    I am looking for a formula or a macro that will total the amounts above it (no spaces)and then divide by 80. I have multiple positions in the company and currently going to the end of each group sum(range)/80. Very time consuming. Just wondering if there is a formula or a macro that will go to the end of each group(no spaces inbetween people) and sum(cell directly aboveshift+ctrl+up arrow)/80.

    Any ideas?
    Last edited by aehartle; 07-02-2010 at 04:11 PM.

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Macro or formula to total sum

    aehartle,

    Please post your workbook.

    Click on the New Post button, then scroll down and see Manage Attachments.
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Registered User
    Join Date
    05-12-2010
    Location
    Adrian, MI
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Macro or formula to total sum

    Sheet1 is how it looks, sheet 2 is how i want it.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Macro or formula to total sum

    aehartle,

    Detach/open workbook For each group in column A separated by at least one blank row - Peter_SSs - aehartle - SDG14.xlsm and run macro SumEachGroup.

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Macro or formula to total sum

    stanleydgromjr

    I'm having difficulty accessing you attachment.

    I supect it is the file name, it reads a bit like a super formula

    This is how it reads

    ..../For%20%each%20%group%20%in%20%column%20%A%20%separated%20%by%20%at%20%least%20%one%20%blank%20%row%20%-%20%Peter_SSs%20%-%20%aehartle%20%-%20%SDG14.xlsm
    I would suggest never using spaces, use underscores, and avoid all characters other than 0 to 9 and a to z (or A to Z)
    We are all guilty of this and usually get away with it, but just sometimes ....


    P.S. looks like someone managed, but I still can't

    P.P.S.
    It can be saved successfully, but still can't open it for temporary viewing.
    Last edited by Marcol; 06-29-2010 at 06:21 PM.

  6. #6
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Macro or formula to total sum

    Marcol, thanks.

    aehartle,

    Detach/open workbook aehartle - SDG14.xlsm and run macro SumEachGroup.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-12-2010
    Location
    Adrian, MI
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Macro or formula to total sum

    Awesome thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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