Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Cowtoon
 
Posts: n/a
Default problem with countif

I'm wanting to count the number of cells that have a value between 10 and
12.1. The current range (before I add any more is F2:F19.

Can anyone see what's wrong with this formula. I'm stumped and it's
probably sooooo simple. Fortunately, the sample is small enough to see that
the results are wrong. Correct result is 3, however, it generates a result
of 11. Can someone help. Please and thanks.

=COUNTIF(F2:F19,"<12.1")-COUNTIF(F2:F19,"10")

The data in the range is:
9
3
3
5
15
10
1
8
7
8
11
12
10
0
2
12
1
6
  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
try:
=COUNTIF(F2:F19,"<12.1")-COUNTIF(F2:F19,"<=10")
if 12.1 and 10 both should be excluded


--
Regards
Frank Kabel
Frankfurt, Germany

"Cowtoon" schrieb im Newsbeitrag
...
I'm wanting to count the number of cells that have a value between 10

and
12.1. The current range (before I add any more is F2:F19.

Can anyone see what's wrong with this formula. I'm stumped and it's
probably sooooo simple. Fortunately, the sample is small enough to

see that
the results are wrong. Correct result is 3, however, it generates a

result
of 11. Can someone help. Please and thanks.

=COUNTIF(F2:F19,"<12.1")-COUNTIF(F2:F19,"10")

The data in the range is:
9
3
3
5
15
10
1
8
7
8
11
12
10
0
2
12
1
6


  #3   Report Post  
Alan
 
Posts: n/a
Default

Try
=COUNTIF(F2:F19,"<12.1")-COUNTIF(F2:F19,""&10)
Regards,
"Cowtoon" wrote in message
...
I'm wanting to count the number of cells that have a value between 10 and
12.1. The current range (before I add any more is F2:F19.

Can anyone see what's wrong with this formula. I'm stumped and it's
probably sooooo simple. Fortunately, the sample is small enough to see
that
the results are wrong. Correct result is 3, however, it generates a
result
of 11. Can someone help. Please and thanks.

=COUNTIF(F2:F19,"<12.1")-COUNTIF(F2:F19,"10")

The data in the range is:
9
3
3
5
15
10
1
8
7
8
11
12
10
0
2
12
1
6



  #4   Report Post  
nycexcelmonkey
 
Posts: n/a
Default


=countif(f2:f19,"<12.1")-countif(f2:f19,"<=10")


--
nycexcelmonkey
------------------------------------------------------------------------
nycexcelmonkey's Profile: http://www.excelforum.com/member.php...o&userid=16256
View this thread: http://www.excelforum.com/showthread...hreadid=276828

  #5   Report Post  
JBoulton
 
Posts: n/a
Default

This works:

=SUMPRODUCT(--(F2:F19<=12),--(F2:F1910))

"Cowtoon" wrote:

I'm wanting to count the number of cells that have a value between 10 and
12.1. The current range (before I add any more is F2:F19.

Can anyone see what's wrong with this formula. I'm stumped and it's
probably sooooo simple. Fortunately, the sample is small enough to see that
the results are wrong. Correct result is 3, however, it generates a result
of 11. Can someone help. Please and thanks.

=COUNTIF(F2:F19,"<12.1")-COUNTIF(F2:F19,"10")

The data in the range is:
9
3
3
5
15
10
1
8
7
8
11
12
10
0
2
12
1
6



  #6   Report Post  
Cowtoon
 
Posts: n/a
Default

This is what I ended up using.
Thank you all for your help.
One of you posted this formula. Thanks.
Diana

=COUNTIF(G2:G16,"<12.1")-COUNTIF(G2:G16,"<=10")

"JBoulton" wrote:

This works:

=SUMPRODUCT(--(F2:F19<=12),--(F2:F1910))

"Cowtoon" wrote:

I'm wanting to count the number of cells that have a value between 10 and
12.1. The current range (before I add any more is F2:F19.

Can anyone see what's wrong with this formula. I'm stumped and it's
probably sooooo simple. Fortunately, the sample is small enough to see that
the results are wrong. Correct result is 3, however, it generates a result
of 11. Can someone help. Please and thanks.

=COUNTIF(F2:F19,"<12.1")-COUNTIF(F2:F19,"10")

The data in the range is:
9
3
3
5
15
10
1
8
7
8
11
12
10
0
2
12
1
6

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
Row Autofit problem Excel 2003 Matthias Klaey Excel Discussion (Misc queries) 0 January 19th 05 05:33 PM
Countif ??? terryv Excel Worksheet Functions 2 November 8th 04 09:03 AM
countif reno Excel Worksheet Functions 5 November 5th 04 12:20 PM
Countif Problem Alicia Excel Worksheet Functions 3 November 4th 04 10:01 AM
countif, again Liz G Excel Worksheet Functions 2 November 1st 04 11:20 PM


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