C4:c20 average of i4:i20 positive numbers

PhilipeC

Board Regular
Joined
May 1, 2018
Messages
56
The condition of this formula is the following:


If any number from I4:I20 is positive than in the same row C4:C20 number will be considered:
So if I4=232 THAN C4=13 WILL BE CONSIDERED
if I5=-323 than C5=43 WILL NOT BE CONSIDERED


IF I4:I20 HAVE POSITIVE NUMBERS THEN THE SAME ROWS C4:C20 WILL BE CONSIDERED OR COUNTED AS A NUMBER


FINALLY I WANT THE AVERAGE OF C4:C20 ONLY FROM THE CELLS IN I4:I20 THAT IS POSITIVE NUMBERS


SUCH AS:


I4=100 C4=12
I5=-10 C5=54
I6=14 C6=78
I7=-42 C7=54
I8=28 C8=7




THAN THE C4:C20 AVERAGE OF I4:I20 POSITIVE NUMBERS IS: 100(I4)+14(I6)+28(I8)=132/3(I4,I6,I8)=47,33
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
It didnt work. I have I4=-10,I5=11,I6=13,I7=10 ,I8=-9 AND C4=-2 than since is negative no need to average, C5=55 positive number than will be counted to average, C6 = 93, C7 = 234, C8= 5

THE FORMULA WILL AVERAGE C4=-2 IF I4=10 IS POSITIVE , C5=55 IF I6=13 IS POSITIVE AND SO ON...

IN THIS EXAMPLE:
WE HAVE:
I5,I6,I7 POSITIVE NUMBERS

THAN IT WILL AVERAGE C5,C6,C7
55,93,234=127,33
 
Upvote 0
That's exactly what my formula does. How is this not doing what you are expecting?


Excel 2010
CDEFGHIJKL
4-2-10127.3333
55511
69313
723410
85-2
Sheet1
Cell Formulas
RangeFormula
L4=AVERAGEIF(I4:I20,">0",C4:C20)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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