+ Reply to Thread
Results 1 to 7 of 7

Calculating score based on criteria

  1. #1
    Forum Contributor
    Join Date
    08-19-2006
    MS-Off Ver
    Excel 365
    Posts
    229

    Calculating score based on criteria

    Hi All,

    I have a spreadsheet which calculates the score for a particular item.

    In cell M5, the answer should be 30 since the rating is 3 and weightage is 10 ( 3 X 10).

    How do I automate this task via a formula ?


    Appreciate help.

    Thanks in advance.
    Attached Files Attached Files
    Last edited by Kumara_faith; 03-20-2009 at 12:30 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Calculating score based on criteria

    Put this in M5 and copy down:

    =MATCH("√",D5:I5,0)*K5
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    08-19-2006
    MS-Off Ver
    Excel 365
    Posts
    229

    Re: Calculating score based on criteria

    Hi there,

    The formula works.

    I am just curious. How does the formula know what the value of the rating is since I dont see the formula referencing any of the rating cells ?

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Calculating score based on criteria

    MATCH returns the position of the matched value within lookup_array, not the value itself. For example, MATCH("b",{"a","b","c"},0) returns 2, which is the relative position of "b" within the array {"a","b","c"}.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Calculating score based on criteria

    You made it easy. The MATCH formula returns a numeric "place in array" as an answer. So, I looked for the checkmark in a range of 6 cells and it returns the "place" in that array that it is found. For instance, the first checkmark is found in the THIRD position of the array, so the formula returns a "place" answer of 3.

    The fact that you've also labeled those rows with the same exact number is sheer coincidence and allowed us to stop there. If the columns had OTHER values in them (like 5,10,15,20 etc), then we would have had to use a combination of INDEX/MATCH.

    That formula would have been:

    =INDEX($D$4:$I$4,MATCH("√",D5:I5,0))*K5

  6. #6
    Forum Contributor
    Join Date
    08-19-2006
    MS-Off Ver
    Excel 365
    Posts
    229

    Re: Calculating score based on criteria

    Thank you for the explanation.

    This has been solved.

    Thank you again for your time and patience.
    Last edited by Kumara_faith; 03-16-2009 at 08:39 PM.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Calculating score based on criteria

    If that takes care of your need, be sure to EDIT your original post (Go Advanced) and mark the PREFIX box [SOLVED]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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