Average & Sum using Count If excluding Blank Cells

ravi2628

Board Regular
Joined
Dec 20, 2017
Messages
230
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Dear Friends,

I was using a Formula where i need to exclude blank cells at average or sum in the given range criteria.

Due to IT Restriction Macro or addons can not work out to get the raw data

Due to Current formula count i was getting is 464
Current Formula :=ROUNDUP(AVERAGE(COUNTIFS('20-Jan-25 to 03-Mar-25'!$AD:$AD,E$25:G$29,'20-Jan-25 to 03-Mar-25'!$D:$D,Summary!$A8)),0)

Between e25:G29 empty cells has to be excluded while calculation

But actual Count is 696

Please help me out with the formula

Snap shot for ref:
1741115184865.png
 
Please read post #7 and show us what you want. I don't think we understand what you are asking for obviously as you keep indicating that we are not getting what you want.
 
Upvote 0
I am also unclear as to what you want, so here is another guess:
(in your example you say 18 but that is for a single day and you are saying you want a range of dates The below does not count lines with nothing in column A)

Book1
DEFG
1Filtered Date(Column)Average of Daily Count
2From20/01/202513.6
3
4
5To24/01/2025
Sheet1
Cell Formulas
RangeFormula
G2G2=LET(uniqDates,UNIQUE(FILTER(B2:B69,(B2:B69>=E2)*(B2:B69<=E5))), dailyCount,BYROW(uniqDates,LAMBDA(uD,SUM(--(B2:B69=uD)*(A2:A69<>"")))), AVERAGE(dailyCount))
 
Upvote 0

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