# FORMULA HELP

Status
Not open for further replies.

#### sitelbanat

##### Board Regular

=IF(COUNTIF(O69:O82,">0"),COUNTIF(O69:O82,">0")+ R85

I need the formula to count how many values between R69:R82 in column R that are greater than 0. Than the rows that have a value >0 go to column E add the total of the selected rows, then add it to R85.

does this make sence?

### Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

#### barry houdini

##### MrExcel MVP

=SUMIF(R69:R82,">0",E69:E82)+R85

#### sitelbanat

##### Board Regular
Well, I only need to add the cells in column E if they have value >0 in column R

#### Oaktree

##### MrExcel MVP
sitelbanat said:
Well, I only need to add the cells in column E if they have value >0 in column R

Isn't that exactly what Barry's formula does?

#### sitelbanat

##### Board Regular

Am sorry for some reason its adding all the cells in column E even though some of the cell have a value < 0. I need the formula to add Column E only if there is a value in column R.

#### sitelbanat

##### Board Regular
for example

Column
R----------------------O
Row
1------ 13,106
2---------3,342
3---------2,328
4---------2,520
5------------0 --------------8
6---------2,354
7--------------0

Total = 5 because no value in R, if the there was a value in R then the total would be 5.8

#### barry houdini

##### MrExcel MVP

Now I'm confused

A few questions...

You have mentioned both column E and column O, which one do you want to use?

Are you trying to count values in this column if the corresponding row in R is greater than zero, or sum them, or something different?

Why does your example give a result of 5 - it looks like you're just counting numbers greater than zero in column R - but then why 5.8?

#### sitelbanat

##### Board Regular

I am trying to count how many cells have a value > 0 between R69:R82. Then the rows that have a value >0 in column R go to those cells in E column. but only the cells that have value > 0. then add E69:E82 but once again only the cells that have a value>0 in column R. Then take the total and add it to R69:R82 total.

#### sitelbanat

##### Board Regular
The formula is still not working. I need to count how many value's between R69:R82 not sum them. But then sum E69:E82 only if that cell has a value in R69:R82. then add that total to R69:R82

is this more clear

Status
Not open for further replies.

Replies
2
Views
254
Replies
3
Views
270
Replies
4
Views
388
Replies
9
Views
461
Replies
4
Views
239

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,163,437
Messages
5,831,625
Members
430,077
Latest member
CoulterM

### 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.

### Which adblocker are you using?

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

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