+ Reply to Thread
Results 1 to 5 of 5

Index & Match - not working on merged cells

  1. #1
    Registered User
    Join Date
    09-27-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    14

    Index & Match - not working on merged cells

    I am trying to use Index & Match function in cell - C23. What it does is look for the value in cells - D31 to D35 for ' Cisco 881W' and should return the quantity value in cell - C23. It is giving me a #N/A error. Is it due to the range I am looking up is composed of merged cells? I am attaching the file for consideration and will appreciate a fix to it please.

    *I want the quantity value for a specific item which can be within cell range - D31 to D35 displayed in cell - C23 when the option 'Cisco 881w' is selected

    Regards,
    Last edited by sm.salford; 11-17-2013 at 02:55 PM. Reason: File is confidential

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Index & Match - not working on merged cells

    Hi,

    I thing the "don't use this feature" is the appropriate statement on
    http://www.officearticles.com/excel/...soft_excel.htm

    So here is how I see merged cells:
    Say you have B1 and B2 merged.
    You try to do a VLookup("Bob",B1:B5.....).
    Should Vlookup look in B2 for your value as it is now merged???

    Unmerge cells in your workbook and start over, is my best advice.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

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

    Re: Index & Match - not working on merged cells

    well
    =INDEX(C31:C35,MATCH(U13,D31:I35),0)

    D31:I35 is wrong for match it would have to be
    D31:D35
    even tho'cells are merged that is the actual range
    but
    =INDEX(C31:C35,MATCH(U13,D31:D35),0)
    why u13?
    "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

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Index & Match - not working on merged cells

    What cells are merged?
    If posting code please use code tags, see here.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Index & Match - not working on merged cells

    Merged cells cause more problems than they are worth, avoid using/remove if at all possible
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Correct/Working (Index,Match) formula not working between cells
    By barnerd in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 02-11-2014, 01:20 PM
  2. INDEX MATCH MATCH working great and then failing on me.
    By HeikEve in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-25-2013, 01:40 PM
  3. Replies: 2
    Last Post: 05-24-2013, 09:32 AM
  4. [SOLVED] Vlookup / index match against Merged Cells (second query!)
    By Deventus in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-14-2012, 07:50 AM
  5. Working with Merged cells
    By timtrag12 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-22-2010, 04:52 PM

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