+ Reply to Thread
Results 1 to 6 of 6

How to Calculate Group Total Automatically

  1. #1
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    How to Calculate Group Total Automatically

    Hello All,

    I have table of Data containing Quantity of each Item.

    That table contains different items by different groups.

    Now in a separate space I want output or calculate the total of the each Item Group.

    In the sample workbook I entered the totals manually..,

    Please give the formula or VBA code to get this automatically ..

    Thanks in advance ..
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,427

    Re: How to Calculate Group Total Automatically

    You need to define somewhere on your sheet what classes as a vegetable, what a fruit, and what is neither, then you can do the calculation.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,358

    Re: How to Calculate Group Total Automatically

    I add "Category" (Fruits,Vegetables,Non Veg) in column B as per Ali's post;

    =SUMIF(Table1[Category],F3,Table1[QTY])
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: How to Calculate Group Total Automatically

    Thanks for the reply
    I will check it
    And reply soon ..

  5. #5
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: How to Calculate Group Total Automatically

    It's working ..
    I tried below one too

    =sumifs(table1[qty], table1[category], F3)

    Thank you so much who helped me..

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,358

    Re: How to Calculate Group Total Automatically

    Thank you for the feedback.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Calculate total hours automatically deducting lunch breaks
    By GregoryB in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-03-2019, 11:58 AM
  2. How to set auto function for grand total to calculate automatically
    By sham159 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-16-2014, 09:58 PM
  3. Calculate implied CAGR from group of total (cumulative) cash flows.
    By heski2 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-17-2014, 09:43 PM
  4. Calculate total amouth by group
    By unokam in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-09-2013, 01:49 PM
  5. Loop through group of values, calculate a total
    By JHizzal in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-07-2012, 02:08 PM
  6. Sort a group of names based on the group total
    By ron2k_1 in forum Excel General
    Replies: 3
    Last Post: 08-13-2010, 01:16 PM
  7. Cross Verification of Group total automatically.
    By sethumurugan in forum Excel General
    Replies: 1
    Last Post: 08-13-2009, 02:45 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