+ Reply to Thread
Results 1 to 4 of 4

MATCH function workaround/documentation

  1. #1
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Pendleton, OR
    MS-Off Ver
    Excel 2013
    Posts
    129

    MATCH function workaround/documentation

    In the MATCH() function, it is unclear what Excel does with duplicate data. For example, I have a time series of data and want to determine when it reached a given value. t = 0,1,2,3,4,5,6, ... value = 1,2,2,3,3,3,4, ..... These values are in "ascending order" so I use =MATCH(3, array, 1), but it does not find the earliest time it reached 3, which would be the 4th point, but reports the last time, which in this example would be the 6th point.

    Any ideas how to get this time? Our data is ascending but does not have great precision, so some values are identical. Thanks

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: MATCH function workaround/documentation

    Change the 1 at the end of the formula to zero:

    =MATCH(3, array, 0)

    This will find the first value that matches 3.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Pendleton, OR
    MS-Off Ver
    Excel 2013
    Posts
    129

    Re: MATCH function workaround/documentation

    I tried to reply twice yesterday, but seemed to be having internet connection problems. In short, I could not use the exact match because my data has gaps (unlike my example). The data might read 0,1,2,2,4,5,5,... and I want to look to when it passed 3, for example.

    The solution was to search for a number smaller than the desired threshold and then add 1, so MATCH(2,array,1)+1 would give me the correct index for when it reached or exceeded 3. I have to tweak this for my data precision, but that is the idea that worked.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: MATCH function workaround/documentation

    Okay, glad you found a solution - thanks for feeding back.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Pete

+ 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. [SOLVED] PROPER() Function Workaround where apostrphes occur
    By kyjae in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-27-2013, 03:08 PM
  2. [SOLVED] Workaround for Excel's VBA Rnd function
    By lunch_bracketeer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2013, 11:11 AM
  3. [SOLVED] MATCH function workaround - nesting ADDRESS function?
    By BishBosh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2013, 03:45 AM
  4. [SOLVED] Is there a workaround for no IFERROR function in 2003?
    By mrvp in forum Excel General
    Replies: 7
    Last Post: 07-22-2012, 11:46 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
  6. MATCH() and duplicate values -- is there a workaround?
    By JimmyQ in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-10-2006, 05:40 AM
  7. [SOLVED] MATCH() and duplicate values -- is there a workaround?
    By JimmyQ in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-09-2006, 02:14 PM
  8. [SOLVED] Application.match--Documentation?
    By Bettergains in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2005, 10:06 PM

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