+ Reply to Thread
Results 1 to 2 of 2

Cells time for TIMEVALUE formula

  1. #1
    Registered User
    Join Date
    08-31-2016
    Location
    Australia
    MS-Off Ver
    Office 2016
    Posts
    3

    Cells time for TIMEVALUE formula

    I have a INDEX MATCH formula which uses TIMEVALUE to look up a time range.

    =MIN(IF($C$2:$C$50=A2,IF($B$2:$B$50>=TIMEVALUE("10:00"),IF($B$2:$B$50<=TIMEVALUE("11:00"),$A$2:$A$50))))

    Instead of TIMEVALUE("10:00") in the formula If I had a cell with a time in it, could I reference that cell instead of the "10:00"

    example TIMEVALUE("G2") if G2 had the time 12:00pm in it ?? (I tried this but doesn't work?)

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Cells time for TIMEVALUE formula

    You can just reference the cell itself, if it contains a time - something like:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ 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. Replies: 2
    Last Post: 11-13-2015, 07:47 PM
  2. Using RangeName instead of hard coded time in OnTime + TimeValue Vba Macro
    By rsaha in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-04-2015, 12:01 PM
  3. Help creating a TIMEVALUE formula with greater than and less than
    By ExcelDummy77 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-07-2013, 11:57 AM
  4. Replies: 5
    Last Post: 04-18-2013, 11:31 AM
  5. if statement with timevalue? Tracking Time.
    By whywhybother in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-24-2012, 08:58 PM
  6. Replies: 5
    Last Post: 10-20-2009, 06:45 AM
  7. passing a time string with milliseconds into TimeValue()
    By twd000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-20-2009, 12:18 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