+ Reply to Thread
Results 1 to 17 of 17

Formula to lookup a score that requires two different methodologies

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2021
    Posts
    1,013

    Formula to lookup a score that requires two different methodologies

    Evening all,

    I've pulled together a potential solution to calculate some scores but it contains a hard coded element which I'm not particularly keen on. I'd be interested to learn if there are any better practice solutions to this problem?

    The attached shows what I'm working with and the green cells (G3:G7) show expected outcomes. The scoring system is essentially a sliding scale where maximum marks are returned for achieving 100%, with the points awarded decreasing as you move away from this point. A standard approximate VLOOKUP works up to 100%, but the approach needs to change once the value exceeds this (hence why I manually add on 0.05).

    Thanks in advance,

    Snook

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,292

    Re: Formula to lookup a score that requires two different methodologies

    If it works, why worry? Were there any values it doesn't return the value you expect?

    You could make it shorter:
    Formula: copy to clipboard
    =VLOOKUP(F3+IF(F3<=1,0,0.05),$B$3:$C$43,2,1)
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2021
    Posts
    1,013

    Re: Formula to lookup a score that requires two different methodologies

    No, it correctly calculates what I am expecting. As I was writing it, I didn't like the use of the hard coded add on, even though I knew it would work. It feels more like a fudge than a solution to me.

    It's more to minimise the risk of issues if others copy it but want to use an alternative scoring scale. I suppose that's my main issue, it works for this scale but would potentially need tweaking for others.

    I'm probably overthinking it.

    Cheers for the shorter solution, I'll use that.

    Snook

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2503 and WPS V2024(12.1.0.18543)
    Posts
    3,884

    Re: Formula to lookup a score that requires two different methodologies

    Cell G3 formula , drag down

    Formula: copy to clipboard
    =LOOKUP(F3+IF(F3<=1,,0.05)+1%%,$B$3:$B$43,$C$3:$C$43)

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,292

    Re: Formula to lookup a score that requires two different methodologies

    You're welcome. Thanks for the rep.

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Formula to lookup a score that requires two different methodologies

    Please try

    =100-CEILING(ABS(1-F3)*100,5)

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,292

    Re: Formula to lookup a score that requires two different methodologies

    @Bo_Ry: your formula needs adjusting for some of the values.

    % Points TMS wk9128 Bo_Ry Compare
    105.00% 90 90 90 95 2
    110.00% 85 85 85 90 2
    115.00% 80 80 80 85 2
    120.00% 75 75 75 80 2
    125.00% 70 70 70 75 2
    130.00% 65 65 65 70 2
    135.00% 60 60 60 65 2
    140.00% 55 55 55 60 2
    145.00% 50 50 50 55 2
    150.00% 45 45 45 50 2
    155.00% 40 40 40 45 2
    160.00% 35 35 35 40 2
    165.00% 30 30 30 35 2
    170.00% 25 25 25 30 2
    175.00% 20 20 20 25 2
    180.00% 15 15 15 20 2
    185.00% 10 10 10 15 2
    190.00% 5 5 5 10 2
    195.00% 0 0 0 5 2

  8. #8
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Formula to lookup a score that requires two different methodologies

    Quote Originally Posted by TMS View Post
    @Bo_Ry: your formula needs adjusting for some of the values.
    How about

    =MAX(100-ABS(INT(F3*20-20+(F3>1))*5),)

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,658

    Re: Formula to lookup a score that requires two different methodologies

    Another option:

    =XLOOKUP(F3,$B$3:$B$43,$C$3:$C$43,"",IF(F3<1,-1,1))
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,292

    Re: Formula to lookup a score that requires two different methodologies

    @Ali: similar problem to Bo_Ry's solution.

    % Points TMS wk9128 Bo_Ry AliGW Compare
    105.00% 90 90 90 95 95 2
    110.00% 85 85 85 90 90 2
    115.00% 80 80 80 85 85 2
    120.00% 75 75 75 80 80 2
    125.00% 70 70 70 75 75 2
    130.00% 65 65 65 70 70 2
    135.00% 60 60 60 65 65 2
    140.00% 55 55 55 60 60 2
    145.00% 50 50 50 55 55 2
    150.00% 45 45 45 50 50 2
    155.00% 40 40 40 45 45 2
    160.00% 35 35 35 40 40 2
    165.00% 30 30 30 35 35 2
    170.00% 25 25 25 30 30 2
    175.00% 20 20 20 25 25 2
    180.00% 15 15 15 20 20 2
    185.00% 10 10 10 15 15 2
    190.00% 5 5 5 10 10 2
    195.00% 0 0 0 5 5 2

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,658

    Re: Formula to lookup a score that requires two different methodologies

    Ugh!!!

    Back to the drawing board ...

  12. #12
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Formula to lookup a score that requires two different methodologies

    For the example scoring system, as Bo_Ry has pointed out it doesn't need a lookup as a short formula can determine the score.

    @The_Snook If you want it to be flexible then it depends on the scope really. Clearly you want to allow for other users to change the points values. If it will always be of the same format i.e. peaking at 100% then I can't improve upon AliGW's solution. Although if it's possible to have values outside of the range 0-200% then you might want to add some bits to handle that (and assign 0 points, for example).

    If you wanted the same sort of format but to allow for the possibility of the maximum score not being 100%, i.e. still peaking at a certain value then decreasing, then you could replace the IF(F3<1, with and INDEX and MATCH function which looks up the MAX values in column C. For some reason a firewall keeps blocking me when I try to post the formula.

    @TMS, actually I think Bo_Ry and AliGW's solutions are correct and the others are wrong; they do not match column C.

    Nick

  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,292

    Re: Formula to lookup a score that requires two different methodologies

    @Nick:
    @TMS, actually I think Bo_Ry and AliGW's solutions are correct and the others are wrong; they do not match column C.
    And I think you are right. 🤭🤔

    I was comparing the solutions to the original formula, not the table.

    My apologies to Bo_Ry and AliGW. ☹️☹️☹️

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,658

    Re: Formula to lookup a score that requires two different methodologies

    Thanks, Trevor - I thought I was losing the plot ... again!!!

  15. #15
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,292

    Re: Formula to lookup a score that requires two different methodologies

    @Bo_Ry: well, that matches my original expectations BUT please see posts #11 and #12 (my apology!)

  16. #16
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2021
    Posts
    1,013

    Re: Formula to lookup a score that requires two different methodologies

    Morning all,

    Cheers for the additional solutions, I hadn't noticed the activity in the thread had continued.

    It was interesting to see the calculated solution as I hadn't considered that approach.

    Regards,

    Snook

  17. #17
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,658

    Re: Formula to lookup a score that requires two different methodologies

    You're welcome - thank you for the kind rep comment.

+ 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] VLookup/match function requires tweaking to distinguish between 2 data lookup ranges
    By skydivetom in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-01-2020, 08:02 PM
  2. Identify who requires training based on score
    By mlbrenes in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-29-2018, 04:34 PM
  3. Left Lookup formula works but requires tweaking
    By BlindAlley in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-18-2015, 09:14 AM
  4. Replies: 2
    Last Post: 03-20-2012, 06:30 PM
  5. Replies: 6
    Last Post: 11-19-2009, 07:08 AM
  6. formula to work out score based on score system
    By Nathaniel82 in forum Excel General
    Replies: 5
    Last Post: 08-10-2009, 11:25 AM
  7. Converting Score Sheet to LOOKUP formula?
    By RDSProgrammer in forum Excel General
    Replies: 7
    Last Post: 04-13-2009, 02:44 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