Printable Version | Subscribe | Add to Favourites
New Topic New Poll New Reply
Author: Subject: Excel... should be simple.. but its not
tegwin

posted on 2/11/14 at 05:45 PM Reply With Quote
Excel... should be simple.. but its not

Anyone a dab hand at excel? I am having issues..

I basically have the daily flow rates from a river for the last 10 years. I want to average the flow by month.. So the 5000 rows of data can be displayed in 12 rows!


So in column A I have DATE, and column B I have FLOW

What I want to do is say... Average the numbers in column B IF the month number in column A = x (where x is the month number, 1=Jan, 2=feb etc)

I can use the MONTH() function to return the month number for the dates... but how do you selectivly average based on the constraint that month must = a constant
?


[Edited on 2/11/14 by tegwin]





------------------------------------------------------------------------------------------------------------------------
Would the last person who leaves the country please switch off the lights and close the door!

www.verticalhorizonsmedia.tv

View User's Profile Visit User's Homepage View All Posts By User U2U Member
r1_pete

posted on 2/11/14 at 06:08 PM Reply With Quote
Is this what you need:

flow
flow


Use subtotal, at each change in month use average add to flow column

View User's Profile E-Mail User Visit User's Homepage View All Posts By User U2U Member
tegwin

posted on 2/11/14 at 06:12 PM Reply With Quote
Damn that looks a lot easier ... didnt even think to try that!





------------------------------------------------------------------------------------------------------------------------
Would the last person who leaves the country please switch off the lights and close the door!

www.verticalhorizonsmedia.tv

View User's Profile Visit User's Homepage View All Posts By User U2U Member
gingerprince

posted on 2/11/14 at 09:54 PM Reply With Quote
A Pivot Table is what you need for summarising data. Select all you data and choose insert pivot table. Drag the date to the left, and flow to the table. Then right-click on a date, choose to group by month and year. et voila.
View User's Profile View All Posts By User U2U Member
Barkalarr
Contributor






Posts 942
Registered 14/3/12
Location Essex
Member Is Offline

Photo Archive Go!
Building: Caterham R300, Caterham Roadsport,Indy R1,Indy Zet

posted on 2/11/14 at 10:34 PM Reply With Quote
quote:
Originally posted by gingerprince
A Pivot Table is what you need for summarising data. Select all you data and choose insert pivot table. Drag the date to the left, and flow to the table. Then right-click on a date, choose to group by month and year. et voila.


+1 for the pivot table.

If you need a hand how to do this, let us know what version of excel you're on.

Personally, I'd use year() in one column and month() in another column unless you're only interested in the month of the year.

One tip on a pivot table is make sure all the columns have headings or else it freaks out.

[Edited on 2/11/14 by Barkalarr]

View User's Profile View All Posts By User U2U Member

New Topic New Poll New Reply


go to top






Website design and SEO by Studio Montage

All content © 2001-16 LocostBuilders. Reproduction prohibited
Opinions expressed in public posts are those of the author and do not necessarily represent
the views of other users or any member of the LocostBuilders team.
Running XMB 1.8 Partagium [© 2002 XMB Group] on Apache under CentOS Linux
Founded, built and operated by ChrisW.