Problem with daily rainfalls, calculated using SUMIFS

mdsgrd

New Member
Joined
May 6, 2020
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Good morning,

I've been working on a table with rain data and I have (another) problem that I haven't been able to solve. I'll explain a bit about the context of my work and then expose the problem I'm having.
The equipment we use record the time when a 2mm rain occur. In order to work with this data, I made groups of 5 minutes rain values using the ROUNDUP function for the time (how many 2mm rain has there been in a 5min interval). This is the best option I've found but it generates a problem when i'm calculating the daily rainfalls. When the day changes (lines 10 and 11) the 5 min rain that's showed at midnight of day 3 actually happened in the 5 last minutes of day 2. So, when I calculate the daily rainfall, the rain that happened in line 11, that belongs to day 2, is actually displayed on day 3. You can see the calculated and real values in columns F and G. Does anyone have any idea on how to solve this problem?

I thank you in advance for all the help!

Mathieu

extrato_modelobasico.xlsx
ABCDEFG
1DayMonthYearReference timeRainfall (mm)Daily Rainfall (mm)Real Daily Rainfall (mm)
22120202-1-20 23:15 - -
32120202-1-20 23:20 - - -
42120202-1-20 23:25 0.2 0.2 0.2
52120202-1-20 23:30 0.4 0.6 0.6
62120202-1-20 23:35 0.4 1.0 1.0
72120202-1-20 23:40 1.0 2.0 2.0
82120202-1-20 23:45 7.0 9.0 9.0
92120202-1-20 23:50 9.6 18.6 18.6
102120202-1-20 23:55 6.2 24.8 24.8
113120203-1-20 0:00 4.4 4.4 29.2
123120203-1-20 0:05 7.0 11.4 7.0
133120203-1-20 0:10 5.6 17.0 12.6
143120203-1-20 0:15 7.4 24.4 20.0
153120203-1-20 0:20 3.8 28.2 23.8
163120203-1-20 0:25 1.4 29.6 25.2
173120203-1-20 0:30 0.6 30.2 25.8
Planilha1
Cell Formulas
RangeFormula
F2:F17F2=SUMIFS(E$2:E2,A$2:A2,A2,B$2:B2,B2)
G2:G11G2=SUM($E$2:E2)
G12:G17G12=SUM($E$12:E12)
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
could you use MOD() and identify the date with 0 time and then subtract 1 from the day value

Book2
ABCDEFGHI
1DayMonthYearReference timeRainfall (mm)Daily Rainfall (mm)Real Daily Rainfall (mm)
231120201/31/20 23:1500FALSE
331120201/31/20 23:20000FALSE
431120201/31/20 23:250.20.20.2FALSE
531120201/31/20 23:300.40.60.6FALSE
631120201/31/20 23:350.411FALSE
731120201/31/20 23:40122FALSE
831120201/31/20 23:45799FALSE
931120201/31/20 23:509.618.618.6FALSE
1031120201/31/20 23:556.224.824.8FALSE
1131120201-Feb-204.429.229.2TRUE
123120201/3/20 0:05777FALSE
133120201/3/20 0:105.612.612.6FALSE
143120201/3/20 0:157.42020FALSE
153120201/3/20 0:203.823.823.8FALSE
163120201/3/20 0:251.425.225.2FALSE
173120201/3/20 0:300.625.825.8FALSE
Sheet1
Cell Formulas
RangeFormula
F2:F17F2=SUMIFS(E$2:E2,A$2:A2,A2,B$2:B2,B2)
G2:G11G2=SUM($E$2:E2)
G12:G17G12=SUM($E$12:E12)
A2:A17A2=IF(MOD(D2,1)=0,DAY(D2-1),DAY(D2))
I2:I17I2=MOD(D2,1)=0
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

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