Excel data analysis

%3CLINGO-SUB%20id%3D%22lingo-sub-2025901%22%20slang%3D%22en-US%22%3EExcel%20data%20analysis%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2025901%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20columns%20of%20rainfall%20data%20variable%20numbers.%20I%20would%20like%20for%20example%20to%20count%20cells%20less%20than%205mm%20for%20each%20column%20for%20the%20year%20and%20get%20a%20total%20sum%20for%20that%20column%20of%20amounts%20below%205mm%20and%20above5mm.%20E.G.%203%2C2%2C2.5%2C1%2C1%2C1.5%2C4%20%3D%2019.5.%20Is%20this%20possible.%26nbsp%3B%20Would%20appreciate%20any%20help%20I%20can%20get.%20I%20have%20a%20limited%20amount%20of%20experience%20on%20Excel%20so%20answers%20need%20to%20be%20simple%20please.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2025901%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2026189%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20data%20analysis%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2026189%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F915500%22%20target%3D%22_blank%22%3E%40Tom_the_can%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20were%20very%20close.%20You'd%20already%20discovered%20the%20COUNTIF%20formula.%20Unless%20I'm%20missing%20something%2C%20all%20you%20needed%20to%20find%20was%20the%20SUMIF%2C%20which%20is%20much%20the%20same.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESee%20attached.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2026613%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20data%20analysis%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2026613%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F915500%22%20target%3D%22_blank%22%3E%40Tom_the_can%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI'd%20separate%20source%20data%20with%20reporting%2C%20keeping%20all%20source%20data%20in%20one%20table%20with%20two%20columns%20(date%20and%20value).%20Date%20are%20for%20entire%20history.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20you%20may%20pivot%20that%20table%20receiving%20aggregated%20data%20per%20month%2C%20quarter%2C%20year%2C%20etc.%20Calculated%20field%20could%20be%20added%20to%20PivotTable%2C%20however%20to%20simplify%20you%20may%20add%20them%20directly%20to%20source%20table.%20Result%20is%20like%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20511px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F243694i819B3E5DDCD858F5%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2026749%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20data%20analysis%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2026749%22%20slang%3D%22en-US%22%3EI%20agree%20with%20Sergei%20that%20this%20is%20the%20better%20approach.%3C%2FLINGO-BODY%3E
New Contributor

I have columns of rainfall data variable numbers. I would like for example to count cells less than 5mm for each column for the year and get a total sum for that column of amounts below 5mm and above5mm. E.G. 3,2,2.5,1,1,1.5,4 = 19.5. Is this possible.  Would appreciate any help I can get. I have a limited amount of experience on Excel so answers need to be simple please.

 

Thank you

6 Replies

@Tom_the_can 

 

You were very close. You'd already discovered the COUNTIF formula. Unless I'm missing something, all you needed to find was the SUMIF, which is much the same.

 

See attached.

 

@Tom_the_can 

I'd separate source data with reporting, keeping all source data in one table with two columns (date and value). Date are for entire history.

 

Now you may pivot that table receiving aggregated data per month, quarter, year, etc. Calculated field could be added to PivotTable, however to simplify you may add them directly to source table. Result is like

image.png

I agree with Sergei that this is the better approach.
Sergei,
Many thanks for taking the time to respond to my question. It is really appreciated and has moved me a little further on my voyage of learning and discovery.
Tom-the -can
Thanks for taking the time to respond. I shall investigate that option. I do however like Sergei's solution. Looks like I am going to be busy.
Than;ks.
Tom-the -can

@Tom_the_can 

 

The solution you got from @Sergei Baklan  is far and away the more robust solution. I was being lazy, seeing how close you were even though the way you'd laid it out was sub-optimal. I'm a firm believer in creating basic tables for collecting the data and then using tools like the Pivot Table to analyze the data.

 

In effect, the way you'd laid it out, though more visually clear for data entry, has you doing a big part of the job of the analysis at the front end. Yours wasn't extreme, but it did mean you (and I, sticking with that layout) had to write a few individual formulas to get the result. Using the Pivot Table lets Excel do all that "heavy lifting"; all you need to do is collect the data. ALL you need to do.

 

So in your learning, I encourage you to watch some YouTube videos, or use websites like the following, on Pivot Table and other tools. Excel has a lot of power; we just have to learn to get out of its way.

https://exceljet.net/glossary/pivot-table