#1   Report Post  
Meredith
 
Posts: n/a
Default COUNTIF Function

I would like to look at one column (range1) in excel and if the word
"internal" appears, I would like to then look to the next column (range2) and
count the total number of times the value is between 6 and 10...

Internal 8
Internal 2
External 7

So in this data set, I would like my result to be equal to 1. Both internal
and between 6 and 10. I can do them separately but cannot figure out how to
combine the 2 formulas...

=COUNTIF(range1, "internal")
=COUNTIF(range2,"<=10")-COUNTIF(range2,"<6")

Any help is greatly appreciated.


  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

One way:

=SUMPRODUCT(--(range1="internal"),--(range2=6),--
(range2<=10))

HTH
Jason
Atlanta, GA

-----Original Message-----
I would like to look at one column (range1) in excel and

if the word
"internal" appears, I would like to then look to the

next column (range2) and
count the total number of times the value is between 6

and 10...

Internal 8
Internal 2
External 7

So in this data set, I would like my result to be equal

to 1. Both internal
and between 6 and 10. I can do them separately but

cannot figure out how to
combine the 2 formulas...

=COUNTIF(range1, "internal")
=COUNTIF(range2,"<=10")-COUNTIF(range2,"<6")

Any help is greatly appreciated.


.

  #3   Report Post  
Meredith
 
Posts: n/a
Default

Thank you!

"Jason Morin" wrote:

One way:

=SUMPRODUCT(--(range1="internal"),--(range2=6),--
(range2<=10))

HTH
Jason
Atlanta, GA

-----Original Message-----
I would like to look at one column (range1) in excel and

if the word
"internal" appears, I would like to then look to the

next column (range2) and
count the total number of times the value is between 6

and 10...

Internal 8
Internal 2
External 7

So in this data set, I would like my result to be equal

to 1. Both internal
and between 6 and 10. I can do them separately but

cannot figure out how to
combine the 2 formulas...

=COUNTIF(range1, "internal")
=COUNTIF(range2,"<=10")-COUNTIF(range2,"<6")

Any help is greatly appreciated.


.


  #4   Report Post  
Marc Shivers
 
Posts: n/a
Default

What does the "--" in front of --(range1="internal") do?

"Meredith" wrote:

Thank you!

"Jason Morin" wrote:

One way:

=SUMPRODUCT(--(range1="internal"),--(range2=6),--
(range2<=10))

HTH
Jason
Atlanta, GA

-----Original Message-----
I would like to look at one column (range1) in excel and

if the word
"internal" appears, I would like to then look to the

next column (range2) and
count the total number of times the value is between 6

and 10...

Internal 8
Internal 2
External 7

So in this data set, I would like my result to be equal

to 1. Both internal
and between 6 and 10. I can do them separately but

cannot figure out how to
combine the 2 formulas...

=COUNTIF(range1, "internal")
=COUNTIF(range2,"<=10")-COUNTIF(range2,"<6")

Any help is greatly appreciated.


.


  #5   Report Post  
Marc Shivers
 
Posts: n/a
Default

What does the -- in front of the (range1 = "internal") do?

"Meredith" wrote:

Thank you!

"Jason Morin" wrote:

One way:

=SUMPRODUCT(--(range1="internal"),--(range2=6),--
(range2<=10))

HTH
Jason
Atlanta, GA

-----Original Message-----
I would like to look at one column (range1) in excel and

if the word
"internal" appears, I would like to then look to the

next column (range2) and
count the total number of times the value is between 6

and 10...

Internal 8
Internal 2
External 7

So in this data set, I would like my result to be equal

to 1. Both internal
and between 6 and 10. I can do them separately but

cannot figure out how to
combine the 2 formulas...

=COUNTIF(range1, "internal")
=COUNTIF(range2,"<=10")-COUNTIF(range2,"<6")

Any help is greatly appreciated.


.




  #6   Report Post  
Dave Peterson
 
Posts: n/a
Default

J.E. McGimpsey explains it at his site:
http://mcgimpsey.com/excel/formulae/doubleneg.html



Marc Shivers wrote:

What does the -- in front of the (range1 = "internal") do?

"Meredith" wrote:

Thank you!

"Jason Morin" wrote:

One way:

=SUMPRODUCT(--(range1="internal"),--(range2=6),--
(range2<=10))

HTH
Jason
Atlanta, GA

-----Original Message-----
I would like to look at one column (range1) in excel and
if the word
"internal" appears, I would like to then look to the
next column (range2) and
count the total number of times the value is between 6
and 10...

Internal 8
Internal 2
External 7

So in this data set, I would like my result to be equal
to 1. Both internal
and between 6 and 10. I can do them separately but
cannot figure out how to
combine the 2 formulas...

=COUNTIF(range1, "internal")
=COUNTIF(range2,"<=10")-COUNTIF(range2,"<6")

Any help is greatly appreciated.


.



--

Dave Peterson
  #7   Report Post  
Jason Morin
 
Posts: n/a
Default

See:

http://tinyurl.com/6kyjd

HTH
Jason
Atlanta, Ga

-----Original Message-----
What does the -- in front of the (range1 = "internal")

do?

"Meredith" wrote:

Thank you!

"Jason Morin" wrote:

One way:

=SUMPRODUCT(--(range1="internal"),--(range2=6),--
(range2<=10))

HTH
Jason
Atlanta, GA

-----Original Message-----
I would like to look at one column (range1) in

excel and
if the word
"internal" appears, I would like to then look to

the
next column (range2) and
count the total number of times the value is

between 6
and 10...

Internal 8
Internal 2
External 7

So in this data set, I would like my result to be

equal
to 1. Both internal
and between 6 and 10. I can do them separately but
cannot figure out how to
combine the 2 formulas...

=COUNTIF(range1, "internal")
=COUNTIF(range2,"<=10")-COUNTIF(range2,"<6")

Any help is greatly appreciated.


.


.

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
using countif function to add only a half of a number ryanjh79 Excel Discussion (Misc queries) 9 April 26th 23 03:42 AM
Excel countif function bkcthecat Excel Worksheet Functions 2 March 13th 05 04:57 PM
countif function?? sbrimley Excel Worksheet Functions 4 March 1st 05 12:05 AM
The countif function in Excel 2002. Lounsbud Excel Worksheet Functions 1 November 22nd 04 03:19 PM
hOW TO USE THE AND OPERATOR WITH THE COUNTIF FUNCTION Marty Excel Worksheet Functions 1 November 11th 04 09:45 PM


All times are GMT +1. The time now is 02:30 PM.

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"