+ Reply to Thread
Results 1 to 7 of 7

Formulas For Average Subcategory Amounts in Date Range

  1. #1
    Banned User!
    Join Date
    06-18-2021
    Location
    Peru
    MS-Off Ver
    2010, Microsoft 365
    Posts
    431

    Formulas For Average Subcategory Amounts in Date Range

    Hello,

    R6 and R7 on the Monthly Budget sheet have the date range for the Subcategory average amounts from the Notes sheet. Are there formulas that can fill these amounts in Q10:Q72?

    Thank you very much for your help

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formulas For Average Subcategory Amounts in Date Range

    Hi,

    Q10 copied down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Banned User!
    Join Date
    06-18-2021
    Location
    Peru
    MS-Off Ver
    2010, Microsoft 365
    Posts
    431

    Re: Formulas For Average Subcategory Amounts in Date Range

    Thank you Mr. Buttrey that works perfectly!

  4. #4
    Banned User!
    Join Date
    06-18-2021
    Location
    Peru
    MS-Off Ver
    2010, Microsoft 365
    Posts
    431

    Re: Formulas For Average Subcategory Amounts in Date Range

    I did some further checking and there may be something wrong. The amounts don't match what the actuals are. Please check my revised copy showing an extra column that takes averages ignoring zero amounts for each month if that subcategory didn't have anything.

  5. #5
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Formulas For Average Subcategory Amounts in Date Range

    Richard's formula gave you the average of each entry in the Notes sheet. Your "check" is against the average monthly totals which are on a previously hidden sheet. Pretty hard to know what you wanted

    Something like this should work for the monthly non-zero averages:

    =SUMIFS(Table4[Amount $],Table4[Subcategory],L10,Table4[Date],">="&$R$6,Table4[Date],"<="&$R$7)/SUM(IF(FREQUENCY(IF((Table4[Subcategory]=L10)*(Table4[Date]>=$R$6)*(Table4[Date]<=$R$7),MONTH(Table4[Date])),IF((Table4[Subcategory]=L10)*(Table4[Date]>=$R$6)*(Table4[Date]<=$R$7),MONTH(Table4[Date]))),1,0))

  6. #6
    Banned User!
    Join Date
    06-18-2021
    Location
    Peru
    MS-Off Ver
    2010, Microsoft 365
    Posts
    431

    Re: Formulas For Average Subcategory Amounts in Date Range

    My "check" is directly from the Notes sheet for the given year in cell $C$3. This seems like a less complicated way to get averages of the months for when values are added. It ignores months that do not have any entries.

    Thanks
    Last edited by BillySpivy; 03-10-2022 at 11:31 AM.

  7. #7
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Formulas For Average Subcategory Amounts in Date Range

    I suppose it is, looking at it in more detail, although it uses a helper sheet. Anyway, glad you have it sorted and thanks for taking the time to mark the thread solved and give out reputation.

+ 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] Formulas for Subcategory Amounts Based on Month and Year from Transactions Sheet
    By BillySpivy in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-16-2021, 05:49 AM
  2. [SOLVED] Subcategory Amounts From Transactions Sheet
    By BillySpivy in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-08-2021, 09:37 AM
  3. [SOLVED] COUNTIF - Match amounts and date range
    By Sean1973 in forum Excel General
    Replies: 28
    Last Post: 08-12-2021, 04:25 PM
  4. Formula to total amounts on multiple worksheets for particular date range
    By needleme in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-02-2018, 12:01 PM
  5. [SOLVED] Totaling amounts within a date range
    By astue1 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 12-08-2014, 02:42 PM
  6. Gathering amounts based on date for a monthly average
    By avidcat in forum Excel General
    Replies: 2
    Last Post: 01-02-2010, 11:25 AM
  7. Replies: 6
    Last Post: 09-10-2008, 03:44 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