can someone help my formula

sitelbanat

Board Regular
Joined
Oct 17, 2005
Messages
152
=COUNTIF(O69:O82,">0", IF(O69:O82,">0",(E69:E82 *1),0),0)


IF O range >0 then Multiply that cell count by the same row in E range.
for example if

O range

O69=2356
O72=5625
O74=5625
O76=5642

E range

E69=.80
E72=.60
E74=0
E76=0

the answer should be 4.4 for O85 that's where the formula belongs
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
=COUNTIF(O69:O82,">0")+(SUMIF(O69:O82,">0",E69:E76))

but I think the answer should 5.4
 
Upvote 0
O range count =5

so since O69 and O72 have a value then you look at E range E69=.80 and E72=.60 which =1.4 so since 2 cells have values, you subtract 2 from the 5 count and add 1.4 to the count which makes it 4.4
 
Upvote 0
I think the formula needs to do this to be able to get the results am looking for

I need a formula that would count how many value in O69:O82 range >0 then out of those cells count how many values are >0 in E69:E82. Then take the total count of E69:E82 range and subtract that count from O69:O82 range total then Sum the values in E69:E82 Range and add to O69:O82 range.
 
Upvote 0
Maybe something like this, but this formula is not working

=COUNTIF(O69:O82,">0"),COUNT(O69:O82,">0", COUNT(E69:E82)-COUNT(O69:O82)+sum(E69:E82),0)
 
Upvote 0
Is it?

=SUMPRODUCT(--(O69:O82>0),--(E69:E82=0))+SUMIF(E69:E82,">0")

which will count the cells in O69:O82 that are greater than zero if the corresponding cell in column E is zero, and add the sum of the greater than zero cells in E69:E82.

Given the data you posted it returns 3.4.
 
Upvote 0
No it return 5.2 because you would have to count how many value in E range then subtract that number from the total count in O. then Add the sum of E range to O range count.
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,429
Members
448,961
Latest member
nzskater

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