+ Reply to Thread
Results 1 to 3 of 3

error in formula of match and offset

  1. #1
    Forum Contributor
    Join Date
    12-23-2007
    Location
    chennai india
    MS-Off Ver
    2010
    Posts
    141

    error in formula of match and offset

    error in formula of match & offset.xlsx

    hi,

    in the attached file there is error which has been marked by red and the correct answer in green. I could not understand why the error when it works correctly in previous rows. thanks for your effort.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: error in formula of match and offset

    You're using a match type of 1, which means that Excel is expecting the elements in the look-up array to be in ascending order. Because they are not it is returning unreliable results.

    Change your formula in A4 to:

    =INDEX(C:C,MAX(INDEX(ROW($B$2:B4)*($B$2:B4="aaa"),0)))

    And copy down.

    Edited to add:

    Or you could use the formula:

    =INDEX(C:C,MAX(INDEX(ROW($C$2:C4)*(LEFT($C$2:C4,3)="M/S"),0)))

    Which would get rid of the need for column B entirely.

  3. #3
    Forum Contributor
    Join Date
    12-23-2007
    Location
    chennai india
    MS-Off Ver
    2010
    Posts
    141

    Re: error in formula of match and offset

    Dear Andrew R

    Thanks for your immediate response, the problem is solved.

    Regards

+ 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