+ Reply to Thread
Results 1 to 6 of 6

populate a cell using the time in another cell

  1. #1
    Registered User
    Join Date
    02-07-2020
    Location
    london
    MS-Off Ver
    2013
    Posts
    2

    populate a cell using the time in another cell

    If the time in one cell is 07:52 how do i make a second cell populate with 07:00-08:00? i would like to enter any time into a cell and then have another cell correspond with the relevant hour time period, so for example if i entered 03:42, then the corresponding cell would populate with 03:00-04:00. thanks in advance

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: populate a cell using the time in another cell

    try this formula, assuming the original time is in A1

    =TEXT(TIME(HOUR(A1),0,0),"HH:MM")&"-"&TEXT(TIME(HOUR(A1)+1,0,0),"HH:MM")
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  3. #3
    Registered User
    Join Date
    01-04-2020
    Location
    Hull, UK
    MS-Off Ver
    2016
    Posts
    60

    Re: populate a cell using the time in another cell

    Try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: populate a cell using the time in another cell

    Hi & welcome to the board.
    How about
    =TEXT(HOUR(E3)/24,"hh:mm-")&TEXT((HOUR(E3)+1)/24,"hh:mm")

  5. #5
    Registered User
    Join Date
    02-07-2020
    Location
    london
    MS-Off Ver
    2013
    Posts
    2

    Re: populate a cell using the time in another cell

    HOLY SMOKE ! that was rapid, and it works a treat!!!
    thank you so much Dosydos !!!! appreciated

    thanks again for the swift reply, fantastic!

  6. #6
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: populate a cell using the time in another cell

    =text(time(hour(a1),0,0),"hh:mm")&" - "&text(time(hour(a1)+1,0,0),"hh:mm")

+ 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] Populate a table for graphing from a single cell that changes over time
    By Mech.Eng. in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-07-2017, 07:35 AM
  2. Replies: 2
    Last Post: 09-16-2014, 07:59 AM
  3. [SOLVED] How do I populate date cell based on the sum of two time cells.
    By supatrukka in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-12-2014, 04:02 AM
  4. Populate cell with current date and time, then lock cell
    By panny in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-17-2012, 06:13 PM
  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
  6. Auto populate cell by time
    By ajxxx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2009, 01:45 PM
  7. [SOLVED] How to get data entry time to auto-populate in a cell?
    By J_P in forum Excel General
    Replies: 2
    Last Post: 08-09-2006, 08:54 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