+ Reply to Thread
Results 1 to 12 of 12

Calculate sum from weighed cells

  1. #1
    Registered User
    Join Date
    04-08-2021
    Location
    San Antonio
    MS-Off Ver
    365
    Posts
    33

    Calculate sum from weighed cells

    I have a couple ask off this. I'm setting up an Audit form. Audit will either be for "Mail Prep" or "Fulfillment", will never be both. Each of those will have their own set of categories. The value for each category will either be "Yes" or "No", which is represented by the drop downs. For "Mail prep", the weight for each category is highlighted in yellow. Example... If Values in E11:E27 are all true, then the Audit value (G5) should be 100. If Values in K11:K23 are all true, then the Audit value (G5) should be 100.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Calculate sum from weighed cells

    Maybe, =COUNTIF(E11:E27,"YES")/(COUNTIF(E11:E27,"YES")+COUNTIF(E11:E27,"NO"))*100

  3. #3
    Registered User
    Join Date
    04-08-2021
    Location
    San Antonio
    MS-Off Ver
    365
    Posts
    33

    Re: Calculate sum from weighed cells

    Definitely a good start! E11 through E27 have different weight behind them (as highlighted in yellow). For instance, if doing the "Mail Prep" Audit and E17 is a "NO", then the score should be 60, not 89.

  4. #4
    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
    30,889

    Re: Calculate sum from weighed cells

    This ??

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



    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    Registered User
    Join Date
    04-08-2021
    Location
    San Antonio
    MS-Off Ver
    365
    Posts
    33

    Re: Calculate sum from weighed cells

    Def making progress. One last question...both formulas work, but how do I format G5 to reflect both formulas?

  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
    30,889

    Re: Calculate sum from weighed cells

    If Values in E11:E27 are all true, then the Audit value (G5) should be 100. If Values in K11:K23 are all true, then the Audit value (G5) should be 100.
    You tell me as the above suggests only ONE audit is "actioned" at a given point ! If both are 100, then what do you expect in G5?

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

  7. #7
    Registered User
    Join Date
    04-08-2021
    Location
    San Antonio
    MS-Off Ver
    365
    Posts
    33

    Re: Calculate sum from weighed cells

    This works, thank you soo much!!

  8. #8
    Registered User
    Join Date
    04-08-2021
    Location
    San Antonio
    MS-Off Ver
    365
    Posts
    33

    Re: Calculate sum from weighed cells

    Hi there! Following up on this.... if I wanted to add the "N/A" in addition to the "YES" that are in E11:E27, how would I incorporate that into the formula you gave me? I tried ($E$11:$E$27="YES","N/A") but that didn't work.

  9. #9
    Registered User
    Join Date
    04-08-2021
    Location
    San Antonio
    MS-Off Ver
    365
    Posts
    33

    Calculate sum from weighed cells

    Hello!

    I was given this formula (below) to use to sum weighed categories, works great. I'm just wanting to add "N/A" to the formula. In other words, the formula below is perfect, but in addition to the "YES", I would like "N/A", when chosen on drop down, to be calculated as well. I tried to change formula to ($E$11:$E$27="YES","N/A but that doesn't do the trick. What am I missing?



    =SUMPRODUCT(--($E$11:$E$27="YES"),($A$12:$A$28))+SUMPRODUCT(--($K$11:$K$23="YES"),($G$12:$G$24))

    MODERATOR COMMENT: I have merged your two threads as the second one is a continuation of the first. Please do not duplicate requests for assistance.
    Attached Files Attached Files
    Last edited by alansidman; 09-17-2024 at 01:50 PM.

  10. #10
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,754

    Re: Calculate sum from weighed cells

    If the value is N/A then it should have the same value as a "YES"? Just clarifying my understanding.

    PHP Code: 
    =SUMPRODUCT(--($E$11:$E$27="YES"),($A$12:$A$28))+SUMPRODUCT(--($K$11:$K$23="YES"),($G$12:$G$24))+SUMPRODUCT(--($E$11:$E$27="N/A"),($A$12:$A$28))+SUMPRODUCT(--($K$11:$K$23="N/A"),($G$12:$G$24)) 
    Last edited by alansidman; 09-17-2024 at 01:44 PM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  11. #11
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2021
    Posts
    1,013

    Re: Calculate sum from weighed cells

    Hi Rebel17,

    There's no doubt a better solution but this appears to work.

    Please Login or Register  to view this content.
    I hope this helps,

    Snook

  12. #12
    Registered User
    Join Date
    04-08-2021
    Location
    San Antonio
    MS-Off Ver
    365
    Posts
    33

    Re: Calculate sum from weighed cells

    Works perfectly, thank you soo much!

+ 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] Return blank cell if other cells empty, calculate percentage value if other cells filled
    By Kerry1980 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-07-2022, 09:25 AM
  2. Count cells in a dynamic range, calculate their percentage in respect to total cells.
    By DimitriosNikolouzos in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2019, 11:36 AM
  3. [SOLVED] Weighed Grade formula stop working with blank cell
    By lizsantiago07 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-14-2017, 06:51 PM
  4. [SOLVED] Need help with a weighed average function please :)
    By JCarollo765 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-01-2014, 04:27 PM
  5. Weighed Average
    By 0-0 Wai Wai ^-^ in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-07-2005, 11:10 AM
  6. [SOLVED] Weighed Average of a weiged average when there are blanks
    By krl - ExcelForums.com in forum Excel General
    Replies: 1
    Last Post: 07-06-2005, 03:05 PM
  7. Weighed average if the adjecent column contains blanks
    By Kasimir Lehväsl in forum Excel General
    Replies: 2
    Last Post: 07-04-2005, 05:12 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