+ Reply to Thread
Results 1 to 9 of 9

Add missing hours and days in the data sheet

  1. #1
    Registered User
    Join Date
    07-23-2018
    Location
    Cairo, Egypt
    MS-Off Ver
    2016
    Posts
    25

    Question Add missing hours and days in the data sheet

    Dear Friends

    I have a data sheet "attached" that contains a missing data ( missing hours and missing days), I used the Kutools to insert blank rows for the missing hours but I still have a problem that I can't solve.

    I need the hour columns to contain the 24 hours of the day and also to insert the missing days rows.

    please help me in that ....
    Attached Files Attached Files

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

    Re: Add missing hours and days in the data sheet

    Hello mostafa.elnazer and Welcome to Excel Forum.
    In the attached file columns G:I fill in the missing rules, days and times then columns J:L match the temp, dewpt, and RH
    The formula that populates column G is: =IF(ROW()=2,0,MOD(G1+1,24))
    The formula that populates column H is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The formula that populates column I is: =TIME(G2,0,0)
    The formula that populates columns J:L is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    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.

  3. #3
    Registered User
    Join Date
    07-23-2018
    Location
    Cairo, Egypt
    MS-Off Ver
    2016
    Posts
    25

    Red face Re: Add missing hours and days in the data sheet

    thanks a lot JeteMc, I trying to apply the fix for my whole file, I will keep you updated with the results ... thanks again ...

  4. #4
    Registered User
    Join Date
    07-23-2018
    Location
    Cairo, Egypt
    MS-Off Ver
    2016
    Posts
    25

    Question Re: Add missing hours and days in the data sheet

    Dear JeteMc, I have applied the same fix as you suggested but it seems that the date column is not matching the correct date sequence ...
    because it continues the numbering as they are numbers not dates ... attached is the test file ...
    Attached Files Attached Files

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

    Re: Add missing hours and days in the data sheet

    Modify the formula in cell H2 to read: =IF(ROW()=2,DATE(2000,1,1),IF(COUNTIFS(H$1:H1,H1)<24,H1,H1+1))
    While cell H2 is still selected change the formatting to Custom > Type: yyyymmdd
    Double click the fill handle to copy the formula and formatting down the column.
    Let us know if you have any questions.

  6. #6
    Registered User
    Join Date
    07-23-2018
    Location
    Cairo, Egypt
    MS-Off Ver
    2016
    Posts
    25

    Re: Add missing hours and days in the data sheet

    Dear JeteMc, I have tried the formula for the columns from J to L and the file keeps saying that the excel resources is not enough and I have to add more memory (although I have 32 Gb ram and 32 processor cores) or I have to try 64bit version of excel, and since my last reply i'm trying to fix this error with no success, and when I reduce the number of rows calculated to 605 as in your example file, I got zeros along the Temp column (I don't know if the error causes this zeros or not).

    do you have any fix for this ???

    thanks alot in advance ...

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

    Re: Add missing hours and days in the data sheet

    As far as the zeros or blanks in columns J:L I believe that the fix for that is to:
    1) Select column B
    2) From the Data tab select Text to Columns
    3) Select NEXT and NEXT
    4) Select DATE and YMD
    5) Select FINISH
    As far as the memory issue I have an 8 year old, dual core computer with 3.00 GB of installed RAM. I am using the 32 bit version of Excel. I didn't run into any problems applying the formulas to the file attached which has 1393 rows.
    Let us know if you have any questions.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    07-23-2018
    Location
    Cairo, Egypt
    MS-Off Ver
    2016
    Posts
    25

    Re: Add missing hours and days in the data sheet

    ok, I will try and give you feedback ...

    thanks a lot.

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Add missing hours and days in the data sheet

    What !?!
    Confirmation after 3 years!
    Hope JeteMc has bought a new PC! Or still using a 11-year-old one!
    Quang PT

+ 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. [SOLVED] Compare two columns on separate sheet, if missing, insert missing data
    By lilvictorians in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-03-2019, 11:44 PM
  2. How to make an attendance sheet that displays missing days
    By mati20 in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 03-13-2018, 04:16 PM
  3. Replies: 3
    Last Post: 06-30-2017, 01:05 PM
  4. Replies: 2
    Last Post: 07-08-2014, 07:00 PM
  5. Time sheet, sick days to hours
    By kurmee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-23-2014, 10:34 AM
  6. data saved for the last 10 days is missing
    By shakeer1978 in forum Excel General
    Replies: 0
    Last Post: 01-11-2013, 09:31 AM
  7. translate 'days, hours, mins' calculation from sheet to VBA
    By rawtech in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-07-2011, 02:24 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