+ Reply to Thread
Results 1 to 6 of 6

How to calculate an average based on number of days in a month

  1. #1
    Registered User
    Join Date
    08-18-2019
    Location
    england
    MS-Off Ver
    2019
    Posts
    6

    How to calculate an average based on number of days in a month

    Hi everyone,

    I'm trying to do something which should be quite simple (I would have thought) but can't find any resources online.

    I want to calculate an average number of sales for a given month. It seems easy enough to do this if you have a specific date, but what if I only have the month. For instance, in column A I would have the month (row 1 - January, row 2 - February etc...) and in column B I would have the number of sales for that month. Then in column C I want the average, so number of sales / number of days in that month. Does anyone know how I can do this please?

    Many thanks,

    Ryan

  2. #2
    Forum Moderator 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
    26,828

    Re: How to calculate an average based on number of days in a month

    Hi ,

    One way with the date in A1 and the Sales in B1

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


    and if you have the month names in A1, January, February..etc and you want to SEE the names it would be better to put say 1/1/2020 in A1 as a date and format it to "mmmm"
    Last edited by Richard Buttrey; 01-19-2020 at 02:06 PM.
    Richard Buttrey

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

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 for Mac OSX, 365 for windows, Windows 10 Insider
    Posts
    5,919

    Re: How to calculate an average based on number of days in a month

    =NETWORKDAYS(A1,EOMONTH(A1,0),holidays)
    will give you the working days for each month - assuming you enter a date in A1 - ie 1/1/2020 and then format as MMM if you just want to display a month

    now you have work days
    then you can divide into B

    =B1/NETWORKDAYS(A1,EOMONTH(A1,0),holidays)
    should give the average for a workday in the month

    Holidays are a named range for a table of when you have holidays in the month
    no holidays just remove

    =B1/NETWORKDAYS(A1,EOMONTH(A1,0))
    Wayne

    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Valued Forum Contributor BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,026

    Re: How to calculate an average based on number of days in a month

    Quote Originally Posted by Richard Buttrey View Post
    Hi ,
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Could be more simple
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-18-2019
    Location
    england
    MS-Off Ver
    2019
    Posts
    6

    Re: How to calculate an average based on number of days in a month

    Ok so I have to use a date. Thanks for your help.

  6. #6
    Valued Forum Contributor BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,026

    Re: How to calculate an average based on number of days in a month

    you can generate the date but February should be used with year because of 28/29 days.
    A1: "January"
    C1: =B1/DAY(EOMONTH(--("1"&A1&"2020"),0))

+ 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. Replies: 8
    Last Post: 05-16-2018, 01:00 PM
  2. [SOLVED] calculate the number of days in a month through 'Month Name'
    By pipsmultan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-30-2017, 03:10 PM
  3. [SOLVED] calculate total number of days between two days based on 365 days year
    By aparunkumar in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-14-2016, 12:51 AM
  4. Running Average Based on Current number of days in month
    By dw_22801 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 06-22-2015, 12:48 PM
  5. [SOLVED] Calculate number of days in a month between two dates
    By schlomo87 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-04-2014, 12:32 AM
  6. [SOLVED] How to calculate an average for all days within a certain month
    By consulttk in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-03-2012, 11:37 AM
  7. Replies: 6
    Last Post: 04-03-2012, 12:36 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