+ Reply to Thread
Results 1 to 3 of 3

Select a cell in a table when Row name & Column name is given

  1. #1
    Registered User
    Join Date
    01-14-2013
    Location
    Bandaragama,Sri Lanka
    MS-Off Ver
    Excel 2010
    Posts
    16

    Talking Select a cell in a table when Row name & Column name is given

    . A B C D E
    1 Jan Feb Mar Apr
    2 Galle JG FG MG AG
    3 Matara JM FM MM AM
    4 Kalutara JK FK MK AK
    5 Panadura JP FP MP AP
    6 Colombo JC FC MC AC
    7
    8 City Month
    9 Kalutara Mar MK

    When I type 'Kalutara' in A9 and 'Mar' in B9 I should get the answer as MK in cell E9
    'Colombo' " " 'Feb' B9 " " " FC in cell E9 by refering the above table
    can we use MATCH & INDEX or VLOOKUP & HLOOKUP

    What is the formula I should write in cell E9 to get this done?

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

    Re: Select a cell in a table when Row name & Column name is given

    =index(a1:e6,match(a9,a1:a6,0),match(b9,a1:e1,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

  3. #3
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Select a cell in a table when Row name & Column name is given

    =vlookup(a9,$a$2:$e$6,match(b9,$a$1:$e$1,0),0)
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Select column from table using variable table name -- VBA
    By jscott15 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-03-2016, 06:28 AM
  2. Replies: 4
    Last Post: 06-17-2013, 05:21 AM
  3. [SOLVED] How to select from a table of values based upon column and row headers
    By Peteryoull in forum Excel General
    Replies: 4
    Last Post: 07-30-2012, 05:58 AM
  4. Replies: 10
    Last Post: 07-12-2010, 08:55 AM
  5. Replies: 4
    Last Post: 07-17-2009, 09:46 PM

Tags for this Thread

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