+ Reply to Thread
Results 1 to 8 of 8

Formula to check that the weightings for various KPI groups all add to 100%

  1. #1
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    943

    Formula to check that the weightings for various KPI groups all add to 100%

    Afternoon all,

    I have a schedule of KPIs that users can amend the percentage of. I'd like to add a formula at the bottom to double check that the sum of the KPI groupings each adds up to 100%.

    Example attached.

    Thanks in advance,

    Snook

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Formula to check that the weightings for various KPI groups all add to 100%

    hi there. how about:
    =SUMPRODUCT(--(1/SUMIF(A2:A25,A2:A25,B2:B25)<>1))=0

    you could wrap IF around it if you want it to return OK or REVIEW

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    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. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,525

    Re: Formula to check that the weightings for various KPI groups all add to 100%

    Maybe try this:

    =IF(SUM(B2:B25) < SUMPRODUCT(--(FREQUENCY(MATCH(A2:A25,A2:A25,0),ROW(A2:A25)-ROW(A2)+1) > 0))*100,"Review","OK")
    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.

  4. #4
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    943

    Re: Formula to check that the weightings for various KPI groups all add to 100%

    Thanks all, benishiryo's solution worked a treat. AliGW's didn't seem to do what I required.

    Regards,

    Snook

  5. #5
    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. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,525

    Re: Formula to check that the weightings for various KPI groups all add to 100%

    In what way did it not do what was required? It provided the output you asked for.

  6. #6
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    943

    Re: Formula to check that the weightings for various KPI groups all add to 100%

    Hi AliGW,

    I've amended the attached so that all of the KPI groups add up to 100% and your solution is outputting 'Review' when I would have expected it to say 'OK'.

    Regards,

    Snook

  7. #7
    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. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,525

    Re: Formula to check that the weightings for various KPI groups all add to 100%

    That's because the cells are set as percentages. Just change the formula to this:

    =IF(SUM(B2:B25) < SUMPRODUCT(--(FREQUENCY(MATCH(A2:A25,A2:A25,0),ROW(A2:A25)-ROW(A2)+1) > 0)),"Review","OK")

  8. #8
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    943

    Re: Formula to check that the weightings for various KPI groups all add to 100%

    Cool, thanks for clarifying.

    Snook

+ 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] Formula to check Groups of same value and return a value based on another Col
    By hammer2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-29-2017, 01:02 AM
  2. [SOLVED] IF formula with asset allocation (and changing weightings & values)
    By whobetta in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-24-2014, 04:05 PM
  3. Need a Formula to Check an Audit Log Against a List of Groups of People
    By badmoon75 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-22-2012, 11:44 AM
  4. ActiveX Check Box - Groups w Only one Value Allowed
    By BrianFawcett in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 06-14-2011, 10:59 AM
  5. Check if all option button groups have a value
    By ker9 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-04-2011, 11:02 AM
  6. Proportionate weightings
    By seputus in forum Excel General
    Replies: 3
    Last Post: 03-29-2010, 11:33 PM
  7. Complex Array Formula - Scores and Weightings
    By jw191 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-21-2008, 10:04 AM

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