Results 1 to 4 of 4

Using VBA Find smallest date larger than refdate for each lotid

Threaded View

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,679

    Using VBA Find smallest date larger than refdate for each lotid

    I have two columns of data (see enclosed file).

    What i want to do is find the smallest date larger than the refdate (in cell E1) for each lotid. If there is no date larger than the refdate for a given lotid then return "n/a".

    So ideally, i would have two output columns (see file.....cols H and I) where in col H i have the lotid and in col I have the smallest date larger than the refdate.

    I want to do this via VBA.

    Any ideas?
    Attached Files Attached Files
    Last edited by welchs101; 01-10-2012 at 06:52 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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