+ Reply to Thread
Results 1 to 5 of 5

Using Lookup to Return Column Header or Index Function to return revised pay rate

  1. #1
    Registered User
    Join Date
    07-20-2010
    Location
    London, ON
    MS-Off Ver
    Excel 2007
    Posts
    14

    Using Lookup to Return Column Header or Index Function to return revised pay rate

    I am trying to create a spreadsheet that will look up a position from the row heading and return a column heading demonstrating the step in the grid. Taking that one step further we would then do a lookup from the new grid based on the salary header and position and return the corresponding rate.

    I have attempted the index function but am getting a #VALUE error.

    Please help!

    Based on the attached example if I have a second spreadsheet that says "ACcounting Clerk" "$18.00" per hour, I want the return value of $18.36.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,841

    Re: Using Lookup to Return Column Header or Index Function to return revised pay rate

    Is this what you are looking for?
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  3. #3
    Registered User
    Join Date
    07-20-2010
    Location
    London, ON
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Using Lookup to Return Column Header or Index Function to return revised pay rate


    This seems to be working, thank you for the help, I took it 1 step further and inserted the "Row Count" formula within the array.

    Will test to ensure it works on the larger scale.

  4. #4
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,841

    Re: Using Lookup to Return Column Header or Index Function to return revised pay rate

    Your welcome! It's not as sophisticated as it could have been. It's really matching the column headers, it just assumes the ranges look alike when it comes to columns. Matching could be added but I wanted to keep it simple.
    Also the helper cell was used in the datavalidation formula but you seem to have it all under control.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Using Lookup to Return Column Header or Index Function to return revised pay rate

    you could use in d21
    =INDEX(OFFSET(B1,MATCH(B21,B1:B9,0)-1,7,1,6),MATCH(C21,OFFSET(B1,MATCH(B21,B1:B9,0)-1,2,1,6),0))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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