+ Reply to Thread
Results 1 to 5 of 5

Percentage of total product mix for each country/geographic region

  1. #1
    Registered User
    Join Date
    08-03-2019
    Location
    Hong Kong
    MS-Off Ver
    2018
    Posts
    2

    Question Percentage of total product mix for each country/geographic region

    Hi Superusers,

    I am running into an efficiency related problem when I am trying to calculate a percentage of total product mix for each geographic region. Please refer to the attached. In the example, I have the same number of rows/products under each geographic region, and for each product (i.e., product 1, product 2, product 3), I want to calculate the percentage of total in columns M to V (please kindly refer to the formula I have right now). It is pretty simple if I only have a few geographic region, I can drag the formula down for all regions. And for each region, I manually change the denominator to the sum of product 1, product 2 and product 3 as in my original formula, I have locked the rows to row 9, 10, 11. My question is, is there a more efficient way/or a formula so I can simply drag the formula down without manually updating the denominator every time assuming I have many regions (with over 5000 rows of data)? I did some research on the offset function but can't wrap my head around how it could help in this situation. Appreciate the help in advance!
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,022

    Re: Percentage of total product mix for each country/geographic region

    Insufficient information, I think!!

    Where is the formula?

    What do you expect to see?

    Where do you expect to see it?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    08-03-2019
    Location
    Hong Kong
    MS-Off Ver
    2018
    Posts
    2

    Re: Percentage of total product mix for each country/geographic region

    Hi Glen,

    The formula starts from cell M9, and I intend to drag the formula down the rows to make it efficient (across column M to column V and down the rows), but the problem is, for example, in row 22, the total is suppose to pick up row 22 to 24, but due to the nature of my original formula, it is picking up row 9 to row 11 (locked in rows). To make the analysis work, I will have to manually update the sums to pick up rows 22 to 24 (and I will have to repeat this manual process for each geographic region). Is there a way I can apply one formula without the manually changing the sums for each geographic region? Please let me know if this makes sense.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,022

    Re: Percentage of total product mix for each country/geographic region

    The data layout is going to make this somewhere between difficult and impossible. I have re-formatted the sheet appropriately. In (now), N9 copied across to (now) Q9 and down:

    =IFERROR(D9/SUMPRODUCT(($A$9:$A$85=$A9)*($B$9:$B$85<>"")*D$9:D$85),"")
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Percentage of total product mix for each country/geographic region

    Great job Glenn. I've been messing with this too, the original data layout wasn't usable. . .I had looked for a way to autopopulate the country names every 12th row, but I couldn't get there. . .then to calculate the percentages. . ughh. Good work.

    Pete

+ 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] Returning a value from 1 column based on the country/region
    By kafarrell in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-29-2017, 04:25 PM
  2. country specific product numbers
    By chief_abound in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-01-2016, 01:15 AM
  3. Replies: 4
    Last Post: 04-04-2013, 03:44 PM
  4. Matching Zip Codes to Geographic Region
    By dforte in forum Excel General
    Replies: 3
    Last Post: 10-03-2011, 05:48 PM
  5. Cascading Country Region Comboboxes on a Userform
    By jnet in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-17-2011, 10:16 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