+ Reply to Thread
Results 1 to 3 of 3

Adding dates to a column and keeping data associated with the proper date

  1. #1
    Registered User
    Join Date
    06-06-2013
    Location
    hawaii
    MS-Off Ver
    Ecxel in Windows XP
    Posts
    9

    Adding dates to a column and keeping data associated with the proper date

    I have a column with dates and times, and an associated column with data for all the dates and times. I want to add every hour of every day to the date/time column, but want the data associated with the times to stay in the row next to the correct time. How would I do this? In the attached file, i want to make coulmns A and B look like Coulnds E and F. I have hundreds (if not thousands) of rows, so i need a way to do this easily. Also, the times are not all evenly spaced or exactly on the hour. I dont need the times to be exactly on the hour or spaced out evenly, but i would like to have at least one time from every hour.

    Any suggestions will be appreciated!
    DBdate time alter.xlsx

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Adding dates to a column and keeping data associated with the proper date

    @dannybten23

    The file your posted is not consistent.

    You add data in between (in column E and F) that are not in A and B.

    Also the data are not a- or decending ordered.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Adding dates to a column and keeping data associated with the proper date

    I created a column of dates and times starting 1 hour before the oldest time in your data. This was done by entering the date and time in H1 and in H2 entered =H1+1/24 and copied down column H. I then selected this column of dates and times and copied and pasted back as Values. This eliminated the formulae that produced the dates and times.

    Next, I selected the existing data (dates times and associated values) and copied and pasted that data on the bottom of the dates and times that I created in Column H.

    Next, I selected columns H and I and Custom Sorted on Column H Oldest to newest.

    The results you will see in the attached file.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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