Date of Max Value in Date Range

wobble12

Board Regular
Joined
Nov 12, 2002
Messages
78
Office Version
  1. 365
I have a Table with over 7000 rows of flow data (daily totals), and four columns.

Columns are:
Date
Flow from River
Flow to River
Bio In

I have used maxif to find the max value for a given date range (either quarterly or yearly), but I would like to return the date that the max value occurred.

I need a formula for the date for "Flow to River" max in a given date range please.

Does anyone have a formula to acheive this please?

All data is in date order.
 
In that case can you simply copy/paste some of your data?
 
Upvote 0

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Oh, that works quite well! A selection of the data in question (I have over 7000 rows). So for Q2 2022 as an eg, I need a formula to find the date of the max value for each flow columns. And a formula for the full year for each flow column.
I have maxifs fourmulas to find the actual values, its just I need the dates that they occurred I need.

So Flow to River is 731.5, but I need the date 24/06/22
For Flow from River it is 458.3, so I would need to return the date 08/04/22.
DateFlow from River (m3)Flow to River (m3)
18/03/2022183.30525.00
19/03/2022251.50570.30
20/03/2022214.20524.00
21/03/2022177.80501.90
22/03/2022100.80483.40
23/03/2022109.60464.60
24/03/202281.30444.70
25/03/202231.40430.80
26/03/2022107.10498.90
27/03/2022176.80526.80
28/03/202289.20520.70
29/03/202253.00536.10
30/03/20220.00555.00
31/03/20220.00544.10
01/04/202253.90444.40
02/04/202299.90403.10
03/04/2022148.00374.20
04/04/202290.30376.70
05/04/2022233.10427.10
06/04/2022404.60637.80
07/04/2022453.80667.30
08/04/2022458.30656.80
09/04/2022378.70598.70
10/04/2022117.10341.30
11/04/2022141.60346.80
12/04/202293.90417.60
13/04/2022109.30417.50
14/04/2022124.10404.60
15/04/2022103.90455.00
16/04/2022178.80452.30
17/04/2022154.40480.70
18/04/2022261.00518.20
19/04/2022301.00573.30
20/04/2022202.80470.20
21/04/2022131.00442.90
22/04/202299.40433.80
23/04/2022136.90489.10
24/04/202294.70418.70
25/04/2022286.00497.90
26/04/2022195.20546.60
27/04/2022234.10501.70
28/04/2022227.30569.20
29/04/2022450.70269.10
30/04/2022142.40421.20
01/05/2022160.10479.80
02/05/2022156.10447.80
03/05/2022135.50542.90
04/05/202227.10653.30
05/05/20220.10239.20
06/05/2022106.60657.50
07/05/2022124.30602.80
08/05/2022228.10614.90
09/05/2022220.60606.30
10/05/2022146.20445.70
11/05/2022217.70467.80
12/05/2022123.40445.00
13/05/2022160.90467.20
14/05/2022101.60428.90
15/05/2022227.50496.40
16/05/2022169.00597.50
17/05/2022281.40571.40
18/05/2022253.80549.30
19/05/2022121.20593.50
20/05/2022135.00464.60
21/05/2022230.60463.20
22/05/2022151.30417.50
23/05/2022142.70549.10
24/05/2022168.00511.00
25/05/2022246.40523.70
26/05/2022262.70622.70
27/05/2022154.00506.70
28/05/2022123.30519.70
29/05/2022179.90513.10
30/05/2022157.40464.80
31/05/202273.40504.80
01/06/202272.80494.90
02/06/2022186.10462.40
03/06/202249.90514.20
04/06/20220.00559.80
05/06/202229.30611.00
06/06/202226.80605.60
07/06/2022123.80604.00
08/06/202297.50593.30
09/06/202260.30524.70
10/06/202273.20521.50
11/06/2022110.60502.40
12/06/2022171.10538.40
13/06/2022240.10529.90
14/06/2022290.40528.80
15/06/2022228.50489.00
16/06/2022256.70486.40
17/06/2022145.90501.10
18/06/2022100.70552.10
19/06/2022232.50560.70
20/06/2022192.60529.70
21/06/2022167.90526.10
22/06/2022205.20537.50
23/06/202264.90600.40
24/06/20220.00731.50
25/06/20220.10617.60
26/06/202213.60679.00
27/06/20220.00681.70
28/06/20220.10682.90
29/06/2022175.00652.80
30/06/202284.50600.50
01/07/202252.20610.50
 
