Calculate Average with Criteria

kumara_faith

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

I have the following table:

Book2
CDEFGHIJKLMNO
2JanFebMarAprMayJunJulAugSepOctNovDec
3Current Total8912.642500
4Forecasted Total8912.647387.5
Sheet1


I want to be able to calculate the forecasted total for every month based on the total for the prior month and based on the remaining days for the current month. Example: The total for January is 8912.64. Assuming todays date is Feb 12. The remaining days for Feb is 17 days. Jan had 31 days , therefore daily average was 287.50. Therefore, 287.45 X 17 days remaining for Feb + Current Total for Feb=7387.5.

Is there a way to do this with a formula ? Appreciate all the help.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Maybe this.
Book1
CDEFGHIJKLMN
1Today2/12/24
21/1/242/1/243/1/244/1/245/1/246/1/247/1/248/1/249/1/2410/1/2411/1/24
3Current Total8912.642500.00
4Forecasted Total8912.647387.58
Sheet3
Cell Formulas
RangeFormula
D2:N2D2=EDATE(DATE(2024,1,1),SEQUENCE(1,11,0))
E4E4=MAX(0,DATEDIF($D$1,EOMONTH(E2,0),"d"))*D3/DAY(EOMONTH(D2,0))+E3
Dynamic array formulas.
 
Upvote 0
Solution

Forum statistics

Threads
1,223,885
Messages
6,175,184
Members
452,615
Latest member
bogeys2birdies

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