+ Reply to Thread
Results 1 to 3 of 3

Index/Match function inside an array

  1. #1
    Registered User
    Join Date
    03-09-2009
    Location
    NYC
    MS-Off Ver
    Excel 2003
    Posts
    2

    Cool Index/Match function inside an array

    Solution for all: {=SUMPRODUCT(SUMIF(Sheet1!$A$2:$A$16,$F$34:$F$40,INDEX(Sheet1!$B$2:$K$16,0,MATCH(T$10,Sheet1!$B$1:$K$1,0))),U34:U40)}


    Say I have an Excel workbook with two sheets: Employee Hours and Employee Wages. On the Hours sheet I have 31 columns (Jan1 - Jan31) with inputs for the number of hours worked by each employee by day. On the Wages sheet I have listed the same 31 columns with their wages each day (I do this to factor in wage increases that occur fairly often).

    My goal is to use an INDEX/MATCH function to calculate the total daily compensation for each day on the Wages sheet by multiplying hours*wages for all employees that day. Here's the code I'm using:

    Please Login or Register  to view this content.
    where T34:T40 is the hours for the employees in day 1, $B$2:$AF$16 is the wage matrix for all employees for all 31 days, and T$10 is date.

    My output is not working correctly, it's taking all the hours inputted and multiplying them by only the first employee's hourly wage, it's not matching employee1 hours to employee1 wage, employee2 hours to employee2 wage, etc.

    Any input you guys have here? This is pretty much the last piece of my analysis, would love to get it right!

    Thanks,
    Kevin
    Last edited by tittiot; 01-20-2010 at 09:44 PM. Reason: Solved!

  2. #2
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Index/Match function inside an array

    Your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us help you!

  3. #3
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Index/Match function inside an array

    Thanks for posting the solution, Kevin. It's not an array formula though.........(doesn't need { and })

+ 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