+ Reply to Thread
Results 1 to 4 of 4

fill missing data

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    Dordrecht, netherlands
    MS-Off Ver
    Excel 2010
    Posts
    3

    fill missing data

    I have a database of events that are associated with drivers and cars.

    These events have the following properties:
    date (of start-time)
    start-time
    end-time
    driver-id
    car-id
    start-time-mileage (STM)
    end-time-mileage (ETM)

    The list sometimes misses values in the mileage cells.

    Could a macro be created to write the proper mileage values?
    The rule should be:
    if ETM=[empty] then ETM=[STM of next event with the same car-id]
    if STM=[empty] then STM=[ETM of previous event with the same car-id]

    furthermore: lines that have no startmileage AND no endmileage should be removed.

    Link to data is two posts further down...
    Last edited by bertusavius; 10-10-2012 at 01:51 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: fill missing data

    you will get better help if you upload your sample workbook here, rather than directing elsewhere to find your file
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-27-2012
    Location
    Dordrecht, netherlands
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: fill missing data

    Thnx.

    Attached the example
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-27-2012
    Location
    Dordrecht, netherlands
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: fill missing data

    Anybody?

    Perhaps a push in the right direction

+ 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