ok, so if no value in code column OR no value in the DATE column
=IF(OR(A3="",B3=""),"",IF(COUNTIF($A$3:A3,A3)=COUNTIF($A$3:$A$1000,A3),WORKDAY(MAXIFS($B$3:$B$1000,$A$3:$A$1000,A3),60),""))
you are using
=IF(COUNTIF($B$2:B2,B2)=COUNTIF($B$2:$B$1000,B2),WORKDAY(MAXIFS($Y$2:$Y$1000,$Y$2:$Y$1000,Y2),60),"")
SO the code is in column B and the date is in columnY
so this should work
=IF(OR(B2="",Y2=""),"", IF(COUNTIF($B$2:B2,B2)=COUNTIF($B$2:$B$1000,B2),WORKDAY(MAXIFS($Y$2:$Y$1000,$Y$2:$Y$1000,Y2),60),""))
Book2 |
---|
|
---|
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | | | | | | | | | | | Y | Z |
---|
1 | | code | | | | | | | | | | | | | | | | | | | | | | | date | 60 business days |
---|
2 | | site code 1 | | | | | | | | | | | | | | | | | | | | | | | 1/27/25 | |
---|
3 | | | | | | | | | | | | | | | | | | | | | | | | | | |
---|
4 | | site code 1 | | | | | | | | | | | | | | | | | | | | | | | 11/15/25 | |
---|
5 | | site code 1 | | | | | | | | | | | | | | | | | | | | | | | 3/1/25 | |
---|
6 | | site code 1 | | | | | | | | | | | | | | | | | | | | | | | 4/1/25 | |
---|
7 | | site code 2 | | | | | | | | | | | | | | | | | | | | | | | 3/1/25 | 5/23/25 |
---|
8 | | site code 12 | | | | | | | | | | | | | | | | | | | | | | | 3/25/25 | 6/17/25 |
---|
9 | | Site code 3 | | | | | | | | | | | | | | | | | | | | | | | 11/1/25 | |
---|
10 | | Site code 3 | | | | | | | | | | | | | | | | | | | | | | | 4/25/25 | 1/23/26 |
---|
11 | | site code 4 | | | | | | | | | | | | | | | | | | | | | | | 5/1/25 | |
---|
12 | | site code 4 | | | | | | | | | | | | | | | | | | | | | | | 5/25/25 | 8/15/25 |
---|
13 | | site code 5 | | | | | | | | | | | | | | | | | | | | | | | 3/1/25 | 5/23/25 |
---|
14 | | site code 6 | | | | | | | | | | | | | | | | | | | | | | | 3/15/25 | 6/6/25 |
---|
15 | | site code 7 | | | | | | | | | | | | | | | | | | | | | | | 3/16/25 | 6/6/25 |
---|
16 | | site code 8 | | | | | | | | | | | | | | | | | | | | | | | 3/17/25 | 6/9/25 |
---|
17 | | site code 9 | | | | | | | | | | | | | | | | | | | | | | | 3/18/25 | 6/10/25 |
---|
18 | | site code 10 | | | | | | | | | | | | | | | | | | | | | | | 3/19/25 | 6/11/25 |
---|
19 | | | | | | | | | | | | | | | | | | | | | | | | | | |
---|
20 | | code | | | | | | | | | | | | | | | | | | | | | | | date | 3/23/00 |
---|
21 | | site code 1 | | | | | | | | | | | | | | | | | | | | | | | 1/27/25 | |
---|
22 | | site code 1 | | | | | | | | | | | | | | | | | | | | | | | 11/15/25 | 2/6/26 |
---|
23 | | site code 200 | | | | | | | | | | | | | | | | | | | | | | | 3/1/25 | 5/23/25 |
---|
24 | | site code 201 | | | | | | | | | | | | | | | | | | | | | | | | |
---|
25 | | site code 202 | | | | | | | | | | | | | | | | | | | | | | | | |
---|
26 | | site code 203 | | | | | | | | | | | | | | | | | | | | | | | | |
---|
27 | | site code 204 | | | | | | | | | | | | | | | | | | | | | | | | |
---|
28 | | site code 205 | | | | | | | | | | | | | | | | | | | | | | | | |
---|
29 | | site code 206 | | | | | | | | | | | | | | | | | | | | | | | | |
---|
30 | | site code 207 | | | | | | | | | | | | | | | | | | | | | | | | |
---|
31 | | site code 208 | | | | | | | | | | | | | | | | | | | | | | | | |
---|
32 | | site code 209 | | | | | | | | | | | | | | | | | | | | | | | | |
---|
33 | | site code 210 | | | | | | | | | | | | | | | | | | | | | | | | |
---|
34 | | | | | | | | | | | | | | | | | | | | | | | | | | |
---|
35 | | | | | | | | | | | | | | | | | | | | | | | | | | |
---|
36 | | | | | | | | | | | | | | | | | | | | | | | | | | |
---|
37 | | | | | | | | | | | | | | | | | | | | | | | | | | |
---|
38 | | | | | | | | | | | | | | | | | | | | | | | | | | |
---|
39 | | | | | | | | | | | | | | | | | | | | | | | | | | |
---|
40 | | | | | | | | | | | | | | | | | | | | | | | | | | |
---|
41 | | | | | | | | | | | | | | | | | | | | | | | | | | |
---|
42 | | | | | | | | | | | | | | | | | | | | | | | | | | |
---|
43 | | | | | | | | | | | | | | | | | | | | | | | | | | |
---|
|
---|