Results 1 to 20 of 20

Merge multiple sheets data into one worksheet based on multiple criteria and date

Threaded View

  1. #13
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Merge multiple sheets data into one worksheet based on multiple criteria and date

    As you state correctly, the
    Actual format (Custom) will be mmmm-yyyy
    but this is something you have done by hand by you worksheets do not have correct date formats in any way.
    If I check the cell formats in all the date cells are not formatted as date all are format of the type General which in Excel causes a lot of issues when it comes down to comparing dates and especially if the system settings are different for each user which in my case is dd-mm-yyyyy and since you have NOT set correct format your 03-11-2014 (if you state this is March 11 2014) is interpreted by me as November 3 2014.
    This is taking up a lot of my time and I don't think I can help you with these discrepancies and not knowing what is to be filtered.

    I have attached three screenshots of the different worksheets and a module you can use to select dates which you should implement

    DATA has not format is plain text !

    Resubmission ... column C are the dates as displayed here on my system

    Statements is you manual modification

    I have attached the zipped vba modules you need to import in your file and the code to add to your userforms and the VBA Project Module

    
    '*  global variables
    Global g_sDate  As String
    Global g_bForm  As Boolean
    
    
    '* in the Userform use this to select a date 
    Private Sub TbxStartDate_Enter()
        g_bForm = True
        frmCalendar.Show_Cal
        Me.TbxStartDate.Value = g_sDate
    End Sub
    
    Private Sub TbxEndDate_Enter()
        g_bForm = True
        frmCalendar.Show_Cal
        Me.TbxEndDate.Value = g_sDate
    End Sub
    The red marked code code you place in Module1, the other part in the USerform1 and give it the name of the textboxes you use for the date

    I hope you can make it work.
    Attached Images Attached Images
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 29
    Last Post: 01-01-2017, 10:25 AM
  2. Select a cell at random based on multiple selection criteria across multiple sheets.
    By scottyms in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2016, 09:44 AM
  3. [SOLVED] Merge multiple sheets data into one worksheet based on multiple criteria
    By hecgroups in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-05-2016, 10:32 AM
  4. Compare and Merge Data from Multiple Sheets in a worksheet
    By joeexcell in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-07-2012, 09:08 PM
  5. Search multiple sheets for value based on criteria and copy data accordingly
    By Zagadka in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-31-2012, 08:46 AM
  6. Replies: 0
    Last Post: 07-27-2011, 01:00 AM
  7. Copy data from multiple sheets based on certain criteria!!
    By missyk77 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-24-2010, 12:05 PM

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