If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Countif problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-22-04, 10:24
Kabuki_jo Kabuki_jo is offline
Registered User
 
Join Date: Oct 2003
Posts: 61
Post Countif problem

I have a spreadsheet in which i have some numbers in a column for example like this

3
4
6
8
10

Now i want to do a countif on this and only want to count whenever the number is between five and nine (so the answer should be two)

How do i do this within the countif formula. What i do not want is to add an extra column with for instance an IF or an AND formula and do the countif on that extra column. I want to have this solved within the COUNTIF criteria
__________________
Nobody dies a virgin because life screws us all!
Reply With Quote
  #2 (permalink)  
Old 03-22-04, 10:37
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Use this formula (adjust range to suit)

=SUM(($A$1:$A$10<9)*($A$1:$A$10>5))

But be sure to confirm with CTRL + SHIFT + ENTER (CSE, also called array-entered), rather than ENTER.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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