+ Reply to Thread
Results 1 to 5 of 5

reference date time range, return the value into all cell that match datetime range

  1. #1
    Registered User
    Join Date
    09-22-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003 and 2010
    Posts
    2

    reference date time range, return the value into all cell that match datetime range

    Hi Good people, Please correct or comment on any points to improve my posts.
    I basically have sunrise sunset times and corresponding heat load for that day (call solar transmission table).

    In another table I have hourly date time breakdowns for the whole year (call hourly solar capture table).

    What I need to do is have the solar capture table look at its datetime and return the value from solar transmission that corresponds to the hours that fall between the range.

    I have tried working around nested if and have done some array work but just cant sem to get the right combination.
    In the attachment I have tried to show the output im looking for.
    Date time lookup return value.xlsx


    Some sturcture help would be appreciated.
    Thanking you all in advance
    BE WELL
    JOSH

  2. #2
    Forum Contributor
    Join Date
    12-22-2010
    Location
    Rio, Brazil
    MS-Off Ver
    Excel 2010, 2016
    Posts
    209

    Re: reference date time range, return the value into all cell that match datetime range

    Maybe this formula in F5 copied down

    =IFERROR(INDEX($C$5:$C$370,MATCH(1,INDEX(($E5>=$A$5:$A$370)*(E5<=$B$5:$B$370),0),0)),"")
    Marcelo Branco

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: reference date time range, return the value into all cell that match datetime range

    In cell c5

    =VLOOKUP(A5,$E$5:$F$8788,2,TRUE) and copy down.

    See http://www.techonthenet.com/excel/formulas/vlookup.php
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    09-22-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003 and 2010
    Posts
    2

    Re: reference date time range, return the value into all cell that match datetime range

    Thanks mlcb and alansidman
    mlcb responce did the job,
    alansidman also worked but I hade to flip the referecning likley due to my poor description in question
    Both great structure reference as I go forward.
    Thanks Again
    Josh

  5. #5
    Forum Contributor
    Join Date
    12-22-2010
    Location
    Rio, Brazil
    MS-Off Ver
    Excel 2010, 2016
    Posts
    209

    Re: reference date time range, return the value into all cell that match datetime range

    Quote Originally Posted by Jarvco13 View Post
    Thanks mlcb and alansidman
    mlcb responce did the job,
    alansidman also worked but I hade to flip the referecning likley due to my poor description in question
    Both great structure reference as I go forward.
    Thanks Again
    Josh
    You are welcome and thanks for the feedback.

+ 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] Search for String in Range, If Match, Return Matching Cell Value
    By ryanb909 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-21-2013, 02:27 AM
  2. VLOOKUP to return when the cell reference falls between a range
    By tomdenners in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-15-2013, 08:33 AM
  3. Replies: 17
    Last Post: 12-05-2012, 09:01 PM
  4. Replies: 9
    Last Post: 10-02-2011, 08:37 PM
  5. Based on a Column datetime value auto calculate and populate a datetime range
    By rajashanmuga in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-22-2010, 04:10 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