Upvote 0
Thanks for that.
The formulae you posted work for me
Fluff.xlsm
ABCDEFGH
1DateFlow from River (m3)Flow to River (m3)
218/03/2022183.3525202219/03/202219/03/2022
319/03/2022251.5570.308/04/202224/06/2022
420/03/2022214.2524
521/03/2022177.8501.9
622/03/2022100.8483.4
723/03/2022109.6464.6
824/03/202281.3444.7
925/03/202231.4430.8
1026/03/2022107.1498.9
1127/03/2022176.8526.8
1228/03/202289.2520.7
1329/03/202253536.1
1430/03/20220555
1531/03/20220544.1
1601/04/202253.9444.4
1702/04/202299.9403.1
1803/04/2022148374.2
1904/04/202290.3376.7
2005/04/2022233.1427.1
2106/04/2022404.6637.8
2207/04/2022453.8667.3
2308/04/2022458.3656.8
2409/04/2022378.7598.7
2510/04/2022117.1341.3
2611/04/2022141.6346.8
2712/04/202293.9417.6
2813/04/2022109.3417.5
2914/04/2022124.1404.6
3015/04/2022103.9455
3116/04/2022178.8452.3
3217/04/2022154.4480.7
3318/04/2022261518.2
3419/04/2022301573.3
3520/04/2022202.8470.2
3621/04/2022131442.9
3722/04/202299.4433.8
3823/04/2022136.9489.1
3924/04/202294.7418.7
4025/04/2022286497.9
4126/04/2022195.2546.6
4227/04/2022234.1501.7
4328/04/2022227.3569.2
4429/04/2022450.7269.1
4530/04/2022142.4421.2
4601/05/2022160.1479.8
4702/05/2022156.1447.8
4803/05/2022135.5542.9
4904/05/202227.1653.3
5005/05/20220.1239.2
5106/05/2022106.6657.5
5207/05/2022124.3602.8
5308/05/2022228.1614.9
5409/05/2022220.6606.3
5510/05/2022146.2445.7
5611/05/2022217.7467.8
5712/05/2022123.4445
5813/05/2022160.9467.2
5914/05/2022101.6428.9
6015/05/2022227.5496.4
6116/05/2022169597.5
6217/05/2022281.4571.4
6318/05/2022253.8549.3
6419/05/2022121.2593.5
6520/05/2022135464.6
6621/05/2022230.6463.2
6722/05/2022151.3417.5
6823/05/2022142.7549.1
6924/05/2022168511
7025/05/2022246.4523.7
7126/05/2022262.7622.7
7227/05/2022154506.7
7328/05/2022123.3519.7
7429/05/2022179.9513.1
7530/05/2022157.4464.8
7631/05/202273.4504.8
7701/06/202272.8494.9
7802/06/2022186.1462.4
7903/06/202249.9514.2
8004/06/20220559.8
8105/06/202229.3611
8206/06/202226.8605.6
8307/06/2022123.8604
8408/06/202297.5593.3
8509/06/202260.3524.7
8610/06/202273.2521.5
8711/06/2022110.6502.4
8812/06/2022171.1538.4
8913/06/2022240.1529.9
9014/06/2022290.4528.8
9115/06/2022228.5489
9216/06/2022256.7486.4
9317/06/2022145.9501.1
9418/06/2022100.7552.1
9519/06/2022232.5560.7
9620/06/2022192.6529.7
9721/06/2022167.9526.1
9822/06/2022205.2537.5
9923/06/202264.9600.4
10024/06/20220731.5
10125/06/20220.1617.6
10226/06/202213.6679
10327/06/20220681.7
10428/06/20220.1682.9
10529/06/2022175652.8
10630/06/202284.5600.5
10701/07/202252.2610.5
Data
Cell Formulas
RangeFormula
G2G2=FILTER(TableFlow[Date],TableFlow[Flow from River (m3)]=MAX(FILTER(TableFlow[Flow from River (m3)],(TableFlow[Date]>DATE($F$2,1,1))*(TableFlow[Date]<DATE($F$2,4,1)),"")),"")
H2H2=FILTER(TableFlow[Date],TableFlow[Flow to River (m3)]=MAX(FILTER(TableFlow[Flow to River (m3)],(TableFlow[Date]>DATE($F$2,1,1))*(TableFlow[Date]<DATE($F$2,4,1)),"")),"")
G3G3=FILTER(TableFlow[Date],TableFlow[Flow from River (m3)]=MAX(FILTER(TableFlow[Flow from River (m3)],(TableFlow[Date]>DATE($F$2,4,1))*(TableFlow[Date]<DATE($F$2,8,1)),"")),"")
H3H3=FILTER(TableFlow[Date],TableFlow[Flow to River (m3)]=MAX(FILTER(TableFlow[Flow to River (m3)],(TableFlow[Date]>DATE($F$2,4,1))*(TableFlow[Date]<DATE($F$2,8,1)),"")),"")
 
