Sep 30 2021 03:22 PM
I have column, with dates on D2:D161, costs on E2:E161, Impressions on F2:F161
What would be the CPM (cost per 1000 impressions) over the first 10 days?
Oct 01 2021 01:20 AM
SolutionSee the attached workbook.
Oct 01 2021 09:53 AM
@Hans Vogelaar I am trying to see a cumulative result of cost per 1000 impressions over first 10 days.
How do I do that?
Thank you for the excel file though :)
Oct 01 2021 11:16 AM
Could you attach a sample workbook with dummy data representative of the data you work with?
Oct 01 2021 12:17 PM
Oct 01 2021 12:24 PM
I see that the dates aren't sorted in ascending order.
Wouldn't it be better to sort them? That looks more logical, and you can then use
=AVERAGE(C2:C11/B2:B11)*1000
But if the data aren't sorted, you can use
=AVERAGE(IF(A2:A16<=SMALL(A2:A16,10),C2:C16/B2:B16,""))*1000
Both have to be confirmed with Ctrl+Shift+Enter.
Oct 01 2021 12:29 PM
Oct 01 2021 08:23 PM
@Hans Vogelaar how would you approach the problem if you had duplicate dates. In that case setting range till 10th row will not work. Dummy data in the attachment?
Thanks in advance
Oct 02 2021 02:36 AM
Please explain in detail how you want the average to be computed. Do you want to count the first 10 unique dates? And how should the data for duplicate dates be treated?
Oct 01 2021 01:20 AM
Solution