+ Reply to Thread
Results 1 to 6 of 6

Look for a macro which summarize all values to determine the sum of a specific category

  1. #1
    Registered User
    Join Date
    11-02-2020
    Location
    Germany
    MS-Off Ver
    O365
    Posts
    2

    Question Look for a macro which summarize all values to determine the sum of a specific category

    Hello,
    my excel sheet looks like this.
    excel_stackoverflow1.PNG

    I want to summarize all values below #N/A.
    • 2
    • 3
    • 4
    • 6
    • 9

    The sum belongs to the Kategorie "11111".

    The next are:
    • 1
    • 2
    • 3
    • 4
    • 5

    and so on. Means please summarize all values under N/A and write the sum in the Column C. (Refer to the picture).
    Then if you see another #NV, start again with summarizing.

    I can't do that manually because I have almost 20.000 rows.

    Please help me to find a better solution. Thanks

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Look for a macro which summarize all values to determine the sum of a specific categor

    This macro assumes that the number of values to sum will always be 5. If that is not the case, the macro will have to be modifed.
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Look for a macro which summarize all values to determine the sum of a specific categor

    See if this will work for you.

    Please Login or Register  to view this content.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  4. #4
    Registered User
    Join Date
    11-02-2020
    Location
    Germany
    MS-Off Ver
    O365
    Posts
    2

    Re: Look for a macro which summarize all values to determine the sum of a specific categor

    Quote Originally Posted by Mumps1 View Post
    This macro assumes that the number of values to sum will always be 5. If that is not the case, the macro will have to be modifed.
    Please Login or Register  to view this content.
    Thank you very much for your help. It is not always 5. How can I determine the numbers/range correctly?
    Thanks, Jonas1998

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Look for a macro which summarize all values to determine the sum of a specific categor

    1)
    Please don't quote whole posts -- it's just clutter.*If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding

    2)
    try
    Please Login or Register  to view this content.

  6. #6
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Look for a macro which summarize all values to determine the sum of a specific categor

    Did you try the code in post #3

+ 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. [SOLVED]VLookup to determine percent complete for a specific category.
    By communistflamingo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-02-2015, 03:05 PM
  2. [SOLVED] Power Pivot Summarize Value By Category From Total
    By goss in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-24-2014, 05:52 AM
  3. formula - vba to summarize by money category
    By Fugazi_Dent in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-12-2013, 11:44 AM
  4. [SOLVED] How to summarize daily schedule by value and category?
    By briancox22 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 02-22-2013, 11:41 AM
  5. Count values that are assigned a specific category
    By rbalrich in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-02-2012, 07:36 PM
  6. [SOLVED] Productsum: Highest Frequency Category, Specific Main Category, Frequency of Category
    By T86157 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-24-2012, 12:43 PM
  7. Bar Chart - how to colour specific category axis values.
    By Richard Buttrey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-27-2010, 08:58 AM

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