Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sum rows where dollar amount is greater than zero

Status
Not open for further replies.

cuetzpalin

Programmer
Jun 5, 2002
99
US
Hello,

I have a spreadsheet with over 1000 rows and one of the columns is a dollar amount. Not all rows have a dollar amount greater than zero. What I'm trying to do is count all the rows that have a dollar amount. Can you help me please?

Thanks!
Ed
 





Hi,

Check out the SUMIF function.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
I would do a count on all the column rows. Nest an if statement in the COUNT (XXX) area and that should take care of your problem. That should give you the number you need.
I'd give you exact details, but I'm OoO on mobile and can't get to Excel.
Hope this helps
cckens
 
I figured it out! I used the COUNTIF function....

basically looks like this...

COUNTIF(B2:B1501,">0")

Thanks for the responses!
 




Sorry, I refered your to SUMIF when you needed COUNTIF (same IFy principle ;-) )

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
In your defense, Skip, the Title of the thread is "Sum rows where dollar amount is greater than zero".

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ 181-2886 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top