+ Reply to Thread
Results 1 to 4 of 4

Two Dimensional Lookup

Hybrid View

  1. #1
    Registered User
    Join Date
    01-06-2005
    Location
    India
    Posts
    10

    Two Dimensional Lookup

    Hi

    I am using Excel 2003. In my attached workbook I have two worksheets titled “Parameter” which are Basic Salary (numbers vertically under each grades) and “Grade” (M-1 to S-6 horizontally).

    In other worksheet “Calculation” I have staff database. My formula should look at “Propose Number of Increment” in column E, locate the present basic salary under Present grade in worksheet “Parameter” and pickup proposed basic based on the number of increments.

    In column F, I have given expected result “Proposed Basic SHOUL BE”.

    I have been trying to built up of formula in column G which may please be ignored.


    Swastik
    Attached Files Attached Files
    Swastik

  2. #2
    Registered User
    Join Date
    01-24-2009
    Location
    Leicester, England
    MS-Off Ver
    Excel 2003 &2007
    Posts
    27

    Re: Two Dimensional Lookup

    Hi,

    Try this formula which has given me your expected results:

    =HLOOKUP(C3,Data,MATCH(Calculation!D3,OFFSET(Parameter!$A$1:$A$118,0,MATCH(C3,Grade,0)),0)+E3)

    EllBol

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,079

    Re: Two Dimensional Lookup

    Or even this horrible looking formula which seems to work

    =INDEX(Parameter!$B$2:$O$117,MATCH(D3,INDIRECT("Parameter!"&ADDRESS(2,MATCH(C3,Parameter!$A$1:$O$1,0))&":"&ADDRESS(117,MATCH(C3,Parameter!$A$1:$O$1,0))),0)+3,MATCH(C3,Parameter!$B$1:$O$1,0))
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Two Dimensional Lookup

    Another alternative, and a non-volatile approach (ie no OFFSET/INDIRECT) - for more info. on Volatile functions and effects thereof see the link in my sig to Charles Williams' site.

    =INDEX(Parameter!$B$1:$O$117,MATCH($D3,INDEX(Parameter!$B$1:$O$117,0,MATCH($C3,Parameter!$B$1:$O$1,0)))+$E3,MATCH($C3,Parameter!$B$1:$O$1,0))

    There will be other ways (as already illustrated)

+ 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