Results 1 to 4 of 4

Modifying an INDEX and MATCH formula to advance if duplicate found

Threaded View

  1. #1
    Registered User
    Join Date
    04-29-2020
    Location
    Denver, CO
    MS-Off Ver
    365
    Posts
    2

    Modifying an INDEX and MATCH formula to advance if duplicate found

    Hello,

    I have a table of years with a corresponding dollar amount. I have written a function that will return the column header (offer) when given a dollar amount.

    =INDEX($H$1:$N$1,MATCH(C8,$H$3:$N$3,0))

    .. which is working just fine. However, it will only ever return the first lowest offer, and not the next offer with the same value. In my example, the lowest offer for item B is $18, found in offer 1. The 2nd lowest offer is also $18, found in offer 4.

    Is there a way to rewrite this formula to give me the next, or nth next offer of the same amount?

    My thought was to try an IF formula, so that if D3 = C3, it would advance the bound on the index by a certain amount, but could not figure out how to replace the letter in a column reference. Is this possible to do?

    Sheet attached, and here is what I was thinking

    =IF(INDEX(N$1:AB$1,MATCH(J32,N32:AB32,0))=C37,INDEX(N$1:AB$1,MATCH(J32,N32:AB32,0)),INDEX(N$1:AB$1,MATCH(J32,N32:AB32,0)))

    -IF(INDEX(H1:N1,MATCH(D8,H3:N3,0)) = INDEX(H1:N1,MATCH(C8,H3:N3,0)), INDEX(H1:N1,MATCH(D8,(write something to replace the letter H using COLUMN maybe?)3:N3,0)), INDEX($H$1:$N$1,MATCH(D8,H3:N3,0))

    Appreciate any help or ideas!

    Thank you
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] index/match formula for duplicate values not working
    By Ochimus in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-26-2021, 09:49 AM
  2. [SOLVED] Help with advance if, match and index
    By abhineet.sabharwal in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-03-2015, 08:07 PM
  3. Replies: 2
    Last Post: 07-23-2015, 07:10 AM
  4. [SOLVED] Index/Match between some columns - thanks in advance!
    By Drayde in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-08-2015, 01:44 PM
  5. Down rows until specific value is found within index(/match( formula
    By zakquis in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-15-2014, 02:47 AM
  6. Replies: 3
    Last Post: 04-01-2014, 05:54 PM
  7. Macro to copy paste if match not found "go to next"
    By HawksOkeyoJr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2013, 05:28 AM

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