Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
FinChase
 
Posts: n/a
Default Countif with dynamic criteria

I am trying to write a countif statement where the criteria is a range of
numbers from 30 - 39. This is what I've written:

=countif(e2:e1956,"29<40")

Right now it is counting everything over 29.
  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi

two methods
=COUNTIF(E2:E1956,""&29)-COUNTIF(E2:E1956,""&39)

or
=SUMPRODUCT(--(E2:E195629),--(E2:E1956<40))

Cheers
JulieD

"FinChase" wrote in message
...
I am trying to write a countif statement where the criteria is a range of
numbers from 30 - 39. This is what I've written:

=countif(e2:e1956,"29<40")

Right now it is counting everything over 29.



  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

=SUMPRODUCT(--(E2:A195629),--(E2:A1956<40))

or

=COUNTIF(E2:A1956,"29")-COUNTIF(E2:A1956,"=40")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"FinChase" wrote in message
...
I am trying to write a countif statement where the criteria is a range of
numbers from 30 - 39. This is what I've written:

=countif(e2:e1956,"29<40")

Right now it is counting everything over 29.



  #5   Report Post  
FinChase
 
Posts: n/a
Default

Thanks to everyone who replied. It all helped.

"Don Guillett" wrote:

try
=sumproduct((e2:e195629)*(e2:31956<40))

--
Don Guillett
SalesAid Software

"FinChase" wrote in message
...
I am trying to write a countif statement where the criteria is a range of
numbers from 30 - 39. This is what I've written:

=countif(e2:e1956,"29<40")

Right now it is counting everything over 29.






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
use a date range as criteria in a countif formula mbparks Excel Worksheet Functions 3 January 2nd 05 11:06 PM
Countif with multiple criteria and multiple worksheets JJ Excel Worksheet Functions 1 December 28th 04 06:37 PM
COUNTIF MEETING TWO CRITERIA eg>5 AND <10.1 John Higgins Excel Worksheet Functions 2 December 22nd 04 01:19 AM
countif, dinamic criteria Stan Altshuller Excel Worksheet Functions 2 December 8th 04 08:22 PM
How do I get the COUNTIF criteria to recognize only month and yea. Omega Excel Worksheet Functions 4 November 6th 04 07:22 AM


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