+ Reply to Thread
Results 1 to 23 of 23

computing the averages for every quarter from monthly data for further calculations

  1. #1
    Registered User
    Join Date
    02-22-2022
    Location
    Germany
    MS-Off Ver
    365
    Posts
    34

    computing the averages for every quarter from monthly data for further calculations

    Dear Community,

    I have monthly data. From this monthly data I want to compute the averages for every quarter. I need these values for further analysis to substract the average value from the latest quarter from the maximum value from the Ist quarter 2003. I thought about Pivot Tables. However, I don't know how to calculate in the other Excel sheet exactly this dfference. Pivot Table shows me also yearly data.

    I attach the sample of my data. Please help me
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,838

    Re: computing the averages for every quarter from monthly data for further calculations

    Show us what you want. Mock up a few rows of sample results data as you want to see it (e.g. for the first five years). Forget the PT for now.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    02-22-2022
    Location
    Germany
    MS-Off Ver
    365
    Posts
    34

    Re: computing the averages for every quarter from monthly data for further calculations

    Thank you for your reply. I don't know how to calculate the average values for quarters without using Pivot Tables. E.g. for the last quarter in the available data I have the average vale of
    -174. From this value I want to substract the maximum value which was in the interval from 2nd quarter 2002 until know.

    Best,
    Emilia

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,838

    Re: computing the averages for every quarter from monthly data for further calculations

    OK - using the pivot table in your workbook, next to it (to the right) please manually mock up what you mean by this:

    From this value I want to substract the maximum value which was in the interval from 2nd quarter 2002 until know (sic).
    I am struggling to visualise what you want. Highlight the cells you'd want to include in the calculation.

  5. #5
    Registered User
    Join Date
    02-22-2022
    Location
    Germany
    MS-Off Ver
    365
    Posts
    34

    Re: computing the averages for every quarter from monthly data for further calculations

    Thank you for your quick reply. I don't mean any particular cells. I just need to calculate the averages for every quarter. From these averages I have to substract
    from the last value the maximum value from the interval from e.g. the second quarter of 2001 till the last data.

    Maybe somebody else understands what I mean and could help me?

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,838

    Re: computing the averages for every quarter from monthly data for further calculations

    Define "the last data"? Which data is this in the workbook?

    I understand the calculation you want to make, I'm just not quite getting which data to include.

    It's a shame that you cannot calculate ONE example manually to illustrate your requirement, as this would obviate doubt.

  7. #7
    Registered User
    Join Date
    02-22-2022
    Location
    Germany
    MS-Off Ver
    365
    Posts
    34

    Re: computing the averages for every quarter from monthly data for further calculations

    Please, use polite and appropriate language.

    Kindest regards,
    Emilia

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,838

    Re: computing the averages for every quarter from monthly data for further calculations

    I'm sorry, I don't understand.

    I am sorry that you feel that my post is in any way impolite or inappropriate: please tell me why you think this is the case. Maybe you have misunderstood a word or phrase I used, but there is nothing impolite or inappropriate about it.

    I am trying to help you but I need to establish exactly what you are looking for, and I have not yet fully understood this.

    I also see that you have awarded negative rep. This should only be used if someone has insulted you, and that isn't the case here. I am flabbergasted by your response to an offer of help from a forum Moderator!
    Last edited by AliGW; 08-01-2023 at 04:59 AM.

  9. #9
    Registered User
    Join Date
    02-22-2022
    Location
    Germany
    MS-Off Ver
    365
    Posts
    34

    Re: computing the averages for every quarter from monthly data for further calculations

    It looks like it is misunderstanding. When somebody tells me "it's a shame..." I automatically associate it with a mean teacher. Maybe this is because I'm not an
    English native speaker. What I need is to calculate the averages for quarters of the year. So e.g. if I have monthly data like

    01.01.2001
    01.02.2001
    01.03.2001
    01.04.2001
    01.05.2001
    01.06.2001
    01.07.2001
    01.08.2001
    01.09.2001
    01.10.2001
    01.11.2001
    01.12.2001
    01.01.2002
    01.02.2002
    01.03.2002
    01.04.2002
    01.05.2002
    01.06.2002
    01.07.2002
    01.08.2002
    01.09.2002
    01.10.2002
    01.11.2002
    01.12.2002
    01.01.2003
    01.02.2003
    01.03.2003
    01.04.2003
    01.05.2003
    01.06.2003
    01.07.2003
    01.08.2003
    01.09.2003
    01.10.2003
    01.11.2003
    01.12.2003
    01.01.2004
    01.02.2004
    01.03.2004
    01.04.2004
    01.05.2004
    01.06.2004
    01.07.2004
    01.08.2004
    01.09.2004
    01.10.2004
    01.11.2004
    01.12.2004
    01.01.2005
    01.02.2005
    01.03.2005
    01.04.2005
    01.05.2005
    01.06.2005
    01.07.2005
    01.08.2005
    01.09.2005
    01.10.2005
    01.11.2005
    01.12.2005
    01.01.2006
    01.02.2006
    01.03.2006
    01.04.2006
    01.05.2006
    01.06.2006
    01.07.2006
    01.08.2006

    and I have values for these monthly data, I need for every quarter for every year the averages. Then when I have the averages I want to take the last value.
    It would be the 3rd quarter of 2006. And I want to take averages from the first quarter of 2002 until the 3rd quarter of 2006, and from these values choose maximum value. Once I have the
    last value from the 3rd quarter of 2006 and the maximum value from this interval I want to subtract them.

    I'm sorry but I don't have quarters and the averages. Thus, it is the way for me to explain what I mean

    Best regards,
    Emilia

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,838

    Re: computing the averages for every quarter from monthly data for further calculations

    Maybe this is because I'm not an English native speaker.
    Clearly that was it. I was a teacher before I retired (of French and German, as it happens), but I was never a mean one. I am not that sort of person. I am quite upset that you have jumped to conclusions without even establishing the meaning of what I said. Don't do that again, please - it is very unfair and really quite unkind. And never forget that we offer help because we want to help you.

    It would be nice if you would undo the unjustified negative rep you gave me by giving me some positive rep.

    I have to go out now, so hopefully someone else will be able to assist you.

  11. #11
    Registered User
    Join Date
    02-22-2022
    Location
    Germany
    MS-Off Ver
    365
    Posts
    34

    Re: computing the averages for every quarter from monthly data for further calculations

    Good to know the expression "shame on you" is not rude for English native speakers But anyway, thank you for your willingness to help. I appreciate it. Unfortunately, I cannot undo this. I have a notice: you must spread some reputation. Once I am able to do it, ofc I will undo this
    Last edited by Emilia_Maria; 08-01-2023 at 07:04 AM.

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,838

    Re: computing the averages for every quarter from monthly data for further calculations

    That would indeed be very rude for English native speakers, but I did not say "shame on you"! Read the post again. You had said that you couldn't calculate an example to demonstrate what you wanted, so I said:

    It's a shame that you cannot ...
    This is roughly the equivalent of "Schade, dass ...", NOT "Schäm dich!" It merely expresses regret, nothing more.

    Flipping heck! (Look that up if you don't understand it).

    I am back home, but tied up at the moment. If I have time, I'll have another look at your issue later on.
    Last edited by AliGW; 08-01-2023 at 08:12 AM.

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,838

    Re: computing the averages for every quarter from monthly data for further calculations

    OK - so the data in your workbook goes from 01.01.2001 to 01.07.2013.

    and I have values for these monthly data, I need for every quarter for every year the averages.
    I understand this.

    Then when I have the averages I want to take the last value. It would be the 3rd quarter of 2006.
    Why would this be the last value? How would I know this when the data runs on into 2013?

    And I want to take averages from the first quarter of 2002 until the 3rd quarter of 2006,
    That's fine, but where in the workbook are these parameters set? How have you decided on the range from Q1 2002 to Q3 2006? This is where I am confused.

    and from these values choose maximum value.
    Understood.

    Once I have the last value from the 3rd quarter of 2006 and the maximum value from this interval I want to subtract them.
    Also understood.

  14. #14
    Registered User
    Join Date
    02-22-2022
    Location
    Germany
    MS-Off Ver
    365
    Posts
    34

    Re: computing the averages for every quarter from monthly data for further calculations

    It is just an example of a data.

    "Why would this be the last value? How would I know this when the data runs on into 2013?"

    I need to get quarters of the years. And then for every quarter of the year get averages. It is only an example data.

    Then according to my guidelines I just subtract the last average value I have in data (in the example I have 2013 or whatever) from the maximum average for quarters values from
    the interval 2006-2013.

    Since I'm more proficient in other programms I will try to do in another program and show you the output.

    I would be grateful anyway if somebody helped me

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,838

    Re: computing the averages for every quarter from monthly data for further calculations

    Yes, but example data has to reflect reality.

    So, in the sample data, the last value is in fact 01.07.2013 - yes?

    I still don't understand why we are starting with 2006. Where has this come from?

    Some sample output would help to clarify exactly what you want - thanks.

    I hope you have read post #12. Because you need to.

  16. #16
    Registered User
    Join Date
    02-22-2022
    Location
    Germany
    MS-Off Ver
    365
    Posts
    34

    Re: computing the averages for every quarter from monthly data for further calculations

    In 2006 something relevant for my company had place. Therefore we're want to subtract the last quarterly averages from the maximum value for quarterly averages
    for this period. But it is only example.
    it could have happended in 2003 either. So then I would have to take the interval 2003-2013

    I hope that helps.

    If somebodey else understands what I mean, please help me

  17. #17
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,838

    Re: computing the averages for every quarter from monthly data for further calculations

    Emilia - please don't be impatient! I understand the mechanics of what you want, but you are not giving clear answers to my questions about the interval the formula needs to handle.

    So, please answer (yes or no):

    1. The last date will be the last date in the data sample - yes or no?
    2. The first date of the interval could be any date in the data sample - yes or no? If yes, will that parameter be stated in the workbook somewhere so that a cell can be referenced, or does it need hard-coding into the formula.

    I asked if you had read post #12. Have you read it yet? You accused me of saying something that I did not say and I think you owe it to me at least to acknowledge that you got it wrong.

  18. #18
    Registered User
    Join Date
    02-22-2022
    Location
    Germany
    MS-Off Ver
    365
    Posts
    34

    Re: computing the averages for every quarter from monthly data for further calculations

    Well, I won't acknowledge it. Please look here: https://hellogiggles.com/7-phrases-never-say-someone/

    Honestly, I wanted to be nice and that's why I just told you that I'm not native etc. I didn't want you to be ashamed. But it slowly abuses my patience and I really don't have time for this. And no, I won't acknowledge it. It has gone too far.

    Honestly, from the other users I got always an answer to my questions.

  19. #19
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,838

    Re: computing the averages for every quarter from monthly data for further calculations

    I did not say "Shame on you!" - that's the point. I have nothing to be ashamed of!

    I have put out a call for help - someone else will step in.

    Good luck.

  20. #20
    Registered User
    Join Date
    02-22-2022
    Location
    Germany
    MS-Off Ver
    365
    Posts
    34

    Re: computing the averages for every quarter from monthly data for further calculations

    I'm sorry. I've just read your post once again. I don't know why I was sure it was "shame on you" there. I acknowledge my mistake. Please take my apology

  21. #21
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,838

    Re: computing the averages for every quarter from monthly data for further calculations

    Thank you - of course I accept your apology. I would never say that to anybody, here or in the wider world!

    I have put out a call for help, as I don't seem able to get the information I need from you to help. I hope someone else will.

    I will look in again later.

  22. #22
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,004

    Re: computing the averages for every quarter from monthly data for further calculations

    How about this?

    Please Login or Register  to view this content.
    Attached Files Attached Files

  23. #23
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: computing the averages for every quarter from monthly data for further calculations

    I have reversed the neg rep, it was clearly a misunderstanding.

    That is 1 of the biggest problems/pitfalls of written communication - there is not really a good way to show intent when typing, one has to try and interpret the intention based on factors that are often outside the scope of the actual conversation.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Change Annual Averages to Monthly Data
    By Cgolt in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-05-2022, 04:09 PM
  2. VB Code to convert Quarter data into Monthly data
    By rmomin in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-13-2022, 09:41 AM
  3. Replies: 3
    Last Post: 11-22-2016, 06:42 PM
  4. [SOLVED] Computing monthly standard deviation from daily data
    By Quantopic in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-07-2014, 07:42 AM
  5. Computing the monthly mean value from daily data
    By Quantopic in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-06-2014, 03:47 PM
  6. getting data from monthly quarter
    By andyx181x in forum Excel General
    Replies: 5
    Last Post: 09-28-2010, 12:34 PM
  7. TRansforming Daily data into Monthly averages
    By odevoted in forum Excel General
    Replies: 3
    Last Post: 05-28-2010, 11:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1