+ Reply to Thread
Results 1 to 6 of 6

Need to populate select cells onto another page if date stamp falls in a time range.

  1. #1
    Registered User
    Join Date
    04-01-2014
    Location
    Two Rivers, WI
    MS-Off Ver
    Excel Professional Plus 2010
    Posts
    20

    Need to populate select cells onto another page if date stamp falls in a time range.

    I have seen a few samples of this, but I can't seem to be able to get it to work correctly for me.

    I have a set that looks

    DateSample Data 1 Data 2 Data 3

    I am populating into a set that would look like this

    Date 1 Data 1 Data 2 Data 3 Data 4
    Date 2 Data 1 Data 2 Data 3 Data 4
    Date 3 Data 1 Data 2 Data 3 Data 4
    Date 4 Data 1 Data 2 Data 3 Data 4
    Date 5 Data 1 Data 2 Data 3 Data 4
    Date 6 Data 1 Data 2 Data 3 Data 4
    Date 7 Data 1 Data 2 Data 3 Data 4
    Date 8 Data 1 Data 2 Data 3 Data 4

    I need the functionality that if DateSample is between Date 2 and Date, I would be able to populate the cells in that row with the data from the DateSample line. Not necessarily in the order that they are in. Data 3 for DateSample might go to the Data 2 spot in the sheet.

    I am sure there is a simple way to do this, but I am not finding it at the moment.

    Thank you.

    Rj

  2. #2
    Registered User
    Join Date
    05-25-2010
    Location
    Florida
    MS-Off Ver
    Excel 2009
    Posts
    39

    Re: Need to populate select cells onto another page if date stamp falls in a time range.

    What happens if the date falls between Date 2 and Date 8 but there is no row with data in it? If your dates will match the dates in the first column then you should be able to do a vlookup. Does the order of the Data matter to you at all or can they be in any order (like the same order they were in)?

  3. #3
    Registered User
    Join Date
    04-01-2014
    Location
    Two Rivers, WI
    MS-Off Ver
    Excel Professional Plus 2010
    Posts
    20

    Re: Need to populate select cells onto another page if date stamp falls in a time range.

    My dates will almost never be exactly the same. The dates in the data set that is being populated to is constantly changing and updating based on =NOW() so the dates are changing. The data that is being pulled into the table is being arranged chronologically.

    Right now, I have a data set that is spaced 1 hour apart and pulls live data.

    If the date/time for that set falls between 1200 and 1300, and I have a Sample1 that falls at 1309, I need the set to populate Data1 from Sample1 into a the row that is designated for between 1200 or 1300.

    Does that make sense?

  4. #4
    Registered User
    Join Date
    04-01-2014
    Location
    Two Rivers, WI
    MS-Off Ver
    Excel Professional Plus 2010
    Posts
    20

    Re: Need to populate select cells onto another page if date stamp falls in a time range.

    Capture.JPG

    Here is a better explanation.

    Here is a picture of what I need. I need the values from Table 2 to populate into the corresponding cells in Table 1.
    Attached Images Attached Images
    Last edited by joplrw10; 03-02-2015 at 01:18 PM.

  5. #5
    Registered User
    Join Date
    05-25-2010
    Location
    Florida
    MS-Off Ver
    Excel 2009
    Posts
    39

    Re: Need to populate select cells onto another page if date stamp falls in a time range.

    Here is a solution that might work for you but you will need to add two extra columns. Assuming that "Data1" is in C2, add two columns after column E.
    F3: =INT(E3) (This gives you just the date)
    G3: =HOUR(E3-(INT(E3))) (This gives you just the hour)
    C3: =INDEX(F3:H9,MATCH(1, (F3:F9=INT(B3))*(G3:G9=HOUR(B3-INT(B3))),0),3)

    When you plug in C3, make sure you press CTRL+SHIFT+ENTER instead of just pressing enter. This is not a graceful solution but it is a solution. Hope you find this useful

  6. #6
    Registered User
    Join Date
    04-01-2014
    Location
    Two Rivers, WI
    MS-Off Ver
    Excel Professional Plus 2010
    Posts
    20

    Re: Need to populate select cells onto another page if date stamp falls in a time range.

    Figured it out using sumproduct. Worked beautifully.

+ 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] Need formula to select cells that falls bewteen certain time
    By rv02 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-17-2015, 09:56 AM
  2. determine if a certain time stamp falls into a certrain time range
    By tomsemea in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-06-2015, 11:13 AM
  3. [SOLVED] How do I date stamp different fields each time I select an option from a drop down list?
    By martyparke in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-28-2014, 05:47 AM
  4. [SOLVED] Populate cells based on date and time range selection
    By garyfahy in forum Excel General
    Replies: 3
    Last Post: 03-10-2014, 08:43 AM
  5. [SOLVED] Populate a cell with a value if time falls within a certain range
    By XLVBA in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-09-2012, 12:54 PM

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