+ Reply to Thread
Results 1 to 5 of 5

Find the latest occurrence of date in the row

  1. #1
    Forum Contributor
    Join Date
    08-22-2010
    Location
    mumbai
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    179

    Find the latest occurrence of date in the row

    Hi,

    I want to find the latest occurrence of date in the row. I have posted a sample file please help.

    Regards
    Goodboy

  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: Find the latest occurrence of date in the row

    Put this array* formula in P3:

    =IFERROR(INDEX(A3:O3,MAX(IF((B3:O3>0)*(MOD(COLUMN(B:O),2)=0),COLUMN(B:O)))),"")

    then copy down.

    *An array formula needs to be committed using the key combination of Ctrl-Shift-Enter (CSE), rather than the usual < Enter >.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    08-22-2010
    Location
    mumbai
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    179

    Re: Find the latest occurrence of date in the row

    Thanks Pete it work with the given set up but my query is if i insert any date the answer doesn't change example if i put 6/10/2016 in cell 03 it does not give me the result of cell O3 can u please explain or any formula with which it can be done.

  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: Find the latest occurrence of date in the row

    Your dates seemed to be in alternate columns (B, D, F etc.) so the formula only looks at those columns - put the date in N3 and you will see it change.

    Hope this helps.

    Pete

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Find the latest occurrence of date in the row

    All dates are from 2016 or what is a range of the years?

    btw. formula #2 has a defect in the case if you insert value equal to the datevalue the result will be incorrect. E.g. 42500 with format different than date.
    Last edited by sandy666; 06-10-2016 at 06:32 PM.

+ 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: 9
    Last Post: 12-21-2014, 06:29 PM
  2. [SOLVED] Find the first occurrence of any Date in a column
    By maw230 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 03-14-2014, 02:43 PM
  3. [SOLVED] Find the latest date
    By fitzt70 in forum Excel General
    Replies: 5
    Last Post: 07-16-2013, 03:36 AM
  4. Find the Latest Date
    By davidhale87 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-09-2013, 05:20 PM
  5. Replies: 1
    Last Post: 04-04-2012, 08:21 AM
  6. Replies: 2
    Last Post: 03-31-2012, 01:08 AM
  7. Excel 2007 : Find Date of Last Occurrence
    By Twill413 in forum Excel General
    Replies: 3
    Last Post: 09-15-2011, 11:33 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