#1   Report Post  
Posted to microsoft.public.excel.misc
Chip Smith
 
Posts: n/a
Default countif maybe

i need to do a count based on two differnt criteria and two different
ranges...like a =countif((range,criteria)&(range,criteria)) or something of
that nature
--
--Chip Smith--
MVP Wannabe :)
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default countif maybe

=SUMPRODUCT(--(rng1="criteria1"),--(rng2="criteria2"))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Chip Smith" wrote in message
...
i need to do a count based on two differnt criteria and two different
ranges...like a =countif((range,criteria)&(range,criteria)) or something

of
that nature
--
--Chip Smith--
MVP Wannabe :)



  #3   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default countif maybe

If you just want the SUM of the two counts, then........

=countif(range,criteria)+countif(range,criteria)

Vaya con Dios,
Chuck, CABGx3



"Chip Smith" wrote:

i need to do a count based on two differnt criteria and two different
ranges...like a =countif((range,criteria)&(range,criteria)) or something of
that nature
--
--Chip Smith--
MVP Wannabe :)

  #4   Report Post  
Posted to microsoft.public.excel.misc
Toppers
 
Posts: n/a
Default countif maybe

Look at SUMPRODUCT

=SUMPRODUCT(--(A1:A100="Criteria1"),--(D1:D100="criteria2"))

Ranges must be same dimensions (rows/columns).

"Chip Smith" wrote:

i need to do a count based on two differnt criteria and two different
ranges...like a =countif((range,criteria)&(range,criteria)) or something of
that nature
--
--Chip Smith--
MVP Wannabe :)

  #5   Report Post  
Posted to microsoft.public.excel.misc
Chip Smith
 
Posts: n/a
Default countif maybe

no i need it to meet both criterias in order for it to count them...maybe a
macro would suite better for this?

--
--Chip Smith--
MVP Wannabe :)


"CLR" wrote:

If you just want the SUM of the two counts, then........

=countif(range,criteria)+countif(range,criteria)

Vaya con Dios,
Chuck, CABGx3



"Chip Smith" wrote:

i need to do a count based on two differnt criteria and two different
ranges...like a =countif((range,criteria)&(range,criteria)) or something of
that nature
--
--Chip Smith--
MVP Wannabe :)



  #6   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default countif maybe

Hi!

=SUMPRODUCT(--(Range1=Criteria1),--(Range2=Criteria2))

Ranges cannot be entire columns ---- A:A (entire rows is ok ---- 1:1)
Ranges must be the exact same size: Range1 = A1:A10 ---- Range2 = H1:H10 or
A1:A10 ---- H11:H20
If the criteria is a text value enclose it in quotes ---- "Green"
If the criteria is a numeric value don't enclose it in quotes ---- 10

Biff

"Chip Smith" wrote in message
...
i need to do a count based on two differnt criteria and two different
ranges...like a =countif((range,criteria)&(range,criteria)) or something
of
that nature
--
--Chip Smith--
MVP Wannabe :)



  #7   Report Post  
Posted to microsoft.public.excel.misc
Chip Smith
 
Posts: n/a
Default countif maybe

now what if one of the arrays is in the format of a date mm/yy or as mmm? hat
wouldn't be considered text, would it??
--
--Chip Smith--
MVP Wannabe :)


"Bob Phillips" wrote:

=SUMPRODUCT(--(rng1="criteria1"),--(rng2="criteria2"))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Chip Smith" wrote in message
...
i need to do a count based on two differnt criteria and two different
ranges...like a =countif((range,criteria)&(range,criteria)) or something

of
that nature
--
--Chip Smith--
MVP Wannabe :)




  #8   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default countif maybe

It depends on if it is text, if you type in January in a cell it is text, if
you type in 01/01/06 in a cell and format it to mmmm which would read as
January it is not text

--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com


"Chip Smith" wrote in message
...
now what if one of the arrays is in the format of a date mm/yy or as mmm?
hat
wouldn't be considered text, would it??
--
--Chip Smith--
MVP Wannabe :)


"Bob Phillips" wrote:

=SUMPRODUCT(--(rng1="criteria1"),--(rng2="criteria2"))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Chip Smith" wrote in message
...
i need to do a count based on two differnt criteria and two different
ranges...like a =countif((range,criteria)&(range,criteria)) or
something

of
that nature
--
--Chip Smith--
MVP Wannabe :)






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
CountIf Function Help Needed Mark Excel Worksheet Functions 4 January 30th 06 03:37 AM
Countif Formula /Sort Bug??? orcfodder Excel Discussion (Misc queries) 2 January 12th 06 10:04 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM


All times are GMT +1. The time now is 12:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"