+ Reply to Thread
Results 1 to 3 of 3

Calculate the Monthly Average based on the current day

  1. #1
    Registered User
    Join Date
    09-06-2012
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    12

    Calculate the Monthly Average based on the current day

    Hi there! I am trying to calculate the average number of widgets sold per month based on the current day.

    A1 = YTD Sale of Widgets
    B1 = Average Monthly Production of Widgets

    I am currently using the following formula in B1: =A1/(MONTH(TODAY()))

    This worked fine in January, and would work fine on the last day of February, though it skewed the Average Sale of Widgets on February 1st to think there were 2 whole months to calculate the average....

    I tried using the following formula in B1: =A1/(MONTH(TODAY())-1)

    This skews results though that I've added for sales in the current month to think it should take the total YTD Widget Sales and divide by 1 (for only counting January since we are in February).

    Is there a forumula that could calculate the Average Monthly Sales based on the Day of of the year? Thanks in advance for any help you can provide!
    Last edited by tskabo; 02-06-2015 at 03:34 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    21,723

    Re: Calculate the Monthly Average based on the current day

    I would suggest that if you are in the middle of a month you should subtract the number sold in that month (obtained as the YTD number divided by the number of days so far, times the day number for the month), and then divide the remaining amount by the number of full months that you have encountered so far - you will need to treat January as a special case. If you agree with this logic, then your formula will be something like:

    =IF(MONTH(TODAY())=1,A1,(A1-A1/(TODAY()-DATE(YEAR(TODAY()),1,1))*DAY(TODAY()))/(MONTH(TODAY())-1))

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    09-06-2012
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Calculate the Monthly Average based on the current day

    Perfect! Thank you Pete!

+ 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. Calculate average weekly, monthly, quarterly and annually?
    By gollapinni.karthik in forum Excel General
    Replies: 2
    Last Post: 12-10-2014, 04:40 AM
  2. AVERAGEIF - calculate monthly average
    By TheRobsterUK in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-05-2014, 11:53 AM
  3. How to calculate monthly average
    By mikejones21 in forum Excel General
    Replies: 5
    Last Post: 07-22-2012, 11:51 PM
  4. calculate monthly average percentage of change
    By vikgarden in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-15-2005, 03:06 PM
  5. Need formula to calculate average monthly percentage of change...
    By vikgarden in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2005, 02:06 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