+ Reply to Thread
Results 1 to 5 of 5

Accounting for duplicates when using INDEX/MATCH forumulas

  1. #1
    Registered User
    Join Date
    06-15-2012
    Location
    Baltimore, MD
    MS-Off Ver
    Excel 2010
    Posts
    68

    Accounting for duplicates when using INDEX/MATCH forumulas

    Hello,

    This is a very specific question to a very specific problem, that is described in text boxes on the attached spreadsheet.

    Basically (as possible) I have a INDEX/MATCH formula that is looking for the lowest value that falls within a date range. There are 3 date ranges that the table covers. All works well UNLESS the lowest value within 1 date range is identical to the lowest value within another date range. In this case, the lowest value for theearlier date range and associated times/dates/values/etc are assigned to both date ranges.

    Please have a look at the attachment and hopefully the question will be more clear.

    Thanks!
    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: Accounting for duplicates when using INDEX/MATCH forumulas

    change c34 to say screen instead of screening then you can use
    =INDEX($F$20:$F$32,MATCH(C34&I34,INDEX($C$20:$C$32&$I$20:$I$32,0),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
    10-02-2012
    Location
    Baku
    MS-Off Ver
    Excel 2010
    Posts
    273

    Re: Accounting for duplicates when using INDEX/MATCH forumulas

    Hi
    =SMALL(IF(($F$20:$F$32>=$P8)*($F$20:$F$32<=$Q8),$I$20:$I$32,""),1) CSE
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    10-02-2012
    Location
    Baku
    MS-Off Ver
    Excel 2010
    Posts
    273

    Re: Accounting for duplicates when using INDEX/MATCH forumulas

    =INDEX($F$20:$F$32,MATCH(SMALL(IF(($F$20:$F$32>=$P5)*($F$20:$F$32<=$Q5),$I$20:$I$32,""),1),IF(($F$20:$F$32>=$P5)*($F$20:$F$32<=$Q5),$I$20:$I$32,""),0)) cse

  5. #5
    Registered User
    Join Date
    06-15-2012
    Location
    Baltimore, MD
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Accounting for duplicates when using INDEX/MATCH forumulas

    Quote Originally Posted by martindwilson View Post
    change c34 to say screen instead of screening then you can use
    =INDEX($F$20:$F$32,MATCH(C34&I34,INDEX($C$20:$C$32&$I$20:$I$32,0),0))
    This worked perfectly. QUick and easy. Thanks Martin.

    Eisayew, thanks for your suggestions as well. Still working on them, they just didn't seem to work on the first try.

+ 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