I'm truly grateful for all the help I've received here over the past few weeks. I feel like I'm taking advantage of you, but I'm not sure where else to turn! Hopefully I'll start to get this all figured out, soon.
Until then, however, another question...
I'm working with two (2) Random Date formulas. One is setting an opening date, and the second is setting a random closing date. The opening date formula is working perfectly fine. However, the closing date doesn't seem to be using the opening date as the parameter, like I am intending. I'm sure I've just got the formula screwed up. Here are the parameters:
A1 - Number of project dates
D1 - Year of Project(s)
F2 - Quarter Project is supposed to be implemented.
All of the Close dates have to meet three parameters:
Cannot be before the Open date.
Cannot be before 15 March of the same year.
Cannot be after 15 October of the same year.
These are the MOST BASIC parameters. Eventually (or now, if the formula/code is simple enough) I will need it to be a random date anywhere from seven to 180 days after the open date. The problem is, once it starts to move out, it will still have to follow the same basic parameters as listed above, just under the next year... Meaning, If it Open on, say 31 October of 2025, it cannot Close on 02 February 2026. It will have to wait until at least 15 March 2026 to Close.
The CF is just there to highlight the discrepancies I'm looking to fix.
Here is, basically, what I'm working with:
Until then, however, another question...
I'm working with two (2) Random Date formulas. One is setting an opening date, and the second is setting a random closing date. The opening date formula is working perfectly fine. However, the closing date doesn't seem to be using the opening date as the parameter, like I am intending. I'm sure I've just got the formula screwed up. Here are the parameters:
A1 - Number of project dates
D1 - Year of Project(s)
F2 - Quarter Project is supposed to be implemented.
All of the Close dates have to meet three parameters:
Cannot be before the Open date.
Cannot be before 15 March of the same year.
Cannot be after 15 October of the same year.
These are the MOST BASIC parameters. Eventually (or now, if the formula/code is simple enough) I will need it to be a random date anywhere from seven to 180 days after the open date. The problem is, once it starts to move out, it will still have to follow the same basic parameters as listed above, just under the next year... Meaning, If it Open on, say 31 October of 2025, it cannot Close on 02 February 2026. It will have to wait until at least 15 March 2026 to Close.
The CF is just there to highlight the discrepancies I'm looking to fix.
Here is, basically, what I'm working with:
Book3 | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | |||
1 | 11 | 2025 | 2 | |||||||||||||
2 | ||||||||||||||||
3 | 4/8/2025 | 6/25/2025 | ||||||||||||||
4 | 4/16/2025 | 5/26/2025 | ||||||||||||||
5 | 4/21/2025 | 4/30/2025 | ||||||||||||||
6 | 4/22/2025 | 4/18/2025 | ||||||||||||||
7 | 5/5/2025 | 4/19/2025 | ||||||||||||||
8 | 5/20/2025 | 5/11/2025 | ||||||||||||||
9 | 5/25/2025 | 6/18/2025 | ||||||||||||||
10 | 6/10/2025 | 9/2/2025 | ||||||||||||||
11 | 6/15/2025 | 9/26/2025 | ||||||||||||||
12 | 6/22/2025 | 6/27/2025 | ||||||||||||||
13 | 6/30/2025 | 7/4/2025 | ||||||||||||||
14 | ||||||||||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
E3:E13 | E3 | =IFS($N$1=1,SORT(RANDARRAY($A$1,1,DATE(K1,1,1),DATE(K1,3,31),TRUE)), $N$1=2,SORT(RANDARRAY($A$1,1,DATE(K1,4,1),DATE(K1,6,30),TRUE)), $N$1=3,SORT(RANDARRAY($A$1,1,DATE(K1,7,1),DATE(K1,9,30),TRUE)), $N$1=4,SORT(RANDARRAY($A$1,1,DATE(K1,10,1),DATE(K1,12,31),TRUE))) |
M3:M13 | M3 | =IFS($N$1=1,(RANDARRAY($A$1,1,(E3),DATE($K$1,6,15),TRUE)), $N$1=2,(RANDARRAY($A$1,1,(E3),DATE($K$1,10,15),TRUE)), $N$1=3,(RANDARRAY($A$1,1,(E3),DATE($K$1,10,15),TRUE)), $N$1=4,(RANDARRAY($A$1,1,(E3),DATE($K$1,10,15),TRUE))) |
Dynamic array formulas. |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
M:M | Expression | =M3<E3 | text | NO |