+ Reply to Thread
Results 1 to 8 of 8

COUNTIF assistance, factoring in weighting

  1. #1
    Registered User
    Join Date
    02-17-2015
    Location
    Chester, England
    MS-Off Ver
    2013
    Posts
    4

    Question COUNTIF assistance, factoring in weighting

    Hi All,

    New member here, so plese be gentle

    Here is a table that I have created:
    Capture.JPG

    Each option (compliant, not compliant, potential, out of scope) are selected via dropdowns.

    The formula calculating the % result is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This was all fine until i realised that I needed to add another column for each selection.
    Capture1.JPG

    Now I need to factor in that each column is weighted, which need to be factored into the % result. The picture shows a result of 25% but really, it needs to show 67%.

    Does anyone have any ideas on how i can do this?

    Your help is much appreciated. Let me know if you need any more info
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by ripcorder; 02-18-2015 at 08:29 AM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: This is hurting my brain!

    You should edit the subject of this post as per the rules, see Point 1

    http://www.excelforum.com/forum-rule...rum-rules.html

    before a moderator spots it, a knock on effect of this breach is if we try to solve your problem the mods chastise us too!
    So change it quickly if you want a speedy response.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: This is hurting my brain!

    Quote Originally Posted by Special-K View Post
    You should edit the subject of this post as per the rules, see Point 1

    http://www.excelforum.com/forum-rule...rum-rules.html

    before a moderator spots it, a knock on effect of this breach is if we try to solve your problem the mods chastise us too!
    So change it quickly if you want a speedy response.
    That's corect!

    ripcorder

    Welcome to the forum.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    02-17-2015
    Location
    Chester, England
    MS-Off Ver
    2013
    Posts
    4

    Re: COUNTIF assistance, factoring in weighting

    Thanks for the heads up! Won't happen again

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: COUNTIF assistance, factoring in weighting

    It's actually SUMIF

    I dont like doing it this way but I cant see another method just yet

    =(A1*(B1="Compliant")+C1*(D1="Compliant")+E1*(F1="Compliant")+G1*(H1="Compliant"))/SUM(A1:G1)
    and copy down the column


    UPDATE: This works

    =SUMIF(B1:H1,"Compliant",A1:G1)/SUM(A1:G1)
    Last edited by Special-K; 02-18-2015 at 08:08 AM.

  6. #6
    Registered User
    Join Date
    02-17-2015
    Location
    Chester, England
    MS-Off Ver
    2013
    Posts
    4

    Re: COUNTIF assistance, factoring in weighting

    Hi Special k,

    Thanks for the quick responce!

    The formula you have given works for that set of results, but if the dropdowns changes, the result stays the same? I need it to adapt to the selections in the drop downs as well as the numbers indicationg the weighting.

    Capture2.JPG

    Thanks again

    UPDATE:

    IGNORE ME...I'm an idiot!!

    Thanks so much for your help!! Much appreciated
    Last edited by ripcorder; 02-18-2015 at 08:28 AM.

  7. #7
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: COUNTIF assistance, factoring in weighting

    When you set up the dropdowns dont you refer to a cell to store the value of the dropdown?
    If so just use that cell reference.

    Might be better to upload your file.

  8. #8
    Registered User
    Join Date
    02-17-2015
    Location
    Chester, England
    MS-Off Ver
    2013
    Posts
    4

    Re: COUNTIF assistance, factoring in weighting

    It's ok...I figured out where I went wrong. I copied your formula into the wrong row, so the cell references weren't right. School boy error!

    Thanks again for the help

+ 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. Brain Freeze or old age
    By bscs in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 05-15-2014, 11:17 PM
  2. best Formula to caculate a wage threshold
    By agalinauskas in forum Excel General
    Replies: 1
    Last Post: 07-05-2012, 03:19 PM
  3. VBA Brain Needed!
    By MAMC84 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-10-2008, 12:21 PM
  4. my brain is stuck
    By samsebastian in forum Excel General
    Replies: 1
    Last Post: 03-27-2008, 09:26 AM
  5. Brain Dead
    By CBrausa in forum Excel General
    Replies: 3
    Last Post: 08-16-2006, 09:50 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