+ Reply to Thread
Results 1 to 9 of 9

Find missing dates in Listbox

Hybrid View

  1. #1
    Forum Contributor Axmed.cm's Avatar
    Join Date
    02-05-2015
    Location
    Somalia
    MS-Off Ver
    2013
    Posts
    231

    Find missing dates in Listbox

    Greatings All,

    I have a listbox with some items (seres of dates). There are some dates mising, could anyone help me how I can determine those dates?

    Thank you
    Attached Images Attached Images
    GUURE

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow

    Hi,

    just via if the difference between cells is greater than one or
    recomputing the range from the difference again between last date and first date or …

    It depends on how really is your worksheet and what result layout you expect.

  3. #3
    Forum Contributor Axmed.cm's Avatar
    Join Date
    02-05-2015
    Location
    Somalia
    MS-Off Ver
    2013
    Posts
    231

    Re: Find missing dates in Listbox

    Dear @Marc L

    thanks for your response.

    This is my desired result
    Attached Images Attached Images

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Exclamation


    It seems you missed the top page yellow banner as when I click on your 'attached' nothing happens within my Excel …

  5. #5
    Forum Contributor Axmed.cm's Avatar
    Join Date
    02-05-2015
    Location
    Somalia
    MS-Off Ver
    2013
    Posts
    231

    Re: Find missing dates in Listbox

    That was a picture. I guess data is simple

    I now attached sample file, I want to NOT reference anything from the ListFillRange.

    Thanls
    Attached Files Attached Files
    Last edited by Axmed.cm; 01-15-2020 at 03:12 PM. Reason: I want to NOT reference anything from the ListFillRange

  6. #6
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,320

    Re: Find missing dates in Listbox

    How do you anticipate interrogating the data if you do not want to access its source ???

  7. #7
    Forum Contributor Axmed.cm's Avatar
    Join Date
    02-05-2015
    Location
    Somalia
    MS-Off Ver
    2013
    Posts
    231

    Re: Find missing dates in Listbox

    Thanks dear, this is just an example, In my real data I am not using ListFillRange, I populate listbox at runtime. That's why I prefere to reference the listbox items
    Last edited by Axmed.cm; 01-15-2020 at 04:19 PM.

  8. #8
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool


    So according to Sheet2 a beginner starter demonstration :

    PHP Code: 
    Sub Demo1()
        
    Dim VR&, N%, S$
            
    Sheet2.[A2].CurrentRegion.Columns(1).Value
        
    For 2 To UBound(V)
        For 
    1 To V(R1) - V(11)
            
    V(11) + vbLf
        Next N
    R
            
    If "" Then MsgBox SvbExclamation"Missing Dates"
    End Sub 
    Do you like it ? So thanks to click on bottom left star icon « Add Reputation » !

  9. #9
    Forum Contributor Axmed.cm's Avatar
    Join Date
    02-05-2015
    Location
    Somalia
    MS-Off Ver
    2013
    Posts
    231

    Re: Find missing dates in Listbox

    Quote Originally Posted by Marc L View Post
    [INDENT]
    So according to Sheet2 a beginner starter demonstration :
    Thanks dear, although I wanted to refernce listbox items as an array, still this is helpful and will take.

    thanks again

+ 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. Find all dates between two dates and then find if there is missing data
    By patrickmt in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-03-2015, 11:57 AM
  2. [SOLVED] Formula to find missing dates from a list of dates
    By PWinkz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-22-2014, 08:11 AM
  3. Excel Macro to find missing dates and insert missing date as blank row
    By JevaMarie in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-26-2013, 11:08 AM
  4. How can I find if there are missing dates
    By Lynneth in forum Excel General
    Replies: 7
    Last Post: 08-24-2010, 03:35 AM
  5. Find Missing Dates
    By jackt05 in forum Excel General
    Replies: 2
    Last Post: 03-20-2009, 10:00 AM
  6. Find missing dates in a sheet
    By alvin Kuiper in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2006, 10:55 AM
  7. find missing dates
    By Wally in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-20-2005, 02:06 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