+ Reply to Thread
Results 1 to 3 of 3

Using Randbetween - tyring to create a random list of times, in 20second intervals

  1. #1
    Registered User
    Join Date
    05-29-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    3

    Using Randbetween - tyring to create a random list of times, in 20second intervals

    Hi,

    So I'm trying to create a random set of start times for a run, which I'm okay to do, but I'm struggling to figure out how to make these go every 20 seconds.

    I'm trying to have start times going from 09:30:00 through to 13:30:00, and the start times go in waves every 20 seconds, so 09:30:00, 09:30:20, 09:30:40,09:31:00 and so on...

    Any ideas!

    I had this formula in use =$A$7+RANDBETWEEN(0,INT(($B$7-$A$7-1/24)*24*60))/(24*60) - but that gives me no seconds to go on. I'd love to just add to this! Where cell A7 is 09:30:00 and cell B7 is 13:30:30.

    Jonathan

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,983

    Re: Using Randbetween - tyring to create a random list of times, in 20second intervals

    in B7

    =A7+TIME(0,0,20)

    copy across

    EDIT: misread your post: why 13:30:30 in B7 ???

    And your formula will give a circular reference
    Last edited by JohnTopley; 03-14-2018 at 07:14 AM.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Using Randbetween - tyring to create a random list of times, in 20second intervals

    Try this:

    =$A$7+RANDBETWEEN(0,($B$7-$A$7)*4320)*20/86400

    But I'm not really sure what your expected results will look like....
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

+ 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] RANDBETWEEN - maybe not so random
    By Imbizile in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-01-2018, 06:05 PM
  2. Assign random number (RANDBETWEEN) equal number of times
    By dechesne in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-20-2016, 10:58 AM
  3. Replies: 10
    Last Post: 07-03-2015, 04:29 PM
  4. Replies: 3
    Last Post: 11-22-2013, 05:06 PM
  5. Randbetween or Random Number (1,3)
    By itselflearn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-27-2013, 02:34 PM
  6. Replies: 2
    Last Post: 08-01-2012, 01:24 PM
  7. Random numbers not using randbetween()
    By davehill1974 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-07-2005, 12:05 PM

Tags for this Thread

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