+ Reply to Thread
Results 1 to 11 of 11

Excel weighting

  1. #1
    Registered User
    Join Date
    01-28-2019
    Location
    SYdney
    MS-Off Ver
    2016
    Posts
    3

    Excel weighting

    Hi all,

    Looking for some help, as I am struggling to get an answer that works.

    Example:
    - I have a number of items listed (currently 70 line items) with a scoring system attached to each line (1.00-3.50)
    - from these line items, certain items will be picked throughout the year and I need to create a measuring system to understand the risk associated with them.

    - Anything between 1.00-2.00 will immediately raise a red flag and overrides all remaining rules.
    - if I then split the remaining items in 0.50. If 2 items from 2.00-2.50 are picked then a red flag is raised. If 3 items from 2.50-3.00 then a red flag raised. If 4 items picked from 3.00-3.50 then a red flag raised.

    - if the total number of items between 2.00-3.50 equates to 6 and the above flags aren’t raised, then a red flag is raised as the risk of these items is over then defined threshold.

    How exactly would I build this? Getting confused and falling short somewhere!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Excel weighting

    Hi, welcome to the forum

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Excel weighting

    Here is an attempt. Items are in col-A, scores are in col-B. Put a "y" in col-C for each picked item. I have dealt with each of your 5 conditions separately with formulas in D2:H2

    Here is the formula in E2 which covers the condition: "If 2 items from 2.00-2.50 are picked then a red flag is raised"

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


    Other formulas are similar.

    Finally I2 is set to TRUE of any of the 5 conditions are true. I then used conditional formatting to make your red flag (cell I2) red.

    See the attached workbook.
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Excel weighting

    Quote Originally Posted by GeoffW283 View Post
    Here is an attempt...
    Nice attempt

  5. #5
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Excel weighting

    Thanks Ford - and thanks for the rep!

  6. #6
    Registered User
    Join Date
    01-28-2019
    Location
    SYdney
    MS-Off Ver
    2016
    Posts
    3

    Re: Excel weighting

    Hi geoff,

    Really like this, thank you!

    Have played around, but seem to have made a mistake somewhere? Only generating false
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Excel weighting

    The problem is that all your values in column B are "text" - they need to be numbers!

    One way to fix: select B2:B60,left-click on the yellow alert and select "convert to number"

    In fact I have fixed it in a revised version of your workbook (attached).
    Attached Files Attached Files
    Last edited by GeoffW283; 01-28-2019 at 08:28 PM.

  8. #8
    Registered User
    Join Date
    01-28-2019
    Location
    SYdney
    MS-Off Ver
    2016
    Posts
    3

    Re: Excel weighting

    Thanks, stupid mistake on my end!

    Another question (trying to look at another option of grouping this), if I wanted to take an average score rather than an absolute number, how would I go about that?
    i.e. between 2.51 - 3.00, if the average is greater than "X" value then a red flag (rather than 3 items being selected).

  9. #9
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Excel weighting

    Here is the formula that does what you want, I think. I have made your "X" = 2.7, and I'd have thought that the test would be less than "X" rather than greater than "X" ??
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I have added this as condition-6 in the attached workbook.
    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Excel weighting

    And thanks by the way for the reputation points

  11. #11
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,224

    Re: Excel weighting

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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.

+ 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] Weighting Issue
    By ScabbyDog in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-18-2013, 01:35 PM
  2. Replies: 14
    Last Post: 07-10-2012, 11:54 AM
  3. weighting attrition
    By ballalos in forum Excel General
    Replies: 3
    Last Post: 02-23-2010, 08:10 PM
  4. Replies: 5
    Last Post: 08-31-2009, 05:56 PM
  5. Weighting example in excel
    By Sir08 in forum Excel General
    Replies: 2
    Last Post: 02-23-2008, 05:15 PM
  6. weighting a cell
    By kimber843 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-04-2006, 02:01 AM
  7. weighting a value?
    By jvan100 in forum Excel General
    Replies: 3
    Last Post: 11-30-2005, 02:00 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