+ Reply to Thread
Results 1 to 2 of 2

Loop Macro to Find Minimum Date for Column Data

  1. #1
    Registered User
    Join Date
    09-05-2011
    Location
    las vegas
    MS-Off Ver
    Excel 2010
    Posts
    1

    Loop Macro to Find Minimum Date for Column Data

    Hello,
    I'm struggling to find a way to automatically display the minimum date for each segment of data in column C shown in the attached file. Column D shows the filter I'm trying to achieve for all data in column C. I was thinking I need a macro that finds the minimum date in the column C cells that is between the non-date cells and displays the value in column D under the segment indicated by the darker shade. I greatly appreciate your help. I have no experience with VBA but am willing to try if you have any hints.
    Thanks,
    Adam
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Loop Macro to Find Minimum Date for Column Data

    Hi Adam and welcome to the forum,

    I created a formula in Column B to put the red number next to each date. Then I copy and pasted over the column B with values only. Then sort by red color in column C and delete those rows. This then allowed me to create a pivot table and display Min values associated with each number. See attached. I think this is what you wanted.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ Reply to Thread

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