Formula required

RAMU

Active Member
Joined
Dec 11, 2009
Messages
345
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
  2. Mobile
Dear All,

I have a workbook of two sheets. First sheet Calculation Part & second sheet contains data.

In First sheet
A1 is =TODAY()
B2 is "AVG DAILY DEMAND"
B3 will calculate that "AVG DAILY DEMAND" based on sheet 2 data.

In Second sheet
Column A contains dates & Column B contains consumption.

In Sheet 1 B3 will show result last 15 avg consumption (sheet2 columnB) starting from the previous day. I mean if any cell left blank in sheet 2 Column B that will not be counted.

Please help me providing the formula.
Regards
RAMU
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Not sure I understtod you fully, but if you want the average to count 0's and it is always 15 cells worth of data, just use SUM(B3:B17)/15 (changing B3:B17 to be the relevant cell range)
 
Upvote 0
Dear Friends,

No no, suppose today is 29th July, in data sheet last date was entered 28th. Now in Sheet1, B3 calculation will start from 28th & it will take last 15 entries. that means from 28th to 14th. but if there is any blank then it will go more reversely. That means from yesterday it will count 15 valid entries, not the bank cells.

I am not sure whether I can convince you all.

Regards
RAMU
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,337
Members
452,907
Latest member
Roland Deschain

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