+ Reply to Thread
Results 1 to 5 of 5

index function error using match function to get data from a cell in an array

  1. #1
    Registered User
    Join Date
    04-03-2012
    Location
    CT
    MS-Off Ver
    Excel 2010
    Posts
    2

    index function error using match function to get data from a cell in an array

    Hi All,

    I am using the below function to obtain data from a single cell in an array.

    =INDEX(AD13:AP27, MATCH(F4,AD13:AD27), MATCH(F12,AD13:AP13))

    The function works 80% of the time. It occasionally goes brain dead and selects the wrong column. The function resides in Cell I13 on tab G01.

    Can someone help me? I believe the problem may exist within Excel.

    Thanks,
    Mark
    Attached Files Attached Files

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

    Re: index function error using match function to get data from a cell in an array

    try
    =INDEX(AD13:AP27, MATCH(F4,AD13:AD27,0), MATCH(F12,AD13:AP13,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
    Registered User
    Join Date
    04-03-2012
    Location
    CT
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: index function error using match function to get data from a cell in an array

    That worked. Thank you.

  4. #4
    Registered User
    Join Date
    07-08-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    1

    Question Re: index function error using match function to get data from a cell in an array

    I have a similar problem, i am using * as one of the value to get Particular against that Code.
    =INDEX(D:D,MATCH(C9,E:E,0),1)
    and getting
    C D (these are the columns)
    * Particular (these is where function used)

    A B C D E (these are the columns)
    Number Acc ID Particular Code (these are the columns headings)
    1 ABC 66 HR Management #
    2 DEF 22 Travell Management $
    3 JKL 88 Corporate Management *
    4 MNO 77 WH&S Management {
    5 RST 33 ICT Management )

    any idea?

  5. #5
    Administrator arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,147

    Re: index function error using match function to get data from a cell in an array

    sanjeev,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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