+ Reply to Thread
Results 1 to 8 of 8

Index Match but only return value if cell to right and above 1 is a negative.

  1. #1
    Forum Contributor
    Join Date
    05-04-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    125

    Index Match but only return value if cell to right and above 1 is a negative.

    Hi Everyone,

    I have an array formula which is working as expected returning the value of column K (offset by -1) if a number of criteria are matched.

    Please Login or Register  to view this content.
    The issue I'm having is there are occasionally duplicate values in column W and it's using the first value in its return, which isn't always correct.

    Unfortunately due to the limited matches available the only way I can think to identify the correct value is by adding an additional criteria, which is that the correct value would always have a negative in Column X one cell above and to the right of where the value is being retrieved from. If there was no negative it would ignore this result.

    Is there any way to add an additional criteria to the formula to stipulate that it must match a negative in column X but one cell above?

    Thanks for any help offered.

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Index Match but only return value if cell to right and above 1 is a negative.

    Hi Dave,

    I think this may be a task for SUMPRODUCT.

    Are you able to post a sample workbook?

    Regards,

    David

    Please remember, your request is clearer if you attach a sample workbook.
    - Click on Go Advanced and click on the Paper Clip.
    When you reply please make it clear WHO you are responding to by mentioning their name.
    If this has been of assistance, please advise. A little thanks goes a long way.
    - Please click on the *Add Reputation button at the bottom of helpful responses.
    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".

  3. #3
    Forum Contributor
    Join Date
    05-04-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    125

    Re: Index Match but only return value if cell to right and above 1 is a negative.

    Hi David,

    Thanks for responding. I've attached a sample workbook showing the issue, which is basically that I need to add one more criteria (a negative above to the right) to ensure that the formula returns the correct period, not just the first it comes across.

    Thanks

    Dave
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Index Match but only return value if cell to right and above 1 is a negative.

    Hi Dave,

    I have to go to Ballarat tomorrow, but will look at it soon (if someone else doesn't pick it up).

    Regards,

    David

  5. #5
    Forum Contributor
    Join Date
    05-04-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    125

    Re: Index Match but only return value if cell to right and above 1 is a negative.

    David, I appreciate the effort.

    Cheers

  6. #6
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Index Match but only return value if cell to right and above 1 is a negative.

    use this ARRAY formula in Calculations!R7:

    Please Login or Register  to view this content.
    this formula cannot use whole-column ranges - you have to use definite ranges as displayed. also, the range within OFFSET cannot start at the first row.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  7. #7
    Forum Contributor
    Join Date
    05-04-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    125

    Re: Index Match but only return value if cell to right and above 1 is a negative.

    Thanks icestationzbra, much appreciated for helping me with this one. The solution works well.

    Cheers

    David

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Index Match but only return value if cell to right and above 1 is a negative.

    DaveBre,

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. SUMIF, Index and Match Formula. Return Cell value
    By FLani in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-04-2014, 02:43 AM
  2. [SOLVED] Need Index and Match to return multiples values in the same cell
    By ludi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-16-2013, 10:50 AM
  3. Replies: 3
    Last Post: 05-08-2013, 02:10 PM
  4. Index/Match to return a blank cell
    By Nick_in_Dubai in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-26-2012, 06:36 AM
  5. Index/Match and return adjacent cell or workaround
    By alltimetop100 in forum Excel General
    Replies: 2
    Last Post: 03-02-2011, 08:24 AM

Tags for this Thread

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