Generate random dates each month with no disernible pattern

bsweet0us

New Member
Joined
Apr 12, 2008
Messages
38
Office Version
  1. 365
Platform
  1. Windows
Sorry for the confusing title, but not sure how else to word it. What I'm looking to accomplish is the following....

At my work, we have to audit an employee's cash drawer on a monthly basis. To prevent each employee from knowing when each audit will occur, the selected dates have to be totally at random with no obvious pattern (i.e. always the same day of the week or the same time of the month).

I can generate a list of random dates within a specific date range, but I would need to add in the variables of not matching the day from the previous month or the week from the previous month. If I can get that base, I can figure out how to add more exclusions if necessary.

I'm not opposed to VBA, so feel free to include that in your thought process as well.

This place has never let me down before, and I'm sure that trend will continue.

THANKS IN ADVANCE!
 
Last edited:

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
To prevent each employee from knowing when each audit will occur, the selected dates have to be totally at random with no obvious pattern (i.e. always the same day of the week or the same time of the month).

If the dates are random, you will necessarily get repeats of the same day/week. Picking 20th October and 20th November is just as random as 20th October and 5th November, or 31st October and 1 November.

Can you provide more information:

- What are months - are we talking standard calendar months?
- Do you need adjustment for working days/public holidays/part-timers?
- How do you define same day?
- How do you define same week?
 
Upvote 0
If the dates are random, you will necessarily get repeats of the same day/week. Picking 20th October and 20th November is just as random as 20th October and 5th November, or 31st October and 1 November.

Can you provide more information:

- What are months - are we talking standard calendar months?
- Do you need adjustment for working days/public holidays/part-timers?
- How do you define same day?
- How do you define same week?

Calendar months, only regular work days (excluding holidays). Same day is same weekday. Same week would be the first Tuesday or third Thursday, if that makes sense.
I understand random will result in repeats, but that's what I'm trying to avoid if possible.

Thanks for looking into this!
 
Upvote 0
Suggestion:

A​
B​
C​
1​
Audit Dates
Workdays Apart
2​
Mon 02 Jan 2017​
A2: Input
3​
Wed 08 Mar 2017​
48​
A3: =WORKDAY(A2, MAX(1, NORM.INV(RAND(), 22, 10)))
4​
Thu 30 Mar 2017​
17​
B3: =NETWORKDAYS(A2, A3)
5​
Thu 27 Apr 2017​
21​
6​
Thu 01 Jun 2017​
26​
7​
Mon 17 Jul 2017​
33​
8​
Tue 29 Aug 2017​
32​
9​
Tue 03 Oct 2017​
26​
10​
Wed 11 Oct 2017​
7​
11​
Mon 23 Oct 2017​
9​
12​
Thu 09 Nov 2017​
14​
13​
Fri 24 Nov 2017​
12​
14​
Thu 30 Nov 2017​
5​
15​
Tue 06 Feb 2018​
49​
16​
Fri 09 Feb 2018​
4​
17​
Fri 16 Mar 2018​
26​
18​
Wed 25 Apr 2018​
29​
19​
Fri 18 May 2018​
18​
20​
Wed 27 Jun 2018​
29​
21​
Mon 23 Jul 2018​
19​
22​
Thu 09 Aug 2018​
14​
23​
Wed 19 Sep 2018​
30​
24​
Mon 05 Nov 2018​
34​
25​
Thu 22 Nov 2018​
14​
26​
Tue 01 Jan 2019​
29​
27​
Thu 07 Feb 2019​
28​
28​
Thu 14 Mar 2019​
26​
29​
Thu 16 May 2019​
46​
30​
Thu 30 May 2019​
11​
31​
Mon 24 Jun 2019​
18​
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,897
Members
449,097
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top