Perhaps I am missing a step. The database contains data from 1/1/2018 through 12/31/2029. In cell D8, I am trying to match a date from (column A) with a calculated maximum value, (cell C8). The current formula returns the incorrect date of 10/17/2022 and the matched value for that date is not 0.022. Should I be using a different formula?
Cell Formulas | ||
---|---|---|
Range | Formula | |
B5 | B5 | =G4 |
B6 | B6 | =G3 |
D8 | D8 | =INDEX(A14:A1048576,MATCH(C8,B14:B1048576)) |
C7 | C7 | =IF(G3=1,SUMIFS(B12:B1048576,A12:A1048576,">="&G4,A12:A1048576,"<="&EOMONTH(G4,0)),IF(G3=2,SUMIFS(C12:C1048576,A12:A1048576,">="&G4,A12:A1048576,"<="&EOMONTH(G4,0)),IF(G3=6,SUMIFS(D12:D1048576,A12:A1048576,">="&G4,A12:A1048576,"<="&EOMONTH(G4,0)),IF(G3=7,SUMIFS(E12:E1048576,A12:A1048576,">="&G4,A12:A1048576,"<="&EOMONTH(G4,0)),IF(G3=8,SUMIFS(F12:F1048576,A12:A1048576,">="&G4,A12:A1048576,"<="&EOMONTH(G4,0)),IF(G3=9,SUMIFS(G12:G1048576,A12:A1048576,">="&G4,A12:A1048576,"<="&EOMONTH(G4,0)),"")))))) |
C8 | C8 | =IF(G3=1,MAXIFS(B12:B1048576,A12:A1048576,">="&G4,A12:A1048576,"<="&EOMONTH(G4,0)),IF(G3=2,MAXIFS(C12:C1048576,A12:A1048576,">="&G4,A12:A1048576,"<="&EOMONTH(G4,0)),IF(G3=6,MAXIFS(D12:D1048576,A12:A1048576,">="&G4,A12:A1048576,"<="&EOMONTH(G4,0)),IF(G3=7,MAXIFS(E12:E1048576,A12:A1048576,">="&G4,A12:A1048576,"<="&EOMONTH(G4,0)),IF(G3=8,MAXIFS(F12:F1048576,A12:A1048576,">="&G4,A12:A1048576,"<="&EOMONTH(G4,0)),IF(G3=9,MAXIFS(G12:G1048576,A12:A1048576,">="&G4,A12:A1048576,"<="&EOMONTH(G4,0)),"")))))) |
C9 | C9 | =IF(G3=1,AVERAGEIFS(B12:B1048576,A12:A1048576,">="&G4,A12:A1048576,"<="&EOMONTH(G4,0)),IF(G3=2,AVERAGEIFS(C12:C1048576,A12:A1048576,">="&G4,A12:A1048576,"<="&EOMONTH(G4,0)),IF(G3=6,AVERAGEIFS(D12:D1048576,A12:A1048576,">="&G4,A12:A1048576,"<="&EOMONTH(G4,0)),IF(G3=7,AVERAGEIFS(E12:E1048576,A12:A1048576,">="&G4,A12:A1048576,"<="&EOMONTH(G4,0)),IF(G3=8,AVERAGEIFS(F12:F1048576,A12:A1048576,">="&G4,A12:A1048576,"<="&EOMONTH(G4,0)),IF(G3=9,AVERAGEIFS(G12:G1048576,A12:A1048576,">="&G4,A12:A1048576,"<="&EOMONTH(G4,0)),"")))))) |
G7 | G7 | =SUMIFS(H12:H1048576,A12:A1048576,">="&G4,A12:A1048576,"<="&EOMONTH(G4,0)) |
G8 | G8 | =MAXIFS(H12:H1048576,A12:A1048576,">="&G4,A12:A1048576,"<="&EOMONTH(G4,0)) |
G9 | G9 | =AVERAGEIFS(H12:H1048576,A12:A1048576,">="&G4,A12:A1048576,"<="&EOMONTH(G4,0)) |
B14:B72 | B14 | ='G:\MUA Server Documents\WATER OPERATIONS\ARCHIVE\2018\[2018.xlsm]WELL # 1'!$F4 |
C14:C72 | C14 | ='G:\MUA Server Documents\WATER OPERATIONS\ARCHIVE\2018\[2018.xlsm]WELL # 2'!$F4 |
D14:D72 | D14 | ='G:\MUA Server Documents\WATER OPERATIONS\ARCHIVE\2018\[2018.xlsm]WELL # 6'!$F4 |
E14:E72 | E14 | ='G:\MUA Server Documents\WATER OPERATIONS\ARCHIVE\2018\[2018.xlsm]WELL # 7'!$F4 |
F14:F72 | F14 | ='G:\MUA Server Documents\WATER OPERATIONS\ARCHIVE\2018\[2018.xlsm]WELL # 8'!$F4 |
G14:G72 | G14 | ='G:\MUA Server Documents\WATER OPERATIONS\ARCHIVE\2018\[2018.xlsm]WELL # 9'!$F4 |
H14:H72 | H14 | =SUM(B14:G14) |