Forum Discussion

LiamL2002's avatar
LiamL2002
Copper Contributor
Dec 03, 2022
Solved

Formula help. Different variables

Please could somebody help me, I am trying to automate points for an incentive.    So, the more points based gained based on certain variables.   I have attached an image which would be the crite...
  • mathetes's avatar
    mathetes
    Dec 04, 2022

    LiamL2002 It does help. 

     

    this illustrates one way to solve this. Put all those criteria into a two-dimensional table, with OT hours across the top (the horizontal dimension),  SPH/EPH values down the vertical dimension. And use INDEX and MATCH to select the appropriate number of points.

     

    There would be other ways to arrange the data entry. You don't specify how you're going to use this, so this basically just illustrates the concept. All the work (once the data table is arrayed properly) is done by a single formula, in cell C14. A copy of the spreadsheet is attached.

    =INDEX($C$4:$G$7,MATCH($C$13,$A$4:$A$7,0),MATCH($C$12,$C$2:$G$2,0))

Resources