+ Reply to Thread
Results 1 to 2 of 2

[VLOOKUP] 2 values - how do I get the newer value??

Hybrid View

  1. #1
    Registered User
    Join Date
    06-18-2014
    Location
    Germany
    MS-Off Ver
    2013
    Posts
    2

    [VLOOKUP] 2 values - how do I get the newer value??

    Hi folks,
    I have a specific question regarding VLOOKUP, which I cant solve. Hope you can help me:

    I have 2 tables:


    Table 1 has the following content:

    Transaction ID....Status....Turnover
    123.................In Process...2000 EUR
    124.................In Process...1000 EUR
    125.................Open..........800 EUR

    Table2 has the following content:

    Transaction ID......Activity ID...Date
    123....................505..........22.11.2014
    128....................509..........22.10.2014
    123....................506..........10.12.2014

    As you can see, Transaction 123 unfortunately is assigned twice in table 2, each time with a different activity ID (505 and 506).

    What I want to achieve:

    In table 1 I want to create a new column where the activity with the newest date should be shown!

    In my example with transaction 123 it would be activity 506:

    Transaction ID....Status....Turnover......Activity ID
    123.................In Process...2000 EUR.....506

    --> Any idea how I can achieve this with Excel?

    Thank you!

    Regards.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: [VLOOKUP] 2 values - how do I get the newer value??

    Assuming your table is in A1:A3 I would try something like and the most recent will always be the last I would try something like:
    =INDEX(B1:B3,MAX((A1:A3=A5)*ROW(A1:A3)))
    as an array formula (confirm with ctrl+shift+enter)

+ 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. picking the newer of multiple entries
    By saimike in forum Excel General
    Replies: 2
    Last Post: 10-23-2013, 10:13 AM
  2. VBA code problem copying saving workbook
    By jet2004uk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-10-2012, 09:36 AM
  3. Can't find features in newer version
    By pdgood in forum Excel General
    Replies: 1
    Last Post: 02-21-2006, 11:10 AM
  4. [SOLVED] Disable prompt for newer version
    By REVA in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2006, 08:45 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