+ Reply to Thread
Results 1 to 5 of 5

Index / Match (if honest I'm lost) - all day spend trying to get this working

  1. #1
    Registered User
    Join Date
    07-11-2014
    Location
    Australia
    MS-Off Ver
    MS365 (2208)
    Posts
    48

    Index / Match (if honest I'm lost) - all day spend trying to get this working

    A
    B
    C
    D
    E
    F
    G
    H
    I
    1
    Search: ABC DEF
    2
    ID Start Finish Start Finish Start Finish
    3
    ABC 123
    1/01/2019
    6/01/2019
    1/01/2019
    6/01/2019
    2/01/2019
    7/01/2019
    4
    DEF 123
    2/01/2019
    7/01/2019
    8/07/2019
    3/01/2019
    5
    ABC 456
    8/07/2019
    4/01/2019
    9/07/2019
    5/01/2019
    6
    DEF 789
    3/01/2019
    7
    ABC 789
    4/01/2019
    9/07/2019
    8
    DEF 789
    5/01/2019
    9
    Earliest Start Latest Finish Earliest Start Latest Finish
    10
    1/01/2019
    9/07/2019
    2/01/2019
    7/01/2019
    Sheet: Sheet1


    Hi all,

    I've tried various formulas all day but always ran into one problem or another.

    Basically:
    Cells E3-F8 are related to Cell E1 (ABC).
    Cells H3-G8 are related to Cell H1 (DEF)

    The formula I need

    Take E3 as an example, I need it to look at E1 find it's first partial match in Column A and return the date found in Column B.

    Where it is a blank I need it return a blank (this has been an issue).

    Anyone done something like this before and can help me?

  2. #2
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Index / Match (if honest I'm lost) - all day spend trying to get this working

    How about this?

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    1. Include a sample workbook with an example of the result you want
    2. Use [CODE] and [FORMULA] wrappers for your VBA code or excel formulas
    3. If your question has been answered, mark the thread as SOLVED and click on the "Add Rep" star to thank whoever helped you.

  3. #3
    Registered User
    Join Date
    07-11-2014
    Location
    Australia
    MS-Off Ver
    MS365 (2208)
    Posts
    48

    Re: Index / Match (if honest I'm lost) - all day spend trying to get this working

    Hi K64,

    Many thanks for your reply. I tried your formula but don't think it works either.

    I think your formula requires a straight match and when I copy it down it will keep finding the same date over and over?

    This task is proving very difficult.

    The formula I've managed to get working (except it returns 00/Jan/1900 / 0 when it doesn't find something) is:

    =IFERROR(INDEX($B$1:$B$20000,SMALL(IF(ISNUMBER(SEARCH($F$1,$A$1:$A$20000)),MATCH(ROW($A$1:$A$20000),ROW($A$1:$A$20000))),ROW($A1))), "")

    That formula works except when it finds a blank cell in one of the dates it returns 0 (00/Jan/1900), I need it to return BLANK too.

  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,791

    Re: Index / Match (if honest I'm lost) - all day spend trying to get this working

    You can use that formula, but you should apply a Custom Format of:

    d/mm/yyyy;;

    to the cells - the double semicolons at the end cause zero and negative values to be displayed as blanks.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    07-11-2014
    Location
    Australia
    MS-Off Ver
    MS365 (2208)
    Posts
    48

    Re: Index / Match (if honest I'm lost) - all day spend trying to get this working

    Amazing! thanks.

    Also, any idea why the formula appears to have a complete mind of it's own?

    I am copying it, all seems well, and then it doesn't work.

    Also, at one moment it seems to work, and then the next it's not.

    It's all very odd!

    is my beginning formula just terrible do you think?

+ 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. Index Match Match - 2 x Vertical Lookups - Not working as it should
    By seash in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2016, 09:58 AM
  2. [SOLVED] help index and match macro not working but formula working??
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-28-2016, 06:37 AM
  3. [SOLVED] Working INDEX MATCH with SEARCH, but I need to add another MATCH to the formula!
    By DaveBre in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-11-2014, 01:03 AM
  4. Correct/Working (Index,Match) formula not working between cells
    By barnerd in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 02-11-2014, 01:20 PM
  5. INDEX MATCH MATCH working great and then failing on me.
    By HeikEve in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-25-2013, 01:40 PM
  6. Replies: 2
    Last Post: 05-24-2013, 09:32 AM
  7. How do I estimate the year spend if spend is $26000 as of May?
    By Felicia Pickett in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-19-2006, 11:15 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