+ Reply to Thread
Results 1 to 11 of 11

Missing Dates for multiple clients

  1. #1
    Registered User
    Join Date
    08-11-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    6

    Missing Dates for multiple clients

    Hi,

    I have a spreadsheet that lists Client in column A, Dates in column B, and data in column C.
    However, there are dates missing and I'd like to:
    - Fill in missing dates for each client including all dates until the end of the last month in the data.
    - When my dates start after the beginning of the month, I'm missing the days from the beginning until then. Ideally I'd fill those in too with the data from the earliest day of the month.

    The data should also take the previous date's value.

    Please Login or Register  to view this content.
    Becomes...

    Please Login or Register  to view this content.
    So far this is all I could find, which doesn't go until the end of the month when the client changes.

    Please Login or Register  to view this content.
    Ultimately I want to get the average data for each month including missing dates PER CLIENT.

    Any help is appreciated.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Missing Dates for multiple clients

    Assuming data in Col.A to C, header in 1st row.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-11-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Missing Dates for multiple clients

    This is great. Thank you so much.

    The only thing is that when a client has its first date after the beginning of the month
    Please Login or Register  to view this content.
    then it should use the 2000 for 1/1/2013 through 1/5/2013. Right now the macro is using the previous client's data
    Please Login or Register  to view this content.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Missing Dates for multiple clients

    Then you need to upload a sample workbook with the data and the result that you want.

  5. #5
    Registered User
    Join Date
    08-11-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Missing Dates for multiple clients

    Here's a sample of the output I'd like. In the list from F:H shows what I mean about using the first set of data for a client in a given month. In K:M is ultimately what I'm trying to get, which is the average of the extrapolated data by month and client. Is there a way to go directly to this without the long list? Because sometimes if my dataset is too large the macro does not work (in Office 2003).

    MissingDtSample.xls

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Missing Dates for multiple clients

    This should do
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    08-11-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Missing Dates for multiple clients

    Thank you jindon. Actually if you look at the red coloured cells in F:H of my sample file, you'll see that those values are different from the result with your code. For example, I wanted:
    Please Login or Register  to view this content.
    And is there a way to not have to show the long list F:H and still do the calculation? In my version of Excel if I have too much data this part will be more than the maximum rows.
    Last edited by bcx; 08-15-2013 at 07:40 PM.

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Missing Dates for multiple clients

    Explain why:

    H272 = 2200, equal to one above.
    H182 = 2200, equal to one below.

    These dates are both beginning of the month.
    Last edited by jindon; 08-15-2013 at 09:33 PM. Reason: fixed typo

  9. #9
    Registered User
    Join Date
    08-11-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Missing Dates for multiple clients

    Quote Originally Posted by jindon View Post
    Explain why:

    H272 = 2200, equal to one above.
    H182 = 2200, equal to one below.

    These dates are both beginning of the month.
    Because F181 != F182 (they are different clients)
    While F271 = F272

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Missing Dates for multiple clients

    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    08-11-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Missing Dates for multiple clients

    Many thanks jindon. This is extremely helpful!

+ 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. Determining last date seen from list with clients seen multiple times
    By AllisonT in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-24-2013, 08:49 PM
  2. 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
  3. Allocating one expense to multiple clients
    By andresndor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2012, 01:57 PM
  4. Replies: 1
    Last Post: 12-27-2011, 03:11 PM
  5. Replies: 0
    Last Post: 03-03-2010, 12:33 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