+ Reply to Thread
Results 1 to 4 of 4

Index & Match???

  1. #1
    Registered User
    Join Date
    03-23-2010
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    21

    Index & Match???

    Hi All

    On the attached spreadsheet I am trying to find the latest location (Column B) of a job (Column A) based on a unique value (column D) when compared to current date / time (G1)
    whilst comparing to Date / time in (column C).

    In other words the values in column D are a unique filter macro of Column A values then I want (E1) to look at (D1) then look down (A1:A1000) and return last location from (B) compared to time entered in (C) when compared to NOW() in G1

    I've used the Index and Match function in an array but it seems to fail on me for some reason.

    Is there a better way to do this?

    Thanks

    Jonny
    Attached Files Attached Files

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

    Re: Index & Match???

    Your date/times in column C all look the same, and in fact are linking to some other workbook. They seem to be text values, rather than proper date/times, so it will be difficult to compare them with G1, or to find the latest date/time for any particular job.

    Pete

  3. #3
    Registered User
    Join Date
    03-23-2010
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: Index & Match???

    Apologies Pete, thanks for your post.

    Ive removed the links and altered the times, I had this working before with an index match but for some reason it wouldn't accept data being copied and pasted into the spreadsheet (the data comes from a query in MS Access but is exported in .xls format)

    Hope you can help, much appreciated if anyone can, original formula here which was in cells E1:E100

    =INDEX($B$1:$B$25,MATCH(MAX(IF(A1:A25=D2,IF($C$1:$C$25<=$K$1,$C$1:$C$25))),$C$1:$C$25,0),1)

    Thanks

    Jonny
    Attached Files Attached Files

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

    Re: Index & Match???

    I've just amended your formula slightly (shown in red):

    =INDEX($B$1:$B$25,MATCH(MAX(IF(A$1:A$25=D2,IF($C$1:$C$25<=$G$1,$C$1:$C$25))),$C$1:$C$25,0),1)

    Note that this is an array formula, so must be committed using Ctrl-Shift-Enter (CSE) rather than the usual <Enter>.

    I think you must have changed the cell where you have the =NOW() formula.

    Hope this helps.

    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. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  2. [SOLVED] Index Match from a cell populated from index match
    By MarcLewis in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-15-2013, 05:30 AM
  3. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  4. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  5. Replies: 5
    Last Post: 02-29-2012, 08:51 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