Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-14-2023, 09:11 AM
Excels Excels is offline Using AVERAGE to calculate daily average sale Windows 10 Using AVERAGE to calculate daily average sale Office 2016
Novice
Using AVERAGE to calculate daily average sale
 
Join Date: Jul 2023
Posts: 1
Excels is on a distinguished road
Default Using AVERAGE to calculate daily average sale

Dear All,



I hope everyone is doing well and good. It is so nice to join the forum.

However, I am in need of your excel expertise to solve my problem.

Problem:

I want to calculate the daily average sales for each product from the first cell with date to TODAY().

Attached is the file containing formulas done manually.

Regards.
Attached Files
File Type: xlsx Excel Book.xlsx (12.8 KB, 1 views)
Reply With Quote
  #2  
Old 07-14-2023, 01:51 PM
p45cal's Avatar
p45cal p45cal is offline Using AVERAGE to calculate daily average sale Windows 10 Using AVERAGE to calculate daily average sale Office 2021
Expert
 
Join Date: Apr 2014
Posts: 871
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

Hope you have Office 365!:
In the attached a long formula in cell T6 which can be copied down. The results match your expected results.
It requires the dates in row 4 to be real dates, not strings (which is what you have)

Be aware, that from your instructions, that for each row, we only start taking an average from the leftmost non-blank entry in the Qty columns. Thereafter, each blank Qty column is assumed to be 0, for averaging purposes. So this assumes that the first date a product became on sale it sold more than zero, and that it wasn't on sale prior to that first sale; but will that always be the case? Will a product always sell on its first day?
It would be more robust (and end up with an easier formula) if there was an actual zero in the Qty column if the item was on sale and sold none; it would make determining when a product was first avilable easier and would make the averages correct if the item sold 0 on its first day.

You can use that long formula, but I've also converted it into a lambda function which is much easier to use, see cell U6. Here you get a simple formula:
=DailyAverageSales(D6:Q6,$D$5:$Q$5,$D$4:$Q$4)
with hints as to what goes where in the formula as you enter it:


2023-07-14_214839.jpg
Attached Files
File Type: xlsx msofficeforums51105Excel Book.xlsx (14.8 KB, 1 views)
Reply With Quote
Reply

Tags
#average



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to calculate average of a ratio from a column? Bumba Excel 2 01-15-2020 05:53 AM
How do I formulate a daily average when i have multiple numbers per day? tshep152 Excel 2 05-05-2018 02:15 AM
Using AVERAGE to calculate daily average sale Calculate average age (years) lyiio Excel 3 08-13-2017 12:12 AM
Using AVERAGE to calculate daily average sale how to calculate average time aymanharake Excel 6 02-17-2017 04:22 PM
Using AVERAGE to calculate daily average sale Calculate average age FTL Excel 1 08-09-2016 06:56 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:53 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft