+ Reply to Thread
Results 1 to 8 of 8

Mod to current IFERROR INDEX MATCH Formula

  1. #1
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Mod to current IFERROR INDEX MATCH Formula

    Hi Folks

    Currently have this formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    As it is it picks up the first (oldest) match but I would like it to pick up the latest match.

    I do not want to have to alter the file it exports from in any way as it is auto updated from a program.

    So needing it to do the same job but pick up the latest entry not the first as it does now.

    Cheers
    hammer
    If you have found solving my problem/s to be an interesting and educational exercise then how about Repping me up?
    No idea why I need Rep, other than feeling left out....

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Mod to current IFERROR INDEX MATCH Formula

    Hi Hammer,

    Match function will always retrieve first find value and return number where particular Lookup value based.

    If you can upload your sample workbook with expected result it will be good to get solution easily.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Mod to current IFERROR INDEX MATCH Formula

    As already pointed out, MATCH (which the INDEX is based on) will find the very 1st "match" then stop looking.

    If you are working with dates, and the last entry is the latest date, then you probably need to use LARGE to ID the latest date that matches your criteria, but I cannot put something together for you without seeing a sample of what you are working with,

    can you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Mod to current IFERROR INDEX MATCH Formula

    see if this works

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ps its case sensitive
    also change 100 to something larger to suit
    Last edited by humdingaling; 05-30-2016 at 02:11 AM.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Mod to current IFERROR INDEX MATCH Formula

    Just hazarding a guess ... array entered.

    =IFERROR(INDEX('D:\[TIMEWATCH EXPORT HISTORY.csv]DATA'!$D:$D,INDEX(MATCH(2,1/($J2='D:\[TIMEWATCH EXPORT HISTORY.csv]DATA'!$K:$K),1),)),0)

    Without data though it's a shot in the dark.
    Dave

  6. #6
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Mod to current IFERROR INDEX MATCH Formula

    Whilst I was reading up on how to make formulas case sensitive I gave FlameRetired's solution a try-
    It works just peachy! Also, just for interest, it works without being array entered.

    Who needs examples with you people around?
    Stirling effort again Folks!

    Cheers
    hammer

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Mod to current IFERROR INDEX MATCH Formula

    hammer,

    Thanks for the feedback, and yeah I guess with the INDEX wrapped around the MATCH it wouldn't need array entry. Thanks for pointing that out. I missed that one.

  8. #8
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Mod to current IFERROR INDEX MATCH Formula

    just for reference
    to make any formula not case sensitive wrap it with upper (or lower)

+ 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] IFERROR, INDEX, MATCH... formula... that also reads dates.
    By JasonNeedsHelp in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 07-22-2014, 03:52 PM
  2. Excel Formula: IFERROR, INDEX, SMALL, MATCH
    By Jenn12788 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-12-2014, 10:03 PM
  3. Help to simplify an =IF(IFERROR(INDEX(...,MATCH( formula
    By sa12345 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2014, 03:40 AM
  4. [SOLVED] IFERROR+INDEX+MATCH Formula is not returning the correct value
    By bxk006 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-16-2013, 09:50 AM
  5. Wrong result displaying using IFERROR-INDEX-MATCH-ROW Formula
    By paradise2sr in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-16-2013, 01:03 PM
  6. comparision between two excel sheet using VBA Code for Index/match/and/iferror formula
    By gaurangaero in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-28-2012, 10:08 AM
  7. Looking for better formula of iferror, index and match
    By DavidRoger in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-23-2012, 07:50 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