+ Reply to Thread
Results 1 to 4 of 4

Find the latest duplicated value based on year.

  1. #1
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Find the latest duplicated value based on year.

    Hi All,

    If I have 2 columns, one containing the year and the second one containing duplicate values, how can I find only the last instance of the duplicated value based on the latest year?
    Spreadsheet attached.


    Many thanks in advance,
    Paul
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: Find the latest duplicated value based on year.

    Try:

    =IF(COUNTIFS($A$2:$A$25,">"&A2,$B$2:$B$25,B2),"",
    IF(COUNTIFS($A$2:$A$25,A2,$B$2:$B$25,B2)=COUNTIFS($A$2:A2,A2,$B$2:B2,B2),"Last instance",""))

  3. #3
    Spammer
    Join Date
    01-08-2015
    Location
    Cali, Colombia
    MS-Off Ver
    365
    Posts
    302

    Re: Find the latest duplicated value based on year.

    Hi!

    Another option could be:
    [C2] : =IF(ROW(B2)=LOOKUP(2,1/(B$2:B$25=B2)/(A$2:A$25=MAX(A$2:A$25*(B$2:B$25=B2))),ROW(B$2:B$25)),"Last Instance","")

    Blessings!

  4. #4
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Find the latest duplicated value based on year.

    Hi,

    Both formulas work. Thanks a lot.

+ 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] Find the latest price based on the date
    By jackson_hollon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-14-2016, 01:03 PM
  2. VBA- Filter Pivot table based on latest and 2nd latest date in column
    By ziyan89 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 12-29-2015, 11:18 AM
  3. Fuction to find the year based on date
    By vijanand1279 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-30-2014, 08:04 AM
  4. Sorting data with the latest year
    By skyrabbit6 in forum Excel General
    Replies: 6
    Last Post: 10-04-2014, 06:06 PM
  5. [SOLVED] How to find a value based on fiscal year end
    By cobo1981 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-16-2014, 01:04 PM
  6. Powerpivot - Returning latest update based on latest date
    By Kehjz in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 08-22-2013, 02:45 PM
  7. Replies: 3
    Last Post: 08-11-2009, 11:46 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