+ Reply to Thread
Results 1 to 6 of 6

% of category total

  1. #1
    Registered User
    Join Date
    11-09-2016
    Location
    London, England
    MS-Off Ver
    2010, 365
    Posts
    6

    % of category total

    Hi All,

    I want to find a quicker way to make a % of category total, below is an example to help illustrate my question.

    Red Apples 3 33%
    Green Apples 5 56%
    Pink Apples 1 11%
    Apples Total 9
    Green Pear 4 40%
    Red Pear 6 60%
    Pears Total 10
    Red Grapes 7 25%
    Green Grapes 9 32%
    Mixed Grapes 12 43%
    Grapes Total 28

    At the moment I type the formula "=B1/$B$4", then drag up to the end where I see a blank, and then repeat. Surely there is a quicker method, I would be very grateful if you could help with an answer or even point me in the right direction.

    Thanks in advance

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: % of category total

    Hi,

    Please upload a workbook. This is clearly out of context and we have no idea how B1 or B4 relates to the data you show.
    Manually add the results you expect and clearly explain which cells are data and which are results.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    11-09-2016
    Location
    London, England
    MS-Off Ver
    2010, 365
    Posts
    6

    Re: % of category total

    Hi All,

    So B4, is the total category of items sold per week (all bold numbers are the totals sold per week). What I would like to know is how many red apples are sold as a % of total apples per week.
    But I wish to use a method where I could speed this process up for all types of fruit, instead of manually typing C2=B2/$B$5, then dragging this down until I see a category total.

    Not all categories have the same number of items so this may be a little more tricky.

    Any help would be greatly appreciated. once again if anything is missing or requires further information please do not hesitate to ask.

    Thanks in advance.
    Attached Files Attached Files

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: % of category total

    Hi,

    See Sheet2 where I have added a Pivot Table which gives the results you want.
    You'll need to re-arrange your data as show.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-09-2016
    Location
    London, England
    MS-Off Ver
    2010, 365
    Posts
    6

    Re: % of category total

    Thanks Richard,

    This is exactly what I needed.

    so I can adjust the values by going to Pivot Table Options> Value Field Settings> (Tab) Show Values As> Select % of Parent Row Total.

    This will save me lots of time in the future!

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: % of category total

    Quote Originally Posted by oO P2K Oo View Post
    Thanks Richard,

    This is exactly what I needed.

    so I can adjust the values by going to Pivot Table Options> Value Field Settings> (Tab) Show Values As> Select % of Parent Row Total.

    This will save me lots of time in the future!
    It depends. You wouldn't normally want to change the 'show values as' unless you don't want to see the %s in the PT.
    When you say you want to adjust the values, I'm assuming your're implying that the numbers in the Data have changed, or that you've added new rows to the data. To be clear the Data I'm talking about is A1:C9 on Sheet2.

    To automate this a bit more you should apply a dynamic range name to the data so that if you add new rows then the range name will automatically expand. So create a range called say "data" and define it as

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Now click anywhere in the Pivot Table and at the top select 'Pivot Table Tools', select the Change Data Source item and enter the name Data.

    Now if the data changes or you add new rows you just need to refresh the Pivot Table. Right click anywhere in it and choose 'Refresh'
    This last bit could be automated with a macro but you may find it simple enough to remember to right click & Refresh.

  7. #7
    Registered User
    Join Date
    11-09-2016
    Location
    London, England
    MS-Off Ver
    2010, 365
    Posts
    6

    Re: % of category total

    Apologies for the delayed reply, I have been away on holiday.

    By adjusting, I meant the way the numbers are formatted. i.e. whole numbers, or %s per parent line or entire table etc.

    The dynamic range name seems like a great tool to use. Thanks for the additional information I will try to incorporate that on my next set.

    Thank you all!

  8. #8
    Registered User
    Join Date
    11-09-2016
    Location
    London, England
    MS-Off Ver
    2010, 365
    Posts
    6

    Re: % of category total

    Apologies for the delayed reply, I have been away on holiday.

    By adjusting, I meant the way the numbers are formatted. i.e. whole numbers, or %s per parent line or entire table etc.

    The dynamic range name seems like a great tool to use. Thanks for the additional information I will try to incorporate that on my next set.

    Thank you all!

+ 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] Total count by category
    By treyk in forum Excel General
    Replies: 3
    Last Post: 10-04-2016, 03:20 AM
  2. Subtracting category count by Grand Total
    By forrestgump1980 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-01-2015, 08:14 AM
  3. Formula to multiply total number per category with the % of total
    By tantcu in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-13-2013, 07:18 PM
  4. [SOLVED] get total values based on category
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-28-2012, 01:13 PM
  5. Replies: 2
    Last Post: 04-18-2012, 08:08 PM
  6. [SOLVED] calculate total for only cells in a specific category
    By pyrofenix in forum Excel General
    Replies: 2
    Last Post: 12-11-2008, 02:27 AM
  7. Replies: 2
    Last Post: 05-08-2006, 07:10 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