+ Reply to Thread
Results 1 to 6 of 6

Applying a multiplier based on data validation selection

  1. #1
    Registered User
    Join Date
    06-07-2012
    Location
    Sydney, Australia
    MS-Off Ver
    365
    Posts
    52

    Applying a multiplier based on data validation selection

    Hello all,

    I am in need of some help with a formula.

    I have attached a sample spreadsheet of what I am "sort of" trying to accomplish.

    https://www.excelforum.com/attachmen...1&d=1574803896

    I have a series of score weighted questions, and as the user fills out the spreadsheet I would like it to compare the weight of the question and the value chosen and apply a multiplier and then provide a grand total at the bottom.

    So a Yes response is worth the full weighted value... A maybe is worth 50% of the weighted value and a No is worth zero... Add all the responses up and provide a total score.

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.97.2 for Mac MS 365
    Posts
    8,717

    Re: Applying a multiplier based on data validation selection

    not sure what answer you want, let's say you have yes, maybe, maybe and no, what answer do you expect, a sum for the value of eacy? this will get you that...
    =SUMPRODUCT((D3:D6={"maybe","yes"})*({0.5,1}))
    that will return 2, .5 for both maybes and 1 for the yes.
    now if you want a weighted average, maybe this instead...
    =SUMPRODUCT((D3:D6={"maybe","yes"})*({0.5,1}))/SUM(COUNTIF(D3:D6,{"yes","maybe"}))
    that will return .667 for the same selected answers above which is the addition of the two .5s and the 1 divided by 3 for the total.
    didn't see the point in adding in the no answer since it equals 0 and therefore no weight.
    if however you want the weighted average to include no answers then...
    =SUMPRODUCT((D3:D6={"maybe","yes"})*({0.5,1}))/COUNTA(D3:D6)

    BTW, the no won't change the output... =SUMPRODUCT((D3:D6={"no","maybe","yes"})*({0,0.5,1}))
    Last edited by Sam Capricci; 11-26-2019 at 05:55 PM.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    06-07-2012
    Location
    Sydney, Australia
    MS-Off Ver
    365
    Posts
    52

    Re: Applying a multiplier based on data validation selection

    Hey Thanks for that.

    What I want if we are using your example of yes, maybe, maybe, no is....
    Q1: 5x1= 5
    Q2: 10x0.5 = 5
    Q3: 5x0.5 = 2.5
    Q4: 20 x 0 = 0

    Total score=12.5

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.97.2 for Mac MS 365
    Posts
    8,717

    Re: Applying a multiplier based on data validation selection

    You don’t have 5 question ones, you only showed one question one with three possible answers. Unless you are saying question one is worth 5 points and question two 10 points and question three- 5 points and question 4 - 29?

    If so I’m on an iPad now so unless someone else comes along I’ll revisit it later.

  5. #5
    Registered User
    Join Date
    06-07-2012
    Location
    Sydney, Australia
    MS-Off Ver
    365
    Posts
    52

    Re: Applying a multiplier based on data validation selection

    Yes so the 2nd half of your comment is true'ish

    The left most column with the heading weight is the maximum value a person can achieve so they can get 100% with yes, 50% with maybe and 0% with no.

    So...

    Q1 can have 3 values based on yes,maybe,no and that is 5,2.5,0
    Q2 10,5,0
    Q3 5,2.5,0
    Q4 20,10,0

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.97.2 for Mac MS 365
    Posts
    8,717

    Re: Applying a multiplier based on data validation selection

    so let's try this for now... =SUMPRODUCT((D3:D6={"no","maybe","yes"})*({0,0.5,1})*(B3:B6))
    that seems to return what you are looking for.

+ 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. Replies: 1
    Last Post: 01-14-2018, 11:04 AM
  2. Changing Tab Based of Data Validation Selection
    By skate1991 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-12-2017, 06:20 AM
  3. [SOLVED] Add Data Validation to cells based on listbox selection
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-16-2016, 10:56 PM
  4. [SOLVED] Applying filtering on data validation selection
    By Franki81 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-05-2016, 07:09 AM
  5. Applying a 'multiplier' to a cell then adding another?!?! Plz help :-)
    By 5uropnz in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 11-25-2013, 01:56 AM
  6. Replies: 2
    Last Post: 05-02-2012, 07:31 AM
  7. Data validation for multiplier values
    By Egan in forum Excel General
    Replies: 2
    Last Post: 05-24-2010, 02:35 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