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
 
How about?

=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 greater than zero, and add the sum of the greater than zero cells in E69:E82.

It would be helpful if you posted a less ambiguous data sample, without the same number of zero and non zero values in column E, and a detailed explanation of the expected result.
 
Upvote 0

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Or...

=COUNTIF(O69:O82,">0")-COUNTIF(E69:E82,">0")+(SUMIF(O69:O82,">0",E69:E76))
 
Upvote 0
So it looks to me the answer would be 3.4?

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

what did you finally decide on?
 
Upvote 0

Forum statistics

Threads
1,216,077
Messages
6,128,679
Members
449,463
Latest member
Jojomen56

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