+ Reply to Thread
Results 1 to 5 of 5

return a value from 2 dimensional table

  1. #1
    Registered User
    Join Date
    03-19-2012
    Location
    kl
    MS-Off Ver
    Excel 2007
    Posts
    29

    return a value from 2 dimensional table

    btw, can i return a value automatically from a multidimensional table? how can i do it?

    Example:
    Rank Salary vs. Increment
    Below 5,000 5,000 - 9,999 10,000 - 14,999 15,000 - 19,999 20,000 and above
    3+ 5.00% 4.50% 4.00% 3.00% 2.00%
    3 4.50% 4.00% 3.50% 2.50% 1.50%
    2 2.25% 2.00% 1.75% 1.25% 0.00%


    Rank Salary Increment
    Employee A 3+ 7980 ??
    Attached Files Attached Files

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: return a value from 2 dimensional table

    you could use this formula but you need to adjust your headers across the columns as per the attached example

    =INDEX(D6:H8,MATCH(D12,C6:C8,0),MATCH(E12,D5:H5,1))

    you could insert another row just above row 5 to include some decriptions, or even bellow it. but you need to have a number range to do a lookup.
    Attached Files Attached Files
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: return a value from 2 dimensional table

    Try:
    =INDEX(D6:H8,MATCH(D12,C6:C8,0),MATCH(E12,D5:H5,1))
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    03-19-2012
    Location
    kl
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: return a value from 2 dimensional table

    thanks, it works.

    what if, there is another complication i.e. the increment is decided based on the grade? index and match works, but how to check using if statement.

    thanks
    Attached Files Attached Files

  5. #5
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: return a value from 2 dimensional table

    Try something like this:

    =INDEX(IF(LEFT(B12,1)="E",$D$6:$H$8,K$6:O$8),MATCH($D12,$C$6:$C$8,0),MATCH($E12,$D$5:$H$5,1))

+ 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