+ Reply to Thread
Results 1 to 5 of 5

randbetween time

  1. #1
    Registered User
    Join Date
    06-30-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    70

    randbetween time

    Is it possible random between time
    Ex. - random between 01:23 - 02:08

    and it give me different value between 01:23 - 02:08

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: randbetween time

    You can do this:

    =RANDBETWEEN(A1*60*24,B1*60*24)/60/24

    where A1 contains 01:23 and B1 contains 02:08 (proper Excel times, not text values). Format the result as [h]:mm

    Hope this helps.

    Pete

  3. #3
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: randbetween time

    Hi ...

    try this..

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


    Increase the number of "0" to get more accurate time.. like 1:23:01 to 2:07:59
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: randbetween time

    It depends what sort of values you want, every minute, every second, every millisecond?

    If you want every minute between those two times (including end points) try this formula

    =RANDBTWEEN(83,128)/1440

    format results cells as time values
    Audere est facere

  5. #5
    Registered User
    Join Date
    06-30-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: randbetween time

    Thanks a lot Friends ur formula is working as i want

+ 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. Randbetween
    By AlisonPotts in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-25-2013, 03:16 PM
  2. Randbetween Returns 1 Every Time
    By goss in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-19-2013, 07:56 AM
  3. randbetween
    By Blake 7 in forum Excel General
    Replies: 4
    Last Post: 10-05-2012, 09:37 AM
  4. randbetween + date + time
    By maheshr68 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-15-2011, 01:17 PM
  5. randbetween
    By selena in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-28-2009, 03:56 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