+ Reply to Thread
Results 1 to 3 of 3

Calculate Missing Data and Fill

  1. #1
    Registered User
    Join Date
    07-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    88

    Calculate Missing Data and Fill

    Hi All,

    I maintain a workbook that I use to run a process at the end of each day. The workbook contains a macro that grabs prices for 11 products from another file on my company's shared drive. However, the process is only designed to run for the current day - if I went a week without running it, when I started back up again it wouldn't fill in the missing days.

    What I'd like to do is create a macro to help facilitate this process. As you can see in the attached file, the data I already have is in descending chronological order. My thinking is as follows: on the "Dates" tab, I have a formula to calculate how many days worth of data I'm missing "X" (TODAY - the most recent date that I have). From there, if I could come up with something to insert that many rows ("X" rows) at row 10and then insert the correct dates in A, and then a formula in each cell from B - L (the formula pulls in the data in the actual workbook), I'd end up with whatever I was missing. I'm not sure if a loop of some sort is the most efficient way to do this. Fill Missing Data.xlsm

    Any thoughts, suggestions, etc. are much appreciated. Thank you for taking a look!

    Best,

    Student1990

  2. #2
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: Calculate Missing Data and Fill

    how bout this:

    Please Login or Register  to view this content.
    Last edited by simarui; 03-09-2015 at 09:32 AM. Reason: little bit of optimization
    Hope I could help - if your post has been solved don't forget to mark it as such.

    Clicking the * below is a great way to say thanks!

    "Drowning in 10 feet of water isn?t any different than drowning in a million feet. And if you can swim, it doesn?t matter how deep the ocean is. At some level, once you realize you?re in water that?s too deep to stand, you have to have a very different approach," - Joi Ito

  3. #3
    Registered User
    Join Date
    07-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    88

    Re: Calculate Missing Data and Fill

    Yes - this works perfectly. Thank you for your help!

+ 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. How to calculate Average of daily data to fill missing values
    By mahjid in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2013, 05:46 AM
  2. Fill in missing data
    By crobledo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-04-2013, 08:30 AM
  3. fill missing data
    By bertusavius in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2012, 01:53 PM
  4. Fill in missing data
    By Jbm444 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-16-2010, 11:42 AM
  5. Excel 2007 : to fill missing data in excel
    By sureshdoranga in forum Excel General
    Replies: 1
    Last Post: 12-01-2009, 07:15 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