+ Reply to Thread
Results 1 to 2 of 2

find the second last date in a column

  1. #1
    Registered User
    Join Date
    08-05-2016
    Location
    Waterloo, Ontario
    MS-Off Ver
    2007
    Posts
    1

    find the second last date in a column

    I’m trying to find the second last date in a column.

    This comes up with the date

    LastCell = Range("A1").End(xlDown).Select

    Format(LastCell, "mmm-dd-yyyy") so far so good.

    But I can’t seem to stumble onto any syntax that will result in the cell above it.

    I have tried things like

    Format(LastCell.Offset(0, -1), "mmm-dd-yyyy") but haven’t found it yet.

    Suggestions? Please. & Thanks

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: find the second last date in a column

    Hi,

    One way assuming there's nothing below the last date

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. I want to find the difference between todays date and the Date in the 10 column in VBA
    By erickmcburger in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2015, 07:29 AM
  2. Find latest date in a column and return a value with that date
    By Neyme in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-13-2015, 01:50 PM
  3. Find which date range a date is within and return another column
    By APJo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-17-2014, 08:14 PM
  4. Find next date in a column and count how many rows fall in the first date
    By zookeepertx in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-11-2014, 10:50 AM
  5. Find most recent date in Column Headings in a Range, insert new column and heading
    By mikey3580 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-07-2014, 08:28 AM
  6. [SOLVED] vba code to find Duplicate Values and Newest date(Max) date in the Corresponding Column(ce
    By Pradu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-10-2013, 05:20 AM
  7. Replies: 5
    Last Post: 10-14-2010, 01:06 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