+ Reply to Thread
Results 1 to 3 of 3

index/match search works in some cells, but not others?

  1. #1
    Registered User
    Join Date
    06-30-2009
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2007/2003
    Posts
    5

    index/match search works in some cells, but not others?

    I have a spreadsheet set up where two companies share various expenses for 10 months, then one company pays all expenses for the last two months of the year. To fill in some of the expenses, I'm using an index/match search to match both the type of expense and the month. Unfortunately, the formula works in one cell, but no others. This is the original formula? The working formula is in cell K3; it picks up the value from the table in the lower left perfectly fine.

    However, when I copy the formula into the cell below it, it doesn't work. Once I copy it into the cell that should match January's expenses, I get an error. This is the original formula:
    Please Login or Register  to view this content.
    and it's copied into the cells below it. See the attached spreadsheet for more information. What's the problem with this? I'm pulling my hair out trying to see the problem with the formula!

    Thank you!
    Attached Files Attached Files

  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: index/match search works in some cells, but not others?

    you have the match for rows and columns reversed it should be index(range,ROW,COLUMN)
    =IF(OR($B4="June",$B4="July"),0,INDEX($C$24:$G$35,MATCH($B4,$B$24:$B$35,0),MATCH($K$1,$C$23:$G$23,0))/2)
    this returns 175.50
    "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
    06-30-2009
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2007/2003
    Posts
    5

    Re: index/match search works in some cells, but not others?

    I'm saddened that I didn't pick up on that. I need to read the documentation closer! Thank you very much for the help.

+ 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