How to generate random events (active=1) and (idle=0) in the specified occurrences

Mujubie717

New Member
Joined
Jul 23, 2023
Messages
8
Office Version
  1. 2016
Platform
  1. Windows
Hello Everyone,:)
Good morning/noon/evening,
In related inquiry to my previous thread,
I would like to ask for help with the following questions:
1. How to generate the random events (active and idle) within N (number of minutes), lets say 100 minutes (see my excel file)
2. From that N (number) preferred, the event should follow these requirements, i.e., 40% idle (which means 40 minutes in total) and 60% (which obviously means 60 minutes).
3. Within the 40% of idle events, these must be within a minimum of 5 minutes and maximum of 10 minutes, and in similar fashion for active events (of 60%), within minimum 10 minutes and maximum of 15 minutes

Again, much appreciation for your kindly help and precious efforts,
Thank you
 

Attachments

  • image_2023-07-26_120519594.png
    image_2023-07-26_120519594.png
    66.1 KB · Views: 4

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hello Everyone,:)
Good morning/noon/evening,
In related inquiry to my previous thread,
I would like to ask for help with the following questions:
1. How to generate the random events (active and idle) within N (number of minutes), lets say 100 minutes (see my excel file)
2. From that N (number) preferred, the event should follow these requirements, i.e., 40% idle (which means 40 minutes in total) and 60% (which obviously means 60 minutes).
3. Within the 40% of idle events, these must be within a minimum of 5 minutes and maximum of 10 minutes, and in similar fashion for active events (of 60%), within minimum 10 minutes and maximum of 15 minutes

Again, much appreciation for your kindly help and precious efforts,
Thank you
ASK3.xlsx
ABCDEF
1100The preferred total event of Active [1] and Idle [0] - Setup
2
340The Percentage of Idle time [0] - Setup
460The Percentage of Active time [1] - Setup
510The Maximum Idle time [0] setup in minutes - Setup
65The Minimum Idle time [0] setup in minutes - Setup
715The Maximum Active time [1] setup in minutes - Setup
810The Minimum Active time [1] setup in minutes - Setup
9
1010
1120Active [1]60MATCH
1230Idle [0]40MATCH
1340
1450
1560
1670
1781
1891
19101
20111
21121
22131
23141
24151
25161
26171
27181
28191
29201
30210
31220
32230
33240
34250
35260
36270
37280
38290
39301
40311
41321
42331
43341
44351
45361
46371
47381
48391
49401
50411
51421
52431
53440
54450
55460
56470
57480
58490
59500
60510
61521
62531
63541
64551
65561
66571
67581
68591
69601
70611
71621
72630
73640
74650
75660
76670
77680
78690
79700
80711
81721
82731
83741
84751
85761
86771
87781
88791
89801
90811
91820
92830
93840
94850
95860
96870
97880
98890
99901
100911
101921
102931
103941
104951
105961
106971
107981
108991
1091001
GENERATED EVENTS
Cell Formulas
RangeFormula
B4B4=B1-B3
E11E11=COUNTIF(B10:B109, "1")
F11F11=IF(E11=B4, "MATCH", "UNMATCH")
E12E12=COUNTIF(B10:B109, "0")
F12F12=IF(E12=B3, "MATCH", "UNMATCH")
A11:A109A11=A10+1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E12Cell Value<>$B$3textNO
E11Cell Value<>$B$4textNO
B10:B48Other TypeColor scaleNO
B49:B109Other TypeColor scaleNO
 
Upvote 0

Forum statistics

Threads
1,223,879
Messages
6,175,142
Members
452,615
Latest member
bogeys2birdies

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