Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Daesthai
 
Posts: n/a
Default combining countif with AND function

I'm a bit confused combining these two functions.

What would I use if I wanted to count the cells in a table that are greater
than 1.5 but lower than 2.5?

=countif(B4:H28,AND("1.5","<2.5")) gives me back an incorrect count, so
I'm doing something wrong.

=)
  #2   Report Post  
Anne Troy
 
Posts: n/a
Default

See the example he
http://www.officearticles.com/excel/...ft_excel.h tm
************
Anne Troy
www.OfficeArticles.com

"Daesthai" wrote in message
...
I'm a bit confused combining these two functions.

What would I use if I wanted to count the cells in a table that are
greater
than 1.5 but lower than 2.5?

=countif(B4:H28,AND("1.5","<2.5")) gives me back an incorrect count, so
I'm doing something wrong.

=)



  #3   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Try this:

=COUNTIF(B4:H28,"1.5")-COUNTIF(B4:H28,"2.5")

Biff

"Daesthai" wrote in message
...
I'm a bit confused combining these two functions.

What would I use if I wanted to count the cells in a table that are
greater
than 1.5 but lower than 2.5?

=countif(B4:H28,AND("1.5","<2.5")) gives me back an incorrect count, so
I'm doing something wrong.

=)



  #4   Report Post  
Biff
 
Posts: n/a
Default

Ooops!

You wanted <2.5, so:

=COUNTIF(B4:H28,"1.5")-COUNTIF(B4:H28,"2.4")

Biff

"Biff" wrote in message
...
Hi!

Try this:

=COUNTIF(B4:H28,"1.5")-COUNTIF(B4:H28,"2.5")

Biff

"Daesthai" wrote in message
...
I'm a bit confused combining these two functions.

What would I use if I wanted to count the cells in a table that are
greater
than 1.5 but lower than 2.5?

=countif(B4:H28,AND("1.5","<2.5")) gives me back an incorrect count, so
I'm doing something wrong.

=)





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



All times are GMT +1. The time now is 10:37 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"