# Calculate average sales per month in Excel

From the sales dataset how to get month sales average in Excel

Assume that the sales data is in a table with the following columns: Date, Sales.

In a new column, create a formula to calculate the number of days between the date in each row and today’s date. You can use the DATEDIF function for this, as follows: =DATEDIF(A2, TODAY(), “d”)

This formula will calculate the number of days between the date in cell A2 and today’s date, and return the result as a number. You can drag this formula down to the rest of the cells in column B to calculate the number of days between each date and today’s date.

In a new column, create a formula to calculate the average sales for the last 1 month. You can use the AVERAGE and IF functions for this, as follows: =AVERAGE(C2:C10)

This formula will calculate the average sales for the last 1 month by averaging the sales in the range C2:C10. You can adjust the range as needed to include only the rows with sales data from the last 1 month.

To filter the sales data to include only the last 1 month, you can use the AutoFilter feature in Excel. Select the sales data table, and then click the “Filter” button in the Data tab of the ribbon. This will add drop-down lists to the headers of each column, allowing you to filter the data by column values. To filter the data to include only the last 1 month, click the drop-down list in the Date column, and then select “Last Month” from the list. This will filter the table to include only the sales data from the last 1 month.

To calculate the average sales for the last 1 month, you can then use the AVERAGE function as shown above, with the range adjusted to include only the rows with sales data from the last 1 month.

Share: