Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Random Number Generator


Hi,

Does anyone have any suggestions for a Macro that would run a Rando
Number Generator for 50 rows that would only return weekdays?

This is my current formula (which works great but generates Saturday
Sunday days):


=RAND()*($F$4-$F$3)+$F$3

F3= 38,353 (January 1, 2005)
F4= 38,564 (July 31, 2005)

Any help would be greatly appreciated!

Thank

--
STEVE
-----------------------------------------------------------------------
STEVEB's Profile: http://www.excelforum.com/member.php...nfo&userid=187
View this thread: http://www.excelforum.com/showthread.php?threadid=38945

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default Random Number Generator

This seemed to work for me in Excel 2000
as a worksheet function.

=WORKDAY(F1,RANDBETWEEN(F3,F4))

--
steveB

Remove "AYN" from email to respond
"STEVEB" wrote in
message ...

Hi,

Does anyone have any suggestions for a Macro that would run a Random
Number Generator for 50 rows that would only return weekdays?

This is my current formula (which works great but generates Saturday &
Sunday days):


=RAND()*($F$4-$F$3)+$F$3

F3= 38,353 (January 1, 2005)
F4= 38,564 (July 31, 2005)

Any help would be greatly appreciated!

Thanks


--
STEVEB
------------------------------------------------------------------------
STEVEB's Profile:
http://www.excelforum.com/member.php...fo&userid=1872
View this thread: http://www.excelforum.com/showthread...hreadid=389459



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
random number generator pat67 Excel Worksheet Functions 7 May 7th 10 07:42 PM
Random number generator deelee Excel Worksheet Functions 3 October 12th 06 07:46 PM
random number generator Barb Excel Discussion (Misc queries) 2 September 22nd 06 11:12 PM
random number generator rsankh Excel Programming 2 June 5th 05 11:46 AM
Random Number Generator Sophia[_2_] Excel Programming 8 May 19th 04 02:11 PM


All times are GMT +1. The time now is 06:24 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"