+ Reply to Thread
Results 1 to 3 of 3

Converting array formula to be compatible with 97-2003

  1. #1
    Registered User
    Join Date
    10-03-2011
    Location
    NM, USA
    MS-Off Ver
    Excel 2003
    Posts
    10

    Converting array formula to be compatible with 97-2003

    Hi guys/gals, was wondering if someone could help me solve my dilemma.

    I have a bonus and timesheet I use for my employees that gets transmitted to the timekeeper for entry into payroll and time systems. The bonus for each employee depends on a number of factors...pay grade, whether work is onshore or offshore, and whether work is perfomed on a holiday (doubles their regular bonus). There are 2 additional bonus categories for Operations coordinator and technical trainer that any of the pay grades can also perform that are flat rate.

    So my table would look like this:

    Pay Grade, Onshore, Offshore, Ops Coord, Tech Trainer
    Field Spec III, 160, 220, 60, 60
    Project Coord, 185, 245, 60, 60
    Field Eng Trainee, 95, 155, 60, 60

    And the list goes on (There are 15 different pay grades). I have employees type their name into the master tab, and pick their pay grade from a drop down. Then each 2 week pay period they enter free text for the contract number, choose the bonus code from a dropdown (onshore, offshore, ops coord, tech trainer) which then looks up the appropriate bonus code. I'm using the following array:

    =IFERROR(INDEX(BonusValue,MATCH(1,($G$8=Title_Lookup)*(E21=BonusLookup),0)), 0) +ctrl+shift+enter

    For holidays, I simply went to the 11 holidays for the year and multiplied the above by 2.

    This works beautifully in 2007 and newer. I sent it out forgetting that I still have a bunch of guys with old laptops and the complaints quickly starting coming in that all they saw was #n/a. Can anyone help me figure out a way to perform this that works across all versions of excel???
    Last edited by chichapher; 01-17-2012 at 06:06 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Help converting array formula to be compatible with 97-2003

    Try:

    =IF(ISNUMBER(MATCH(1,($G$8=Title_Lookup)*(E21=BonusLookup),0)),INDEX(BonusValue,MATCH(1,($G$8=Title_Lookup)*(E21=BonusLookup),0)), 0)

    if you are returning numeric results, you can perhaps use sumproduct:

    e.g.

    =SUMPRODUCT(BonusValue,--($G$8=Title_Lookup),--(E21=BonusLookup))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    10-03-2011
    Location
    NM, USA
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Converting array formula to be compatible with 97-2003

    Sumproduct works like a charm on office2010. I'll send it out to some testers to see how it works on 97-2003 and report back.

    Appreciate the prompt help and fast reply NBVC!

+ 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