Arbitrary creation of 2 dates per week for 2 years

How to write an excel formula that randomly selects 2 dates every week for 2 years, where:

  • 2 dates per week do not match

So this should not be:

05/02/2015
05/02/2015
  1. The first date in any given week is always before the second date of the same week:

So this should not be:

06/02/2015
05/02/2015
  1. Where Sunday is the beginning of the week and Saturday is the end of the week:

Here is an example of what I do after:

week    day     date
1       1       01/01/2015
1       2       03/01/2015
2       1       05/01/2015
2       2       08/01/2015

And so on, right up to the end 2016.

This is what I have so far, but it only randomly gives me the day of the week and does not meet any of the criteria described above:

=CHOOSE(WEEKDAY(ROUND((RAND()*(7-1)+1),0)),"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
+4
source share
1 answer

2 - , , A2 B2 ( 1, 2 ), D2

=IF(B2=1,RANDBETWEEN(1,21),"")

C2

=IF(B2=1,E$1+MATCH(D2,{1,7,12,16,19,21})-8+A2*7,C1+D1-LOOKUP(D1,{1,7,12,16,19,21})+1)

E1 () 1

D,

.

+3

All Articles