+ Reply to Thread
Results 1 to 6 of 6

Average multiple months

  1. #1
    Registered User
    Join Date
    10-11-2014
    Location
    Noitacol, Acirema
    MS-Off Ver
    Office 365 2019
    Posts
    53

    Average multiple months

    How can I average the total amount I spent on 1 item, but only the months that I spent money on it, for example, Let's say I spend 100 on clothes in jan, 35 in March, 62 in April, 50 in August......and so on I want to only average the amount I spent in the months I spent it. Like right now we are in December, if I just take the total divided by the total amount of months I'd be dividing by 12, when I only want to divide by 4 because I only bought clothes 4 out of the 12 months.........does that make sense?

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Average multiple months

    You may be able to use an AVERAGEIF formula if your data is set up correctly.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    10-11-2014
    Location
    Noitacol, Acirema
    MS-Off Ver
    Office 365 2019
    Posts
    53

    Re: Average multiple months

    Quote Originally Posted by 63falcondude View Post
    You may be able to use an AVERAGEIF formula if your data is set up correctly.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    OK, I hope this works
    Attached Files Attached Files

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Average multiple months

    I now see your data, but it appears that you have left out the desired results (the bold part of post #2).

    Can you update your sample to include the expected outcome?

  5. #5
    Registered User
    Join Date
    10-11-2014
    Location
    Noitacol, Acirema
    MS-Off Ver
    Office 365 2019
    Posts
    53

    Re: Average multiple months

    Quote Originally Posted by 63falcondude View Post
    I now see your data, but it appears that you have left out the desired results (the bold part of post #2).

    Can you update your sample to include the expected outcome?
    OK I hope this helps
    Attached Files Attached Files

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Average multiple months

    Try this:

    =SUMIF(Table3[Category],F1,Table3[Amount])/SUM(--(FREQUENCY(IF(Table3[Category]=F1,DATE(YEAR(Table3[Date]),MONTH(Table3[Date]),1)),DATE(YEAR(Table3[Date]),MONTH(Table3[Date]),1))>0)) Ctrl Shift Enter

+ 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. Last 3 months Average rolling
    By Nevada511 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-14-2017, 12:20 AM
  2. How to separate Months and Years with multiple months
    By jenpen77 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-10-2017, 01:25 PM
  3. [SOLVED] The average of best TWO months ?
    By makinmomb in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-28-2015, 10:44 AM
  4. Dax Formula - 3 Months & 6 Months Average
    By Macondo73 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-20-2015, 03:44 PM
  5. [SOLVED] Average of last 12 months
    By JonSnow in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-17-2014, 09:22 AM
  6. [SOLVED] Average - 3 months / 6 months trend line ( array formula? )
    By ccernat in forum Excel General
    Replies: 3
    Last Post: 04-04-2012, 06:24 AM
  7. Average Months into Years/Months
    By mv835 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-02-2011, 02:45 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