Spreadsheet: 823818d1680154855-autofind-min-and-max-based-on-criteria-date-and-month-max-min-with-date-criteria-ans2
Sheet: Sheet1

Date | [NAME] (mg/l) |  |  |  |  |  |  |  |  |  |  | The [NAME] was so manual |  |  |  |  | Resul I want
 | TITIK 0 |  |  |  |  |  |  |  |  |  |  | I want to make it auto detect based on Date per month in Row A
 | AM |  |  | AVR | PM |  |  | AVR |  |  |  | Bulan | [NAME] (mg/L) |  |  |  | Bulan | [NAME] (mg/L)
 | 0.5 | 2 | 4 |  | 0.5 | 2 | 4 |  |  |  |  |  | Min | [NAME] | Avg |  |  | Min | [NAME] | Avg
2023-01-02 00:00:00 | 5.13 | 5.87 | 5.8 |  | 6.53 | 6.42 | 6.38 |  |  |  |  | Januari |  |  |  |  | Januari | 4.64 | 6.89 | 5.811472222222222
2023-01-03 00:00:00 | 4.64 | 5.74 | 5.63 |  |  |  |  |  |  |  |  | Februari |  |  |  |  | Februari | 4.97 | 6.89 | 5.780535714285715
2023-01-04 00:00:00 | 5.11 |  |  |  |  |  |  |  |  |  |  | Maret |  |  |  |  | Maret
2023-01-05 00:00:00 |  | 6.66 | 6.56 |  | 6.29 | 5.77 | 5.73 |  |  |  |  | April |  |  |  |  | April
2023-01-06 00:00:00 | 5.52 | 6.1 | 5.98 |  | 6.14 | 6.18 | 6.24 |  |  |  |  | [NAME] |  |  |  |  | [NAME]
2023-01-07 00:00:00 | 5.7 | 5.18 | 5.15 |  | 5.1 | 5.06 | 4.97 |  |  |  |  | Juni |  |  |  |  | Juni
2023-01-08 00:00:00 |  | 6.57 | 6.28 |  | 6.79 | 6.85 | 6.89 |  |  |  |  | [NAME] |  |  |  |  | [NAME]
2023-01-09 00:00:00 | 4.89 | 6.3 | 6.04 |  | 6.71 | 6.76 | 6.78 |  |  |  |  | Agustus |  |  |  |  | Agustus
2023-01-10 00:00:00 | 5.22 | 5.56 | 5.48 |  | 5.35 | 5.48 | 5.59 |  |  |  |  | September |  |  |  |  | September
2023-01-11 00:00:00 | 4.98 |  |  |  |  |  |  |  |  |  |  | Oktober |  |  |  |  | Oktober
2023-01-12 00:00:00 | 5.13 | 5.02 | 4.99 |  | 5.39 | 5.24 | 5.08 |  |  |  |  | November |  |  |  |  | November
2023-01-13 00:00:00 | 6.11 | 5.15 | 5.08 |  | 5.68 | 5.56 | 5.59 |  |  |  |  | [NAME] |  |  |  |  | [NAME]
2023-01-14 00:00:00 | 6.23
2023-01-15 00:00:00 |  | 5.87 | 5.8 |  | 6.53 | 6.42 | 6.38 |  |  |  |  | I want to make the value [NAME] based on Date in Row A
2023-01-16 00:00:00 | 6.08 | 5.74 | 5.63 |  |  |  |  |  |  |  |  | For Exampel
2023-01-17 00:00:00 | 5.48 |  |  |  |  |  |  |  |  |  |  | max(B:D & F:H;if(A:A>=01/01/2023 & <=31/01/2023)
2023-01-18 00:00:00 | 5.65 | 6.66 | 6.56 |  | 6.29 | 5.77 | 5.73 |  |  |  |  | max(B:D & F:H;if(A:A>=01/02/2023 & <=28/02/2023)
2023-01-19 00:00:00 | 5.49 | 6.1 | 5.98 |  | 6.14 | 6.18 | 6.24
2023-01-20 00:00:00 | 5.46 | 5.18 | 5.15 |  | 5.1 | 5.06 | 4.97
2023-01-21 00:00:00 | 4.99 | 6.57 | 6.28 |  | 6.79 | 6.85 | 6.89
2023-01-22 00:00:00 |  | 6.3 | 6.04 |  | 6.71 | 6.76 | 6.78
2023-01-23 00:00:00 | 5.18 | 5.56 | 5.48 |  | 5.35 | 5.48 | 5.59
2023-01-24 00:00:00 | 5.42
2023-01-25 00:00:00 | 5.36 | 5.02 | 4.99 |  | 5.39 | 5.24 | 5.08
2023-01-26 00:00:00 | 5.31 | 5.15 | 5.08 |  | 5.68 | 5.56 | 5.59
2023-01-27 00:00:00 | 5.31
2023-01-28 00:00:00 | 5.41 | 5.87 | 5.8 |  | 6.53 | 6.42 | 6.38
2023-01-29 00:00:00 |  | 5.74 | 5.63
2023-01-30 00:00:00 | 5.72
2023-01-31 00:00:00 | 6.04 | 6.66 | 6.56 |  | 6.29 | 5.77 | 5.73
2023-02-01 00:00:00 | 5.11 | 6.1 | 5.98 |  | 6.14 | 6.18 | 6.24
2023-02-02 00:00:00 | 5.82 | 5.18 | 5.15 |  | 5.1 | 5.06 | 4.97
2023-02-03 00:00:00 | 5.66 | 6.57 | 6.28 |  | 6.79 | 6.85 | 6.89
2023-02-04 00:00:00 | 5.71 | 6.3 | 6.04 |  | 6.71 | 6.76 | 6.78
2023-02-05 00:00:00 |  | 5.56 | 5.48 |  | 5.35 | 5.48 | 5.59
2023-02-06 00:00:00 | 5.42
2023-02-07 00:00:00 | 5.27 | 5.02 | 4.99 |  | 5.39 | 5.24 | 5.08
2023-02-08 00:00:00 | 5.28 | 5.15 | 5.08 |  | 5.68 | 5.56 | 5.59
2023-02-09 00:00:00 | 5.16
2023-02-10 00:00:00 | 5.81 | 5.87 | 5.8 |  | 6.53 | 6.42 | 6.38
2023-02-11 00:00:00 | 5.18 | 5.74 | 5.63
2023-02-12 00:00:00
2023-02-13 00:00:00 | 5.45 | 6.66 | 6.56 |  | 6.29 | 5.77 | 5.73
2023-02-14 00:00:00 | 5.12 | 6.1 | 5.98 |  | 6.14 | 6.18 | 6.24
2023-02-15 00:00:00 | 5.36 | 5.18 | 5.15 |  | 5.1 | 5.06 | 4.97
2023-02-16 00:00:00 | 5.63 | 6.57 | 6.28 |  | 6.79 | 6.85 | 6.89
2023-02-17 00:00:00 | 6.3 | 6.3 | 6.04 |  | 6.71 | 6.76 | 6.78
2023-02-18 00:00:00 |  | 5.56 | 5.48 |  | 5.35 | 5.48 | 5.59
2023-02-19 00:00:00
2023-02-20 00:00:00 | 6.04 | 5.02 | 4.99 |  | 5.39 | 5.24 | 5.08
2023-02-21 00:00:00 | 5.66 | 5.15 | 5.08 |  | 5.68 | 5.56 | 5.59
2023-02-22 00:00:00 | 5.89
2023-02-23 00:00:00 | 5.26 | 5.87 | 5.8 |  | 6.53 | 6.42 | 6.38
2023-02-24 00:00:00 | 5.21 | 5.74 | 5.63
2023-02-25 00:00:00 | 5.01
2023-02-26 00:00:00 |  | 6.66 | 6.56 |  | 6.29 | 5.77 | 5.73
2023-02-27 00:00:00 | 5.28 | 6.1 | 5.98 |  | 6.14 | 6.18 | 6.24
2023-02-28 00:00:00 | 5.42 | 5.18 | 5.15 |  | 5.1 | 5.06 | 4.97
2023-03-01 00:00:00 | 6.18 | 6.57 | 6.28 |  | 6.79 | 6.85 | 6.89
2023-03-02 00:00:00 | 6.28 | 6.3 | 6.04 |  | 6.71 | 6.76 | 6.78
2023-03-03 00:00:00 | 5.47 | 5.56 | 5.48 |  | 5.35 | 5.48 | 5.59
2023-03-04 00:00:00 | 6.32
2023-03-05 00:00:00 |  | 5.02 | 4.99 |  | 5.39 | 5.24 | 5.08
2023-03-06 00:00:00 | 5.21 | 5.15 | 5.08 |  | 5.68 | 5.56 | 5.59
2023-03-07 00:00:00 | 6.43
2023-03-08 00:00:00 | 6.2 | 5.87 | 5.8 |  | 6.53 | 6.42 | 6.38
2023-03-09 00:00:00 | 6.13 | 5.74 | 5.63
2023-03-10 00:00:00 | 6.23
2023-03-11 00:00:00 | 6.21 | 6.66 | 6.56 |  | 6.29 | 5.77 | 5.73
2023-03-12 00:00:00 |  | 6.1 | 5.98 |  | 6.14 | 6.18 | 6.24
2023-03-13 00:00:00 | 6.73 | 5.18 | 5.15 |  | 5.1 | 5.06 | 4.97
2023-03-14 00:00:00 | 6.18 | 6.57 | 6.28 |  | 6.79 | 6.85 | 6.89
2023-03-15 00:00:00 | 5.23 | 6.3 | 6.04 |  | 6.71 | 6.76 | 6.78
2023-03-16 00:00:00 | 6.48 | 5.56 | 5.48 |  | 5.35 | 5.48 | 5.59
2023-03-17 00:00:00 | 6.51
2023-03-18 00:00:00 | 5.63 | 5.02 | 4.99 |  | 5.39 | 5.24 | 5.08
2023-03-19 00:00:00 |  | 5.15 | 5.08 |  | 5.68 | 5.56 | 5.59
2023-03-20 00:00:00 | 5.37
2023-03-21 00:00:00 | 5.55 | 5.15 | 5.08 |  | 5.68 | 5.56 | 5.59
2023-03-22 00:00:00
2023-03-23 00:00:00 | 6.81 | 6.71 | 6.65 |  | 6.31 | 6.01 | 5.98
2023-03-24 00:00:00 | 6.4 | 6.67 | 6.25 |  | 5.74 | 5.63 | 5.59
2023-03-25 00:00:00 | 6.92 | 6.91 | 6.69 |  | 5.55 | 5.45 | 5.65
2023-03-26 00:00:00
2023-03-27 00:00:00 | 5.91 | 5.83 | 5.79 |  | 5.94 | 5.74 | 5.79
2023-03-28 00:00:00 | 6.13 | 5.88 | 6.3 |  | 6.49 | 6.55 | 6.54
2023-03-29 00:00:00
2023-03-30 00:00:00
2023-03-31 00:00:00
2023-04-01 00:00:00
2023-04-02 00:00:00
2023-04-03 00:00:00
2023-04-04 00:00:00
2023-04-05 00:00:00
2023-04-06 00:00:00
2023-04-07 00:00:00
2023-04-08 00:00:00
2023-04-09 00:00:00
2023-04-10 00:00:00
2023-04-11 00:00:00
2023-04-12 00:00:00
2023-04-13 00:00:00
2023-04-14 00:00:00
2023-04-15 00:00:00
2023-04-16 00:00:00
2023-04-17 00:00:00
2023-04-18 00:00:00
2023-04-19 00:00:00
2023-04-20 00:00:00
2023-04-21 00:00:00
2023-04-22 00:00:00
2023-04-23 00:00:00
2023-04-24 00:00:00
2023-04-25 00:00:00
2023-04-26 00:00:00
2023-04-27 00:00:00
2023-04-28 00:00:00
2023-04-29 00:00:00
2023-04-30 00:00:00
2023-05-01 00:00:00
2023-05-02 00:00:00
2023-05-03 00:00:00
2023-05-04 00:00:00
2023-05-05 00:00:00
2023-05-06 00:00:00
2023-05-07 00:00:00
2023-05-08 00:00:00
2023-05-09 00:00:00
2023-05-10 00:00:00
2023-05-11 00:00:00
2023-05-12 00:00:00
2023-05-13 00:00:00
2023-05-14 00:00:00
2023-05-15 00:00:00
2023-05-16 00:00:00
2023-05-17 00:00:00
2023-05-18 00:00:00
2023-05-19 00:00:00
2023-05-20 00:00:00
2023-05-21 00:00:00
2023-05-22 00:00:00
2023-05-23 00:00:00
2023-05-24 00:00:00
2023-05-25 00:00:00
2023-05-26 00:00:00
2023-05-27 00:00:00
2023-05-28 00:00:00
2023-05-29 00:00:00
2023-05-30 00:00:00
2023-05-31 00:00:00
2023-06-01 00:00:00
2023-06-02 00:00:00
2023-06-03 00:00:00
2023-06-04 00:00:00
2023-06-05 00:00:00
2023-06-06 00:00:00
2023-06-07 00:00:00
2023-06-08 00:00:00
2023-06-09 00:00:00
2023-06-10 00:00:00
2023-06-11 00:00:00
2023-06-12 00:00:00
2023-06-13 00:00:00
2023-06-14 00:00:00
2023-06-15 00:00:00
2023-06-16 00:00:00
2023-06-17 00:00:00
2023-06-18 00:00:00
2023-06-19 00:00:00
2023-06-20 00:00:00
2023-06-21 00:00:00
2023-06-22 00:00:00
2023-06-23 00:00:00
2023-06-24 00:00:00
2023-06-25 00:00:00
2023-06-26 00:00:00
2023-06-27 00:00:00
2023-06-28 00:00:00
2023-06-29 00:00:00
2023-06-30 00:00:00
2023-07-01 00:00:00
2023-07-02 00:00:00
2023-07-03 00:00:00
2023-07-04 00:00:00
2023-07-05 00:00:00
2023-07-06 00:00:00
2023-07-07 00:00:00
2023-07-08 00:00:00
2023-07-09 00:00:00
2023-07-10 00:00:00
2023-07-11 00:00:00
2023-07-12 00:00:00
2023-07-13 00:00:00
2023-07-14 00:00:00
2023-07-15 00:00:00
2023-07-16 00:00:00
2023-07-17 00:00:00
2023-07-18 00:00:00
2023-07-19 00:00:00
2023-07-20 00:00:00
2023-07-21 00:00:00
2023-07-22 00:00:00
2023-07-23 00:00:00
2023-07-24 00:00:00
2023-07-25 00:00:00
2023-07-26 00:00:00
2023-07-27 00:00:00
2023-07-28 00:00:00
2023-07-29 00:00:00
2023-07-30 00:00:00
2023-07-31 00:00:00
2023-08-01 00:00:00
2023-08-02 00:00:00
2023-08-03 00:00:00
2023-08-04 00:00:00
2023-08-05 00:00:00
2023-08-06 00:00:00
2023-08-07 00:00:00
2023-08-08 00:00:00
2023-08-09 00:00:00
2023-08-10 00:00:00
2023-08-11 00:00:00
2023-08-12 00:00:00
2023-08-13 00:00:00
2023-08-14 00:00:00
2023-08-15 00:00:00
2023-08-16 00:00:00
2023-08-17 00:00:00
2023-08-18 00:00:00
2023-08-19 00:00:00
2023-08-20 00:00:00
2023-08-21 00:00:00
2023-08-22 00:00:00
2023-08-23 00:00:00
2023-08-24 00:00:00
2023-08-25 00:00:00
2023-08-26 00:00:00
2023-08-27 00:00:00
2023-08-28 00:00:00
2023-08-29 00:00:00
2023-08-30 00:00:00
2023-08-31 00:00:00
2023-09-01 00:00:00
2023-09-02 00:00:00
2023-09-03 00:00:00
2023-09-04 00:00:00
2023-09-05 00:00:00
2023-09-06 00:00:00
2023-09-07 00:00:00
2023-09-08 00:00:00
2023-09-09 00:00:00
2023-09-10 00:00:00
2023-09-11 00:00:00
2023-09-12 00:00:00
2023-09-13 00:00:00
2023-09-14 00:00:00
2023-09-15 00:00:00
2023-09-16 00:00:00
2023-09-17 00:00:00
2023-09-18 00:00:00
2023-09-19 00:00:00
2023-09-20 00:00:00
2023-09-21 00:00:00
2023-09-22 00:00:00
2023-09-23 00:00:00
2023-09-24 00:00:00
2023-09-25 00:00:00
2023-09-26 00:00:00
2023-09-27 00:00:00
2023-09-28 00:00:00
2023-09-29 00:00:00
2023-09-30 00:00:00
2023-10-01 00:00:00
2023-10-02 00:00:00
2023-10-03 00:00:00
2023-10-04 00:00:00
2023-10-05 00:00:00
2023-10-06 00:00:00
2023-10-07 00:00:00
2023-10-08 00:00:00
2023-10-09 00:00:00
2023-10-10 00:00:00
2023-10-11 00:00:00
2023-10-12 00:00:00
2023-10-13 00:00:00
2023-10-14 00:00:00
2023-10-15 00:00:00
2023-10-16 00:00:00
2023-10-17 00:00:00
2023-10-18 00:00:00
2023-10-19 00:00:00
2023-10-20 00:00:00
2023-10-21 00:00:00
2023-10-22 00:00:00
2023-10-23 00:00:00
2023-10-24 00:00:00
2023-10-25 00:00:00
2023-10-26 00:00:00
2023-10-27 00:00:00
2023-10-28 00:00:00
2023-10-29 00:00:00
2023-10-30 00:00:00
2023-10-31 00:00:00
2023-11-01 00:00:00
2023-11-02 00:00:00
2023-11-03 00:00:00
2023-11-04 00:00:00
2023-11-05 00:00:00
2023-11-06 00:00:00
2023-11-07 00:00:00
2023-11-08 00:00:00
2023-11-09 00:00:00
2023-11-10 00:00:00
2023-11-11 00:00:00
2023-11-12 00:00:00
2023-11-13 00:00:00
2023-11-14 00:00:00
2023-11-15 00:00:00
2023-11-16 00:00:00
2023-11-17 00:00:00
2023-11-18 00:00:00
2023-11-19 00:00:00
2023-11-20 00:00:00
2023-11-21 00:00:00
2023-11-22 00:00:00
2023-11-23 00:00:00
2023-11-24 00:00:00
2023-11-25 00:00:00
2023-11-26 00:00:00
2023-11-27 00:00:00
2023-11-28 00:00:00
2023-11-29 00:00:00
2023-11-30 00:00:00
2023-12-01 00:00:00
2023-12-02 00:00:00
min
[NAME]