Upvote 0
Thank you for that. This continues to be throwing up strange results!
If I expand the sample data, it may better serve to show the anomolies:
First table shows the dates that the max values should occur, and the formulas you provided, with just the dates adjusted for each quarter.
DateFlow from River (m3)Flow to River (m3)
2021​
Q1
23/01/2021​
08/01/2021​
Q2
08/04/2021​
#SPILL!​
Q3
08/07/2021​
20/07/2021​
Q4
02/12/2021​
#SPILL!​
2022​
Q1
05/02/2022​
#SPILL!​
Q2
08/04/2022​
10/09/2020​
25/03/2021​
24/06/2022​
This is from this data:

DateFlow from River (m3)Flow to River (m3)
12/06/202068.40462.50
13/06/202053.30508.80
14/06/20202.40389.10
15/06/202051.40448.20
16/06/202074.50467.80
17/06/2020171.20471.10
18/06/202052.70444.70
19/06/2020124.20454.70
20/06/202018.30391.00
21/06/20200.50437.90
22/06/202063.60470.60
23/06/2020140.00510.20
24/06/202089.00461.40
25/06/20200.10388.40
26/06/20200.10460.60
27/06/20200.10444.80
28/06/20200.10433.10
29/06/20200.20446.60
30/06/202019.00429.80
01/07/2020137.80539.00
02/07/202017.40756.30
03/07/202021.10791.10
04/07/20200.10787.60
05/07/20200.10755.00
06/07/202071.20506.80
07/07/20200.100.20
08/07/2020145.90625.80
09/07/2020110.10698.80
10/07/2020358.50710.40
11/07/2020290.00314.80
12/07/2020126.40176.80
13/07/2020140.00447.40
14/07/2020163.70495.40
15/07/2020184.50441.10
16/07/2020104.60492.00
17/07/20200.10415.40
18/07/202029.00455.10
19/07/202068.30422.70
20/07/202094.80446.50
21/07/202076.20418.10
22/07/202048.20409.40
23/07/202040.30398.30
24/07/202044.50431.20
25/07/2020474.70241.70
26/07/202083.00392.60
27/07/2020154.40431.30
28/07/2020337.40377.70
29/07/2020548.90378.80
30/07/202084.70415.70
31/07/20200.00128.60
01/08/20200.000.20
02/08/20204.200.50
03/08/20206.901.30
04/08/20206.802.50
05/08/20207.700.20
06/08/20207.000.20
07/08/20201.400.30
08/08/20200.000.30
09/08/20200.000.30
10/08/20200.000.30
11/08/20200.000.30
12/08/20200.200.80
13/08/20200.300.20
14/08/20201.500.20
15/08/20200.800.20
16/08/20200.600.30
17/08/2020152.700.30
18/08/202093.500.30
19/08/2020519.30220.40
20/08/202075.10483.40
21/08/2020281.60624.90
22/08/2020292.20691.40
23/08/2020186.80671.60
24/08/2020180.20697.60
25/08/20200.00661.70
26/08/20200.00620.40
27/08/20200.00681.10
28/08/20200.00677.70
29/08/20200.00715.40
30/08/20200.00744.50
31/08/202059.50703.80
01/09/2020268.90584.90
02/09/2020303.30562.80
03/09/202042.90657.20
04/09/2020409.90701.70
05/09/2020521.70749.60
06/09/2020382.50788.00
07/09/2020116.00787.90
08/09/2020154.50775.20
09/09/202091.80726.30
10/09/2020146.70731.50
11/09/2020346.60727.20
12/09/2020243.50666.10
13/09/2020121.40591.10
14/09/2020240.40631.50
15/09/2020162.40162.40
16/09/2020245.70626.60
17/09/2020205.30552.20
18/09/2020204.60516.80
19/09/2020320.70646.50
20/09/2020300.00650.00
21/09/2020267.50675.30
22/09/2020165.50607.50
23/09/2020105.50726.60
24/09/2020185.40733.40
25/09/202027.10873.40
26/09/2020164.30747.70
27/09/2020159.10682.70
28/09/2020145.90698.40
29/09/2020128.30651.50
30/09/2020331.70380.30
01/10/2020282.10579.60
02/10/2020381.50705.80
03/10/2020207.20779.90
04/10/2020202.30786.10
05/10/2020165.60724.20
06/10/2020229.60559.00
07/10/2020253.20617.30
08/10/202070.50701.00
09/10/20200.00698.70
10/10/202062.40686.90
11/10/2020270.00702.70
12/10/202054.90726.70
13/10/202062.20756.90
14/10/2020218.40706.10
15/10/2020313.60708.70
16/10/2020274.00684.00
17/10/2020294.90671.50
18/10/2020376.00684.60
19/10/2020314.00661.50
20/10/2020303.30687.50
21/10/2020389.80672.30
22/10/2020356.40668.10
23/10/2020394.50714.40
24/10/2020158.00754.20
25/10/2020151.70710.70
26/10/2020153.90702.60
27/10/2020305.40720.40
28/10/2020227.20685.70
29/10/2020163.60687.20
30/10/2020296.20699.10
31/10/2020190.50761.40
01/11/2020224.70693.00
02/11/2020188.80661.00
03/11/2020338.70716.40
04/11/2020363.60718.60
05/11/2020389.20711.30
06/11/2020393.40700.30
07/11/2020419.80717.70
08/11/2020359.00665.30
09/11/2020379.50728.60
10/11/2020363.60703.40
11/11/2020357.00725.70
12/11/2020341.40751.00
13/11/2020336.30720.60
14/11/2020366.00735.10
15/11/2020207.20704.20
16/11/2020311.10731.20
17/11/2020303.90738.80
18/11/2020288.00728.80
19/11/2020200.00730.00
20/11/2020165.20738.10
21/11/2020197.50729.00
22/11/202043.30728.40
23/11/20200.00779.20
24/11/202075.20821.50
25/11/2020207.30747.50
26/11/2020212.20678.50
27/11/2020279.40717.00
28/11/2020288.00728.10
29/11/2020284.00711.20
30/11/2020282.30699.70
01/12/2020293.00695.10
02/12/2020317.20684.90
03/12/2020195.40751.70
04/12/202077.50803.60
05/12/2020185.00773.10
06/12/2020152.90766.50
07/12/2020313.70678.90
08/12/2020266.90717.30
09/12/2020290.60743.60
10/12/2020230.50719.90
11/12/2020118.70732.00
12/12/2020209.00749.60
13/12/2020181.00807.50
14/12/2020201.10745.80
15/12/2020140.50676.70
16/12/2020180.20706.10
17/12/2020294.70692.50
18/12/2020187.10685.40
19/12/2020246.30667.40
20/12/2020233.60638.80
21/12/2020272.60717.60
22/12/202025.60170.20
23/12/20200.000.20
24/12/20200.000.20
25/12/20200.000.20
26/12/20200.000.20
27/12/20200.000.20
28/12/20200.000.20
29/12/20200.000.20
30/12/20200.000.20
31/12/20200.000.20
01/01/202197.900.10
02/01/2021157.900.10
03/01/202119.70443.10
04/01/202141.70798.00
05/01/2021182.90821.50
06/01/2021142.90876.40
07/01/2021196.30858.80
08/01/2021382.30911.50
09/01/2021163.10622.20
10/01/202167.20612.10
11/01/2021232.60728.30
12/01/2021208.00756.60
13/01/202126.10869.90
14/01/2021225.20682.60
15/01/2021106.60593.70
16/01/2021438.60720.90
17/01/2021218.10744.00
18/01/202122.70838.90
19/01/2021402.10842.60
20/01/2021571.70828.90
21/01/2021300.70842.80
22/01/2021678.30376.00
23/01/2021752.20192.70
24/01/2021272.20569.10
25/01/2021315.70636.40
26/01/2021436.20734.60
27/01/2021140.10851.30
28/01/2021139.60818.30
29/01/2021241.10720.90
30/01/2021257.90668.60
31/01/2021142.40624.00
01/02/2021109.90803.60
02/02/202167.30748.50
03/02/202170.80646.10
04/02/2021142.30693.80
05/02/202171.00746.20
06/02/2021130.10776.80
07/02/2021134.70758.00
08/02/202123.90762.60
09/02/202192.30738.50
10/02/202118.70697.90
11/02/20210.00636.20
12/02/202157.20564.20
13/02/202193.20512.20
14/02/202194.40621.40
15/02/2021208.00740.20
16/02/2021216.40656.30
17/02/2021257.60687.30
18/02/2021271.70685.70
19/02/2021286.40691.80
20/02/2021271.30727.10
21/02/2021324.20705.80
22/02/2021165.80617.80
23/02/2021234.10579.00
24/02/2021195.50582.80
25/02/2021201.50529.60
26/02/2021220.10573.90
27/02/2021353.90706.60
28/02/2021358.80722.50
01/03/2021330.10688.70
02/03/2021315.10619.90
03/03/2021252.20601.40
04/03/2021277.30577.70
05/03/2021272.30575.60
06/03/2021298.90614.60
07/03/2021217.00611.50
08/03/2021240.10558.20
09/03/202179.30705.60
10/03/2021254.10254.10
11/03/2021186.50847.60
12/03/2021189.50705.60
13/03/2021244.00674.80
14/03/2021313.90687.70
15/03/2021291.80641.50
16/03/2021156.50510.30
17/03/2021133.00499.20
18/03/2021119.00532.30
19/03/202199.00468.20
20/03/2021150.20524.60
21/03/2021150.60546.80
22/03/2021198.00504.40
23/03/2021412.60300.30
24/03/2021285.70489.40
25/03/2021115.30731.50
26/03/202196.40590.20
27/03/2021142.20569.10
28/03/2021105.10571.90
29/03/20210.60588.80
30/03/2021141.60653.40
31/03/202162.90561.50
01/04/2021107.40552.90
02/04/2021287.40593.40
03/04/2021474.50587.80
04/04/2021252.10593.90
05/04/2021247.20578.60
06/04/2021255.50600.70
07/04/2021467.20236.20
08/04/2021727.40430.30
09/04/2021178.90546.60
10/04/2021186.70544.60
11/04/202198.30598.60
12/04/2021286.10346.10
13/04/2021191.60460.50
14/04/2021214.90501.10
15/04/2021283.60514.60
16/04/2021293.70559.70
17/04/2021256.50568.80
18/04/2021273.60560.80
19/04/2021298.30578.60
20/04/2021170.10587.30
21/04/2021181.70587.40
22/04/2021196.40675.60
23/04/202198.10614.90
24/04/2021102.20580.10
25/04/2021149.30597.50
26/04/202189.00622.80
27/04/202185.60549.80
28/04/2021166.40541.80
29/04/2021100.10514.00
30/04/2021337.90390.20
01/05/2021203.80575.20
02/05/2021111.10655.40
03/05/2021148.80589.20
04/05/2021261.70571.70
05/05/2021219.50557.50
06/05/2021332.30545.40
07/05/2021123.80645.30
08/05/2021252.90578.60
09/05/2021310.20603.60
10/05/2021217.10576.50
11/05/2021191.50602.60
12/05/2021218.90598.00
13/05/2021179.80589.10
14/05/2021243.70625.50
15/05/2021170.00593.90
16/05/202187.40562.40
17/05/20214.70621.10
18/05/20214.70621.10
19/05/20210.90611.40
20/05/20210.90557.50
21/05/202127.10666.00
22/05/2021100.80659.00
23/05/2021161.30673.60
24/05/202129.60618.00
25/05/202122.90644.80
26/05/202189.00677.40
27/05/2021141.20553.60
28/05/2021109.70517.40
29/05/2021106.60530.60
30/05/2021190.00528.20
31/05/2021158.90542.40
01/06/2021304.10692.20
02/06/2021263.10525.80
03/06/2021354.20637.30
04/06/2021215.90533.50
05/06/2021285.20556.20
06/06/2021228.80559.50
07/06/2021319.20597.40
08/06/2021210.70547.70
09/06/2021188.30503.50
10/06/2021161.60483.70
11/06/2021128.60501.60
12/06/2021147.30499.30
13/06/2021161.80432.10
14/06/2021239.60551.80
15/06/2021297.90589.40
16/06/2021302.60531.00
17/06/2021210.20643.00
18/06/2021116.20571.40
19/06/2021186.00522.10
20/06/2021234.70535.00
21/06/2021219.20551.50
22/06/2021305.20456.50
23/06/2021231.50640.20
24/06/202169.50648.80
25/06/202183.00690.20
26/06/202199.80682.90
27/06/202162.90678.50
28/06/202183.10561.50
29/06/2021176.40610.60
30/06/2021291.40621.30
01/07/2021259.00656.50
02/07/2021333.10669.90
03/07/2021259.60653.10
04/07/2021240.90464.40
05/07/2021154.10614.70
06/07/2021124.40720.00
07/07/2021137.70693.30
08/07/2021537.50627.00
09/07/2021214.80627.00
10/07/2021196.20678.40
11/07/202185.40612.30
12/07/202179.50696.40
13/07/202150.90587.20
14/07/202144.40588.20
15/07/2021170.40533.60
16/07/2021154.20607.60
17/07/202131.00550.00
18/07/202190.90353.40
19/07/20210.000.00
20/07/2021408.301453.00
21/07/2021109.70588.70
22/07/202148.90555.30
23/07/2021224.00538.20
24/07/2021184.00484.10
25/07/2021176.90471.40
26/07/2021364.20578.70
27/07/2021377.60594.90
28/07/2021210.60654.20
29/07/2021274.10633.30
30/07/2021309.20652.70
31/07/2021215.00452.10
01/08/202147.5095.70
02/08/20210.000.60
03/08/20210.105.60
04/08/20210.006.80
05/08/2021100.5015.60
06/08/20210.1015.60
07/08/20210.803.90
08/08/20211.0012.50
09/08/20212.9014.40
10/08/202135.1023.90
11/08/20212.0039.30
12/08/2021331.5048.50
13/08/20211.2058.30
14/08/20211.6053.50
15/08/20211.4038.50
16/08/2021186.2060.40
17/08/20210.0056.30
18/08/202177.80258.10
19/08/202171.80326.20
20/08/202192.00417.90
21/08/2021191.60447.40
22/08/202181.20512.50
23/08/2021204.20595.30
24/08/2021287.90381.50
25/08/2021193.10691.70
26/08/2021170.00720.60
27/08/2021215.60699.90
28/08/2021160.60568.40
29/08/2021197.50615.80
30/08/2021287.80667.60
31/08/2021307.30696.00
01/09/2021419.10472.30
02/09/2021237.00634.80
03/09/2021237.90680.80
04/09/2021405.20429.90
05/09/2021300.60652.80
06/09/2021294.00680.40
07/09/2021327.70701.20
08/09/2021317.30630.10
09/09/2021193.60677.10
10/09/2021265.50435.00
11/09/2021139.60546.10
12/09/2021144.90541.50
13/09/2021313.30428.70
14/09/2021128.80496.40
15/09/2021250.10638.70
16/09/2021249.20618.00
17/09/2021334.00629.50
18/09/2021262.60606.70
19/09/2021250.50602.30
20/09/2021228.10568.90
21/09/2021145.30507.10
22/09/2021257.30598.60
23/09/2021134.80545.50
24/09/202169.50648.80
25/09/2021142.20472.70
26/09/2021203.00357.90
27/09/2021313.50324.60
28/09/202162.00564.30
29/09/2021299.30723.00
30/09/2021132.60638.00
01/10/202161.20537.20
02/10/2021179.90634.10
03/10/2021235.90585.90
04/10/2021190.80536.20
05/10/202129.70689.00
06/10/202135.00731.20
07/10/20210.10678.20
08/10/202117.10661.90
09/10/202159.60643.60
10/10/202136.70609.00
11/10/2021212.80556.10
12/10/2021231.40539.00
13/10/2021271.30569.50
14/10/2021234.80552.80
15/10/2021143.70520.40
16/10/2021154.60505.00
17/10/2021145.10499.40
18/10/2021137.80552.60
19/10/202159.00700.30
20/10/202134.70608.60
21/10/2021180.00631.30
22/10/2021206.70569.30
23/10/2021266.40627.50
24/10/2021207.70607.40
25/10/2021200.80590.50
26/10/202196.10544.90
27/10/202196.60538.80
28/10/2021118.90557.80
29/10/202190.80530.90
30/10/202124.10603.40
31/10/202110.90711.10
01/11/202178.30611.80
02/11/202110.50697.60
03/11/202138.70724.70
04/11/202167.20722.30
05/11/2021104.70409.80
06/11/2021208.80548.60
07/11/2021229.80531.40
08/11/2021156.30553.70
09/11/2021129.10548.30
10/11/2021145.30536.90
11/11/2021196.20512.80
12/11/2021163.70534.60
13/11/2021179.40548.80
14/11/2021127.50505.80
15/11/2021219.60567.20
16/11/2021244.50606.70
17/11/2021163.00641.60
18/11/202180.00610.70
19/11/2021145.20587.40
20/11/2021205.20564.20
21/11/2021202.50595.20
22/11/2021267.10619.00
23/11/2021216.60610.10
24/11/2021275.20613.00
25/11/2021222.90630.20
26/11/2021216.90677.60
27/11/202161.20718.30
28/11/2021174.90692.20
29/11/2021205.60558.20
30/11/2021103.10598.70
01/12/202124.60640.00
02/12/2021389.90432.10
03/12/202199.20619.70
04/12/202137.60562.00
05/12/202112.80673.60
06/12/202120.60622.40
07/12/202165.90674.90
08/12/2021125.70661.90
09/12/202155.90721.40
10/12/202141.30671.80
11/12/202116.30697.10
12/12/202154.60659.10
13/12/202112.60671.60
14/12/202177.40659.50
15/12/2021100.50600.50
16/12/2021168.20587.30
17/12/2021306.60656.00
18/12/2021348.70512.80
19/12/2021323.70523.70
20/12/2021213.90491.20
21/12/2021198.90429.00
22/12/202177.50241.70
23/12/20211.7021.70
24/12/20210.700.00
25/12/20210.000.00
26/12/20210.000.00
27/12/20210.000.00
28/12/20210.000.00
29/12/20210.000.00
30/12/20210.000.00
31/12/20210.000.00
01/01/20220.000.00
02/01/20220.000.00
03/01/20221.000.10
04/01/2022186.300.00
05/01/2022136.800.10
06/01/202256.60367.50
07/01/2022136.10596.40
08/01/202238.40617.70
09/01/202282.40533.90
10/01/20220.00565.70
11/01/202275.70508.90
12/01/2022165.30400.50
13/01/202245.90411.60
14/01/20221.30508.00
15/01/2022131.40487.90
16/01/2022112.70437.60
17/01/202232.90191.30
18/01/2022101.60436.40
19/01/2022121.80403.10
20/01/2022151.10413.50
21/01/202280.00434.50
22/01/202292.80476.10
23/01/2022122.90417.20
24/01/20220.00416.20
25/01/2022155.10478.90
26/01/2022340.90555.20
27/01/2022298.90577.50
28/01/2022200.90578.60
29/01/2022176.10522.70
30/01/2022241.60589.90
31/01/2022270.20529.10
01/02/2022169.60536.50
02/02/2022269.80572.20
03/02/2022287.80576.00
04/02/2022333.40305.00
05/02/2022353.80523.60
06/02/2022178.10586.50
07/02/2022171.80555.40
08/02/202212.70618.70
09/02/20220.00570.10
10/02/202293.20486.30
11/02/202289.00442.60
12/02/202259.60462.90
13/02/202266.80438.30
14/02/2022117.10503.10
15/02/2022247.30571.40
16/02/2022135.10540.80
17/02/2022210.30529.30
18/02/202289.50697.50
19/02/202268.60518.90
20/02/20220.10580.80
21/02/20220.00631.70
22/02/202291.60605.30
23/02/20228.60627.40
24/02/20220.10697.60
25/02/20220.00693.60
26/02/2022142.00605.20
27/02/2022289.30575.60
28/02/2022184.40605.00
01/03/2022271.50597.90
02/03/2022134.80568.40
03/03/2022187.80577.60
04/03/202244.20650.30
05/03/2022135.50606.20
06/03/2022197.70575.50
07/03/2022235.30603.80
08/03/2022262.60660.00
09/03/2022192.40653.30
10/03/2022331.00584.80
11/03/2022164.10548.90
12/03/2022179.90488.10
13/03/2022142.60564.50
14/03/2022229.50563.90
15/03/2022253.90560.40
16/03/2022174.10647.50
17/03/202284.00581.00
18/03/2022183.30525.00
19/03/2022251.50570.30
20/03/2022214.20524.00
21/03/2022177.80501.90
22/03/2022100.80483.40
23/03/2022109.60464.60
24/03/202281.30444.70
25/03/202231.40430.80
26/03/2022107.10498.90
27/03/2022176.80526.80
28/03/202289.20520.70
29/03/202253.00536.10
30/03/20220.00555.00
31/03/20220.00544.10
01/04/202253.90444.40
02/04/202299.90403.10
03/04/2022148.00374.20
04/04/202290.30376.70
05/04/2022233.10427.10
06/04/2022404.60637.80
07/04/2022453.80667.30
08/04/2022458.30656.80
09/04/2022378.70598.70
10/04/2022117.10341.30
11/04/2022141.60346.80
12/04/202293.90417.60
13/04/2022109.30417.50
14/04/2022124.10404.60
15/04/2022103.90455.00
16/04/2022178.80452.30
17/04/2022154.40480.70
18/04/2022261.00518.20
19/04/2022301.00573.30
20/04/2022202.80470.20
21/04/2022131.00442.90
22/04/202299.40433.80
23/04/2022136.90489.10
24/04/202294.70418.70
25/04/2022286.00497.90
26/04/2022195.20546.60
27/04/2022234.10501.70
28/04/2022227.30569.20
29/04/2022450.70269.10
30/04/2022142.40421.20
01/05/2022160.10479.80
02/05/2022156.10447.80
03/05/2022135.50542.90
04/05/202227.10653.30
05/05/20220.10239.20
06/05/2022106.60657.50
07/05/2022124.30602.80
08/05/2022228.10614.90
09/05/2022220.60606.30
10/05/2022146.20445.70
11/05/2022217.70467.80
12/05/2022123.40445.00
13/05/2022160.90467.20
14/05/2022101.60428.90
15/05/2022227.50496.40
16/05/2022169.00597.50
17/05/2022281.40571.40
18/05/2022253.80549.30
19/05/2022121.20593.50
20/05/2022135.00464.60
21/05/2022230.60463.20
22/05/2022151.30417.50
23/05/2022142.70549.10
24/05/2022168.00511.00
25/05/2022246.40523.70
26/05/2022262.70622.70
27/05/2022154.00506.70
28/05/2022123.30519.70
29/05/2022179.90513.10
30/05/2022157.40464.80
31/05/202273.40504.80
01/06/202272.80494.90
02/06/2022186.10462.40
03/06/202249.90514.20
04/06/20220.00559.80
05/06/202229.30611.00
06/06/202226.80605.60
07/06/2022123.80604.00
08/06/202297.50593.30
09/06/202260.30524.70
10/06/202273.20521.50
11/06/2022110.60502.40
12/06/2022171.10538.40
13/06/2022240.10529.90
14/06/2022290.40528.80
15/06/2022228.50489.00
16/06/2022256.70486.40
17/06/2022145.90501.10
18/06/2022100.70552.10
19/06/2022232.50560.70
20/06/2022192.60529.70
21/06/2022167.90526.10
22/06/2022205.20537.50
23/06/202264.90600.40
24/06/20220.00731.50
25/06/20220.10617.60
26/06/202213.60679.00
27/06/20220.00681.70
28/06/20220.10682.90
29/06/2022175.00652.80
30/06/202284.50600.50
01/07/202252.20610.50
02/07/2022142.60647.20
03/07/20220.00677.90
04/07/20220.000.00
05/07/20220.000.00
06/07/20220.000.00

Just hope I'm not missing something really simple.
 
Upvote 0
It does appear that the Flow to River column is the one that is struggling to work for some reason.
 
Upvote 0
The problem is you have multiple matches for the MAX values, try
Excel Formula:
=INDEX(SORT(FILTER(TableFlow[[Date]:[Flow to River (m3)]],(TableFlow[Date]>=DATE($L$20,1,1))*(TableFlow[Date]<DATE($L$20,4,1)),""),2,-1),1,1)
and
Excel Formula:
=INDEX(SORT(FILTER(TableFlow[[Date]:[Flow to River (m3)]],(TableFlow[Date]>=DATE($L$20,1,1))*(TableFlow[Date]<DATE($L$20,4,1)),""),3,-1),1,1)
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,043
Messages
6,122,816
Members
449,095
Latest member
m_smith_solihull

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