Average Based on Criteria

kumara_faith

Well-known Member
Joined
Aug 19, 2006
Messages
955
Office Version
  1. 365
Hi,

Book1
BCDEFGHIJKLMNOP
2JanFebMarAprMayJunJulAugSepOctNovDecAverager Decrease YTDAverager Decrease (3M)
3100958584746562#DIV/0!
4
5
6Decrease5%12%1%14%14%5%
Sheet1
Cell Formulas
RangeFormula
O3O3=AVERAGE((B3/C3)-1,(C3/D3)-1,(D3/E3)-1,(E3/F3)-1,(F3/G3)-1,(G3/H3)-1,(H3/I3)-1,(I3/J3)-1,(J3/K3)-1,(K3/L3)-1,(L3/M3))
C6:H6C6=(B3/C3)-1



1) In cell O3, I am trying to calculate in one formula to calculate the average decrease in percentage for the series of sales amount from Jan to Dec. The data will be filled as the months pass and therefore some months will be empty. The average of the decrease from month to month is actually 8%. Is there a way to calculate this in one formula ? Row 6 doesn't actually exist in my data set and its only for reference for this post.
2)In addition, I am also trying to calculate the same in cell P3 but for the last three months of the data. If the data is currently from Jan to Mar, then the correct result will be 9% and if the data is from Jan to Jul then the correct result will be 11%

Appreciate all the help.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
How about
Fluff.xlsm
ABCDEFGHIJKLMNOP
1
2JanFebMarAprMayJunJulAugSepOctNovDecAverager Decrease YTDAverager Decrease (3M)
31009585847465628%11%
Sheet6
Cell Formulas
RangeFormula
O3O3=LET(f,FILTER(B3:M3,B3:M3<>""),AVERAGE(DROP(f,,-1)/DROP(f,,1)-1))
P3P3=LET(f,TAKE(FILTER(B3:M3,B3:M3<>""),,-4),AVERAGE(DROP(f,,-1)/DROP(f,,1)-1))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,812
Messages
6,181,083
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top