A question for the Maths/Excel gurus!

by condra
8 replies
  • OFF TOPIC
  • |
Hi folks,

I'm working on a spreadsheet at the moment which has a scoring system built in. I'm struggling with simplifying the formulae, so I'm hoping someone here might have some ideas. I'm not much of a maths person unfortunately.

I'll try to explain the system as simply as possible, using a crude fruit analogy.

.................................................. ..

Apples, bananas, peaches etc.
I want to give each fruit an overall score, based on three very different, non related criteria, eg, taste (T), availability (A), and shelf-life (S)...

Some scores are subjectively awarded, and others are empirical, but either way, I award a rating out of 10 for each of the criteria T, A and S.

The catch...
The catch, is that a zero awarded to any of the criteria, needs to nullify the overall score.

What good is a tasty apple with 3 months shelf life, if there is no availability? And what good is a tasty apple with copious supply, if shelf-life is less than an hour?

Adding or averaging...
So if I simply add the points, an overall score of 20 could be awarded for (T=0, A=10, S=10), when it should get no score, or very little.
(T=3, A=3, S=3) would actually be preferable, but only gets a score of 9 using simple adding.

Multiplying
I thought about multiplying, because once there is a zero in the equation, everything is nullified.

It's seems to be closer to what I need, but the ranges of results (1-1000) are dramatic.

The only problem is that I can see is that 10x10x1 would beat 4x4x4 (for example), when the less problematic 4x4x4 is much more ideal.
I guess you could think of it like a house of cards. I want as little weakness as possible. 10,10,10 is the ideal, but I would go with 4,4,4 any day over 10,10,1.....

Pulling my hair out.
I think I might have get used to the fact that a simple formula won't work, and I might need to create some sort of bonus system.

.................................................. ..

Thanks in advane for any help with this!
  • Profile picture of the author Gail_Curran
    Can you handle an IF function?

    If we assume that each fruit is on a separate line (1,2,3) and each criteria is in a separate column (A,B,C) then this formula tests whether the value of zero is present in any of the criteria columns. If a zero is present in any column, then the total score is automatically zero. If not, the formula sums (adds) the values in columns A, B, and C to get a final score, which appears in the cell where you put the formula. You would copy the formula to each row, making sure that the letters and numbers match your actual spreadsheet columns and rows.

    =IF(A2=0,0,IF(B2=0,0,IF(C2=0,0,(SUM(A2,B2,C2)))))
    {{ DiscussionBoard.errors[6895652].message }}
  • Profile picture of the author condra
    Thanks for the reply.

    It's certainly a start, though it would still be skewed towards those with any large number, over the "good all rounders", e.g., 10,10,1 would beat 6,6,6 ...
    Signature
    Abstract brand name generator. FREE.
    __________________________________________________ ___________________________
    {{ DiscussionBoard.errors[6895680].message }}
    • Profile picture of the author Gail_Curran
      Well, you can do just about anything you want with enough formulas. You need to decide what the cutoff number is - for instance, if 3 is the lowest criteria score you want to accept, you could apply a discount or penalty to any series of criteria scores that contains a 1 or 2.

      In essence, you want to scan the whole series of criteria scores and take certain actions based on what's there. If there's a zero, the final score is automatically 0. If there's a 1, then apply a penalty to the preliminary final score (maybe a penalty of -5), so that the final score indicates that it's a less desirable option than a good all-rounder. If there's a 2, apply a penalty of -4. You'd have to play with the numbers to figure out what penalties make sense.
      {{ DiscussionBoard.errors[6895749].message }}
      • Profile picture of the author condra
        Thanks again Gail. I was thinking along those lines, but I don't believe there is a straightforward way of finding the lowest value in a number of cells in Excel, without some programming savvy, though I would gladly be proven wrong.

        I think I can figure out an automatic penalty/bonus system ("IF B2<=5" etc) like the one you mentioned, if I basically double up on the number of values, e.g.,

        T, T-Bonus, A, A-Bonus, S, S-Bonus.
        Score = Sum of those
        Signature
        Abstract brand name generator. FREE.
        __________________________________________________ ___________________________
        {{ DiscussionBoard.errors[6895800].message }}
        • Profile picture of the author Gail_Curran
          I'm pretty sure it can be done, but I'm not enough of an expert to know how offhand. Your method would probably work just fine. That's the nice thing about Excel - there are many ways of accomplishing the same task.
          {{ DiscussionBoard.errors[6895871].message }}
  • Profile picture of the author kenmichaels
    correct me if i am wrong, but you can actually use vb script in excell.

    therefor applying the

    if -- then

    else
    Signature

    Selling Ain't for Sissies!
    {{ DiscussionBoard.errors[6895887].message }}
    • Profile picture of the author condra
      Hi,

      Thanks for the reply.

      You can indeed use script in excel, but I'm hoping to find a simple, elegant, mathematical solution if possible.

      I'm looking into a penalty system using squares/cubes/fibernacci but my brain is fried!
      Signature
      Abstract brand name generator. FREE.
      __________________________________________________ ___________________________
      {{ DiscussionBoard.errors[6896192].message }}
  • Profile picture of the author jakebvs85
    You can actually do it in php by nesting..maybe this one will help you. Convert Excel Formula to IF/Else in PHP - Stack Overflow
    {{ DiscussionBoard.errors[6896634].message }}

Trending Topics