+ Reply to Thread
Results 1 to 5 of 5

Filling daily data in gaps

  1. #1
    Registered User
    Join Date
    05-07-2019
    Location
    Breda, The Netherlands
    MS-Off Ver
    2013
    Posts
    3

    Question Filling daily data in gaps

    Hello everyone,

    I have a question about my data and how to manage this without spending insane amounts of time on it.

    Please check out my data below:
    (It is data regarding irrigation in 2018 retrieved from a model I am using to write my thesis)
    I just copy-pasted it in here, so it probably will not look the greatest, but you will get what I am looking for,

    Crop name Date Irrigation (cm)
    Grass 20-4-2018 2.2
    Grass 6-5-2018 1.9
    Grass 10-5-2018 2
    Grass 16-5-2018 2.2
    Grass 22-5-2018 2.1
    Grass 29-5-2018 2.3
    Grass 6-6-2018 2.1
    Grass 11-6-2018 2.1
    Grass 17-6-2018 2.3
    Grass 24-6-2018 2.3
    Grass 28-6-2018 2
    Grass 2-7-2018 2.6
    Grass 5-7-2018 2
    Grass 9-7-2018 2.2
    Grass 14-7-2018 2.2
    Grass 18-7-2018 2.2
    Grass 22-7-2018 2.1
    Grass 26-7-2018 2.2
    Grass 30-7-2018 2.3
    Grass 3-8-2018 2.2
    Grass 7-8-2018 2.3
    Grass 20-8-2018 2.3
    Grass 5-9-2018 2
    Grass 12-9-2018 2
    Grass 19-9-2018 2.2
    Grass 7-10-2018 2
    Grass 15-10-2018 2.2

    As you can see the model gives me data per day for 2018. However, when there is no irrigation, the model simply leaves these days out.
    I want to make a graph showing the amount of irrigation per day, including the days that there is no irrigation, so 0 for these days.
    Is there a way to do this easily? Without me having to do a lot of work and adding in all the days that are 0.

    Thanks in advance.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,450

    Re: Filling daily data in gaps

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    05-07-2019
    Location
    Breda, The Netherlands
    MS-Off Ver
    2013
    Posts
    3

    Excel file

    Heres the excel file. It contains multiple crops and grass..
    I want to add all of them into one graph, also showing the days that are not included with 0.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-07-2019
    Location
    Breda, The Netherlands
    MS-Off Ver
    2013
    Posts
    3

    Re: Filling daily data in gaps

    I posted the excel file.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,594

    Re: Filling daily data in gaps

    Here is a proposal that only takes a few minutes to implement. (modeled for the data in A1:C28 as shown in columns T:V)
    1. Copy A1:C2 and paste to T1,
    2. Paste the one of the following into U3: =IF(SUM(U2,1)>B$28,"",SUM(U2,1)) or just =SUM(U2,1)
    3. Calculate the number of rows needed (cell X2) using: =B28-B2
    4. Goto U180 and press the Ctrl + up arrow keys
    5. Press Ctrl + d
    6. Move the cursor over to T180 and press the Ctrl + up arrow keys
    7. Press Ctrl + d
    8. Paste the following formula into cell V3: =IFERROR(INDEX(C$3:C$28,MATCH(U3,B$3:B$28,0)),0)
    9. Double click the fill handle to copy down.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Excel 2019 Bible Error? Filling gaps in imported report
    By jes269 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-30-2019, 06:23 PM
  2. Insert rows, filling in number gaps
    By mmillertech in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-14-2018, 01:31 PM
  3. [SOLVED] Data Prep by Filling in Data Gaps from a Report Download
    By BobZZ in forum Excel General
    Replies: 3
    Last Post: 04-03-2018, 05:30 AM
  4. [SOLVED] Need Code for Filling gaps in Cells
    By pvsvprasad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2016, 04:30 AM
  5. using text data from one table and filling in the gaps in another.
    By X-tremejoe in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-05-2012, 08:43 AM
  6. Filling in data gaps
    By hoffey in forum Excel General
    Replies: 2
    Last Post: 02-24-2010, 08:07 PM
  7. Filling gaps in non adjacent column
    By Robert Jules in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-01-2005, 11:45 AM

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