Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 137
Default Entering a random date and time in a cell

Is there a way to entering a random date and time in a cell between the hours
9.00 and 17.00...............
For example
14/01/03 12:26:51


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Entering a random date and time in a cell

Dates and time are stored as numbers but displayed as dates/time will 0
being 1/1/1900 at midnight.
The formula =RANDBETWEEN(30000,40000)+RAND() will generate a random date
between 18 Feb 1986 and 6 July 2009 with random time. You will need to
format the cell to see date and time. Press F9 to get a new values.
best wishes

--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Dermot" wrote in message
...
Is there a way to entering a random date and time in a cell between the
hours
9.00 and 17.00...............
For example
14/01/03 12:26:51




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
run a macro in a locked cell Ray Excel Discussion (Misc queries) 8 January 10th 06 12:02 AM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 02:48 AM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 12:07 AM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 12:07 AM
Combined date time cell to separate date & time components Mark Ada Excel Worksheet Functions 1 December 2nd 04 12:04 AM


All times are GMT +1. The time now is 01:08 PM.

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

About Us

"It's about Microsoft Excel"