+ Reply to Thread
Results 1 to 7 of 7

Finding the minimum value of maximum values from multiple, changing worksheets

  1. #1
    Registered User
    Join Date
    10-16-2014
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2011 Mac
    Posts
    13

    Finding the minimum value of maximum values from multiple, changing worksheets

    Hi!

    I am looking to find the minimum date after comparing multiple worksheets' maximum dates. In other words, if I have multiple sheets listing update dates, I want a cell to output the least recent update date and which sheet was least recently updated.

    Some caveats are that the update dates will be constantly changing (thus the row of the most recent update for each sheet will as well), and there may be new sheets added. I also want to ignore date from sheets whose tab is colored purple or black (color index 29 and 1).

    I have a "summary sheet" that has all of the update dates next to the sheet name, excluding the purple and black sheets.

    So far, I have tried multiple formulas, taking the minimum of the maximum of the multiple sheets, but this does not account for the dynamic nature of the workbook. I have also tried to think about take the minimum of all the last cells in row A, looping through the active sheets, but I do not know how to do this in VBA.

    Any help would be very much appreciated! I've attached an example Excel workbook to clarify!
    Example Minimum Date.xlsx

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Finding the minimum value of maximum values from multiple, changing worksheets

    To Add Excel VBA Code to a Workbook / This Workbook Module

    1. Copy the code that you want to use
    2. Select the workbook in which you want to store the code
    3. Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    4. In the Project Explorer, find your workbook, and open the list of Microsoft Excel Objects
    5. Right-click on the ThisWorkbook object, and choose View Code
    6. Where the cursor is flashing, choose Edit | Paste

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    10-16-2014
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2011 Mac
    Posts
    13

    Re: Finding the minimum value of maximum values from multiple, changing worksheets

    Hi! Thanks for your reply. I'm not sure I see what your code is doing though. I have followed the instructions and nothing happens. Could you explain more? Thanks!

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Finding the minimum value of maximum values from multiple, changing worksheets

    Oopss.. Mis Interpreted the question

    Replace the previous code with this one

    Delete the Sheet10

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-16-2014
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2011 Mac
    Posts
    13

    Re: Finding the minimum value of maximum values from multiple, changing worksheets

    Thank you so so so much!! I modified the code a little bit for what I was looking for, but I couldn't have gotten anywhere near the answer without you! Thanks!!

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-16-2014
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2011 Mac
    Posts
    13

    Re: Finding the minimum value of maximum values from multiple, changing worksheets

    Hi again!

    I just ran into a glitch - I actually need the least recent date where all of the columns have been filled in. I included an updated version of the example sheet; where it says "11/5/14" now, it should say "11/4/14" because there is a blank in the 11/5/14 column on the third sheet. I hope that makes sense! And sorry, this was my fault for not including more columns in the example sheet in the first place!

    Thanks!
    Kelleigh

    Example Minimum Date.xlsm

  7. #7
    Registered User
    Join Date
    10-16-2014
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2011 Mac
    Posts
    13

    Re: Finding the minimum value of maximum values from multiple, changing worksheets

    Also, if it helps, I have this function stored in a Module in VBA:

    Please Login or Register  to view this content.

+ 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. Return minimum values from columns across multiple worksheets
    By wylansimpson in forum Excel General
    Replies: 1
    Last Post: 08-03-2014, 05:37 PM
  2. [SOLVED] Finding minimum and maximum values based on multiple criteria and filtered data
    By jndreece in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-13-2014, 10:42 AM
  3. Replies: 10
    Last Post: 10-07-2013, 11:41 AM
  4. finding the minimum value in a column that comes after the maximum value
    By rantarctica in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-11-2008, 04:42 PM

Tags for this Thread

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