Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Zug
 
Posts: n/a
Default Using rounded time with vlookup

I'm trying to use the =now() function to provide the current time, and use it
to reference another sheet containing a schedule so it will auto-populate
with the information depending on the time of day, and the day of the week.
I have the day of the week figured out, but getting time to round to the
nearest hour (and exclude the date) is pretty rough. I have been successful
at rounding to the nearest hour, but no matter what I do, it includes the
date and as such will not refer to a schedule containing times like 1:00 pm
as the cells that I am using contain (4-29-06) 1:00pm... The date is hidden
due to the format of the cell, yet the number is still a part of the
information there. Here is the series I have so far.

=now()
=FLOOR(G1,"01:00")

Is there any way for me to get rid of the date, or should I scrap the whole
thing :)

Sorry if that was unclear, this has given me a headache ;)
  #2   Report Post  
Posted to microsoft.public.excel.misc
Pete_UK
 
Posts: n/a
Default Using rounded time with vlookup

Try this instead of just NOW():

=MOD(NOW(),1)

Hope this helps.

Pete

  #3   Report Post  
Posted to microsoft.public.excel.misc
daddylonglegs
 
Posts: n/a
Default Using rounded time with vlookup


To get the hour of the current time (in time format) with just one
formula

=HOUR(NOW())/24

format as time


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=537526

  #4   Report Post  
Posted to microsoft.public.excel.misc
Zug
 
Posts: n/a
Default Using rounded time with vlookup

Thanks guys! Both worked like a charm! :)

"daddylonglegs" wrote:


To get the hour of the current time (in time format) with just one
formula

=HOUR(NOW())/24

format as time


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=537526


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hot key for time? Dave in Des Moines New Users to Excel 2 March 24th 06 04:31 PM
Hot key for time? Dave in Des Moines Excel Worksheet Functions 2 March 24th 06 04:15 PM
Hot key for time? Dave in Des Moines Excel Discussion (Misc queries) 1 March 24th 06 03:46 PM
time sheet to calculate 2 different columns John Sullivan Excel Worksheet Functions 1 October 21st 05 06:48 AM
Time and motion chart deant Charts and Charting in Excel 0 September 21st 05 08:22 AM


All times are GMT +1. The time now is 07:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"