Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 130
Default Greater than or less than formula

I need a formula that picks up anything 1-29 (not zero). At least 1, but
less than 29. I had =COUNTIF(Terminations!O:O,"<=29") was working fine,
except another formula is creating 0's (zeros) to come into this column. The
zeros can be there, I just don't want them counted.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 171
Default Greater than or less than formula

You could just subtract out those that are 0 :
=COUNTIF(Terminations!O:O,"<=29")-COUNTIF(Terminations!O:O,0)

"Cindy" wrote:

I need a formula that picks up anything 1-29 (not zero). At least 1, but
less than 29. I had =COUNTIF(Terminations!O:O,"<=29") was working fine,
except another formula is creating 0's (zeros) to come into this column. The
zeros can be there, I just don't want them counted.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Greater than or less than formula

simply subtract the zeroes

=COUNTIF(terminations!O:O,"<=29")-COUNTIF(terminations!O:O,"=0")

Mike

"Cindy" wrote:

I need a formula that picks up anything 1-29 (not zero). At least 1, but
less than 29. I had =COUNTIF(Terminations!O:O,"<=29") was working fine,
except another formula is creating 0's (zeros) to come into this column. The
zeros can be there, I just don't want them counted.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Greater than or less than formula

A different aproach:
=SUMPRODUCT(N($O:$O<=29),N($O$O=1))
--
Adilson Soledade


"Mike H" wrote:

simply subtract the zeroes

=COUNTIF(terminations!O:O,"<=29")-COUNTIF(terminations!O:O,"=0")

Mike

"Cindy" wrote:

I need a formula that picks up anything 1-29 (not zero). At least 1, but
less than 29. I had =COUNTIF(Terminations!O:O,"<=29") was working fine,
except another formula is creating 0's (zeros) to come into this column. The
zeros can be there, I just don't want them counted.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula Greater than Less Than Cindy Excel Discussion (Misc queries) 4 January 9th 08 08:11 PM
Greater than Less than formula Help with Check Mark!! Excel Discussion (Misc queries) 3 August 22nd 06 07:05 PM
FORMULA FOR if(GREATER THAN, BUT LESS THAN,THIS,OR THAT MINI MART Excel Worksheet Functions 2 June 4th 06 05:22 PM
Greater than formula Tracey Excel Worksheet Functions 2 January 5th 06 09:02 PM
formula for Greater of C or D X E [email protected] Excel Discussion (Misc queries) 2 October 11th 05 07:26 PM


All times are GMT +1. The time now is 06:20 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"