+ Reply to Thread
Results 1 to 4 of 4

Indexing with merged cells in the Array

  1. #1
    Forum Contributor
    Join Date
    05-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    186

    Indexing with merged cells in the Array

    I am having a problem indexing from the "feed" ssheet to the "Fill in" sheet in the attached workbook. I am just trying to pulll the data from the feed sheet onto the other sheet by the employee name, in this case the highlighted cells.

    In the actual workbook there are many more employees but I don't think that matters. There are going to be different feed sheets for each month so it shouldn't be all the complicated.

    I was wondering if there was a problem becasue some of the cells in the index I was making are merged and centered as different sizes? I get the report on the feed sheet from a different department so I am trying to work with what I have at the moment. I'm hoping its just a silly over sight thats messing me up seeing as how all I've been doing for a couple weeks is staring at excel.

    Thanks in advance for any help you can provide.


    Sampleproblem indexing.xlsx
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Indexing with merged cells in the Array

    Hi

    Try this
    Cell C25 =IFERROR(INDEX('feed April'!$C$8:$O$39,MATCH(($A$2),'feed April'!$B$8:$B$39,0),MATCH((C4),'feed April'!$C$5:$O$5,0)),0) Then copy a cross
    Attached Files Attached Files
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

  3. #3
    Forum Contributor
    Join Date
    05-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    186

    Re: Indexing with merged cells in the Array

    Thanks, just what I needed

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Indexing with merged cells in the Array

    This will get the first few value, assuming you match up your headers:

    =INDEX('feed April'!$B$8:$O$28,MATCH($A$2,'feed April'!$B$8:$B$28,0),MATCH(C$4,'feed April'!$B$5:$O$5,0)) and drag across.

    However, I think you're going to be stuffed by the merged cells as you start match on row 5 (merged with 6) but then, when you get to "AAA", that's actually on row 6 (not merged). You could try using the formula referring to row 5 and, if there's an error, trying for row 6.

    That would look like this:

    =IFERROR(INDEX('feed April'!$B$8:$O$28,MATCH($A$2,'feed April'!$B$8:$B$28,0),MATCH(C$4,'feed April'!$B$5:$O$5,0)),INDEX('feed April'!$B$8:$O$28,MATCH($A$2,'feed April'!$B$8:$B$28,0),MATCH(C$4,'feed April'!$B$6:$O$6,0)))

    And, to tidy the whole thing up:

    =IFERROR(IFERROR(INDEX('feed April'!$B$8:$O$28,MATCH($A$2,'feed April'!$B$8:$B$28,0),MATCH(C$4,'feed April'!$B$5:$O$5,0)),INDEX('feed April'!$B$8:$O$28,MATCH($A$2,'feed April'!$B$8:$B$28,0),MATCH(C$4,'feed April'!$B$6:$O$6,0))),"")


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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