Excel Rainfall Data Analysis: Step-by-Step Guide
In this article
Excel can turn a column of daily rainfall readings into monthly totals, seasonal comparisons and simple charts in a few minutes. The shortest working method is: put your dates in one column and rainfall in the next, format both as a table, then use PivotTable or SUMIFS to group by month and a line or column chart to show the pattern. Before you start, make sure each row is one reading with a real date (not text like "Jan"), and that missing days are either absent or marked clearly rather than left as zero.
What You'll Need
- Excel for Windows, Mac or the web version. The steps below work in all three; menu labels can differ slightly by version, device or region.
- Rainfall data in a spreadsheet or CSV, ideally with a date column and a rainfall amount column in millimetres or inches.
- A consistent unit throughout. Mixing mm and inches in one column will produce meaningless totals.
- Optional: a rain gauge log or source notes so you can explain gaps and outliers later.
Step-by-Step
- Lay out the data cleanly. Put headers in row 1, for example Date in A1 and Rainfall in B1. Every row below should be one day or one reading. Do not merge cells, leave blank rows between records, or put totals inside the data range.
- Check that dates are real dates. Click a date cell and look at the formula bar. If it shows the same date you see in the cell, it is a real date. If the cell is left-aligned or the formula bar shows text, convert it: select the column, then use Data > Text to Columns and finish the wizard with the Column data format set to Date. Real dates are what make monthly grouping work.
- Handle missing values deliberately. Leave a missing day blank if you want averages to ignore it, or enter 0 only if you are certain no rain fell. A blank is not the same as zero, and mixing the two will distort monthly totals and averages.
- Convert the range to a table. Select any cell in the data and press Ctrl+T (Cmd+T on Mac), confirm the range has headers, and click OK. A table expands automatically when you add rows and gives PivotTables a reliable source.
- Add a Month column. In the first empty column beside the table, type a header such as Month. In the first data row, enter a formula like =TEXT([@Date],"yyyy-mm") and press Enter. The table fills the formula down. This gives you a sortable text label for each month. If your version does not support structured references, use =TEXT(A2,"yyyy-mm") and fill down manually.
- Build a PivotTable for monthly totals. Click inside the table, then Insert > PivotTable and place it on a new worksheet. Drag Month into Rows and Rainfall into Values. If Values shows Count instead of Sum, click the field, choose Value Field Settings and select Sum.
- Add a second measure for wet days. Drag Rainfall into Values again. Open Value Field Settings for the new field, choose Count, and rename it something like Days with readings. This tells you whether a low monthly total is real or just caused by missing days.
- Calculate the monthly average. In the PivotTable, add another Rainfall value field and set it to Average. Compare the average with the total: a month with a high total but few readings is less trustworthy than one with a full set of days.
- Chart the pattern. Select the PivotTable and use Insert > PivotChart, then choose a column chart for monthly totals or a line chart for daily readings. Label the vertical axis with your unit (mm or inches) so the chart is not ambiguous.
- Use SUMIFS for a quick check outside the PivotTable. In a spare cell, enter =SUMIFS(Table1[Rainfall],Table1[Month],"2024-03") to total one month. Compare it with the PivotTable figure. If they match, your grouping is sound.
- Flag extreme days. Add a column with a formula such as =IF([@Rainfall]>=50,"Heavy","") and adjust the threshold to your climate. Sort or filter on that column to list the heaviest days for review.
- Save a copy before editing further. Keep the raw data sheet untouched and do analysis on a copy or in the PivotTable. This preserves the original record if a formula or filter goes wrong.
Common Mistakes
- Dates stored as text, which makes month grouping fail or puts every row into one bucket.
- Mixing millimetres and inches in the same column, producing totals that cannot be compared.
- Treating blank cells as zero, which lowers averages and hides missing readings.
- Leaving totals or subtotal rows inside the data range, so they get counted twice.
- Using COUNT instead of SUM in a PivotTable and reading the result as a rainfall total.
- Charts without axis labels or units, which makes the output hard to interpret later.
Tips
- Keep one raw sheet and one analysis sheet. Never overwrite the raw readings.
- Name your table (Table Design > Table Name) so formulas are easier to read and reuse.
- Use a consistent date format such as yyyy-mm-dd in the source data to avoid regional ambiguity.
- Add a data-quality column that flags blanks or zero values so you can filter them out when averaging.
- Round display values to one or two decimals, but keep the underlying numbers unrounded for calculations.
- If you compare seasons, define the season boundaries once in a small reference table rather than retyping them in formulas.
Troubleshooting
- PivotTable shows Count instead of Sum. The rainfall column likely contains text. Check for stray spaces, units typed into cells, or numbers stored as text, then convert them with Data > Text to Columns.
- Month column shows the same value everywhere. The date cells are probably text. Convert them to real dates as described in step 2, then refresh the formula.
- Totals look too low. Look for blank cells being ignored, filtered-out rows, or a unit mismatch. Compare a single month with a manual SUMIFS check.
- The chart does not update. PivotCharts need a refresh: right-click the chart or PivotTable and choose Refresh. If the source range changed, check that the table expanded to include the new rows.
- Formula returns an error. Confirm the column names in the formula match the table headers exactly, including spaces, and that the table name is correct.
- Numbers will not sum at all. Select the column and check the status bar; if it shows only a count, the values are text. Re-enter or convert them.
Frequently Asked Questions
Can Excel handle years of daily rainfall data?
Yes. A table with one row per day is well within Excel's row limit, and PivotTables summarise it quickly. Keep the raw sheet free of merged cells and totals.
How do I total rainfall by month without a PivotTable?
Use SUMIFS with a month helper column, for example =SUMIFS(RainfallRange,MonthRange,"2024-03"). This is a good cross-check against a PivotTable.
Should missing days be zero or blank?
Blank, unless you know no rain fell. A blank is ignored by averages; a zero pulls the average down and can make a dry month look drier than it was.
Why does my date column sort incorrectly?
Text dates sort alphabetically, so "April" can appear before "January". Convert the column to real dates, then sort or group by month.
Can I compare mm and inches in the same workbook?
Yes, but convert one unit to the other first and label the column clearly. Do not mix units within a single column.
How do I find the wettest day?
Use =MAX(RainfallRange) to get the value, then filter or use INDEX and MATCH to find the matching date. Sorting the table by rainfall also works for a quick look.