+ Reply to Thread
Results 1 to 6 of 6

Formula to quantify percent occurrence of maximum value per year in each month

  1. #1
    Registered User
    Join Date
    03-04-2015
    Location
    Texas
    MS-Off Ver
    2007
    Posts
    23

    Unhappy Formula to quantify percent occurrence of maximum value per year in each month

    So, I have data for streamflow volumes each month for ~75 years ... each year, the "max" streamflow occurs in some month (which varies). I want to know the percent of times it occurs in each of the 12 months over this 75 year timespan. What is the simplest way to generate that?

    I have attached a screenshot of how the data is arranged in three columns (month, year, volume) ...

    Any ideas? I would be so grateful!

    Excel SS.png

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Formula to quantify percent occurrence of maximum value per year in each month

    Hi. No-one is going to want to retype your data; so please attach a spreadsheet, instead of a picture of one...
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    03-04-2015
    Location
    Texas
    MS-Off Ver
    2007
    Posts
    23

    Re: Formula to quantify percent occurrence of maximum value per year in each month

    I'm sorry, I guess I didn't think that would be required for the answer.

    Here is a sample sheet.

    Excel_Example.xlsx

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Formula to quantify percent occurrence of maximum value per year in each month

    It is - (at least for me) to test solutions. Actually I got bored and mocked up some numbers... I couldn't think of a one-step solution. Is this approach OK? If so, I'll put the formulae into your workbook. If not, I'll have another think...
    Attached Files Attached Files

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Formula to quantify percent occurrence of maximum value per year in each month

    Using your own data, assuming a list of years, commencing in G2, this array formula returns the month of maximum discharge each year:

    =INDEX($B$2:$B$325,MATCH(MAX(IF($C$2:$C$325=I2,$D$2:$D$325)),$D$2:$D$325,0))

    This then returns the %s, assuming the list of months begins in L2:
    =COUNTIF($J$2:$J$94,L2)/COUNTA($J$2:$J$194)

    See sheet.
    Attached Files Attached Files

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Formula to quantify percent occurrence of maximum value per year in each month

    I forgot to add...

    Array Formulae are a little different from ordinary formulas in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly braces { } appear around the outside of your formula. If you do not CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly braces yourself - it won't work...

+ 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] Formula: Percent of Fiscal Year passed
    By jomili in forum Excel General
    Replies: 7
    Last Post: 04-24-2017, 06:31 AM
  2. Running Totals from 24 hours to month, month to year without year decreasing
    By Safetyintern in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2015, 01:13 PM
  3. [SOLVED] How to find the maximum occurrence of number in a range of cells
    By arunabha in forum Excel General
    Replies: 9
    Last Post: 03-25-2015, 05:28 AM
  4. If Column A Month and Year = ColumnB Todays Month and Year then send email
    By HACCStaff in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2013, 12:47 AM
  5. Replies: 4
    Last Post: 02-14-2010, 05:21 AM
  6. formula for prior month & year of a month end date.
    By mikeburg in forum Excel General
    Replies: 2
    Last Post: 09-25-2007, 04:01 PM
  7. Formula to return last day of month for each month in year?
    By StargateFan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-03-2006, 12:10 AM

Tags for this Thread

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