Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default countif with and

Hi Jeff,

I need to workout with countif And together here is my requirement
A B
hello world
hello world
hello world
hello world
hello globe
hello globe
hello globe
hello country
hello country
hello country
hello country
hello country

I want to display the count of hello+world or hello+globe or
hello+country

I tried with following possibilities
1.countif(and())
2.count(if(and))
3.count(if())
4.count(and())
5.sum(if(and())
6.sumproduct
and may other possibilities
could you get me the exact formula which could result my required output

I've mailed you from my mail id which bounced back
...



*** Sent via Developersdex
http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default countif with and

=sumproduct(--(A1:A100="Hello"),--(B1:B100="World"))

"Hello" and "World" could be replace by cell references that hold the term
you are counting.

=sumproduct(--($A$1:$A$100=M1),--($B$1:$B$100=N1))

N1: World
M1: Hello


--
Regards,
Tom Ogilvy



"Kamal Teja" wrote:

Hi Jeff,

I need to workout with countif And together here is my requirement
A B
hello world
hello world
hello world
hello world
hello globe
hello globe
hello globe
hello country
hello country
hello country
hello country
hello country

I want to display the count of hello+world or hello+globe or
hello+country

I tried with following possibilities
1.countif(and())
2.count(if(and))
3.count(if())
4.count(and())
5.sum(if(and())
6.sumproduct
and may other possibilities
could you get me the exact formula which could result my required output

I've mailed you from my mail id which bounced back
...



*** Sent via Developersdex
http://www.developersdex.com ***

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default countif with and

Check out this link on sumproduct...

http://www.xldynamic.com/source/xld.SUMPRODUCT.html
--
HTH...

Jim Thomlinson


"Kamal Teja" wrote:

Hi Jeff,

I need to workout with countif And together here is my requirement
A B
hello world
hello world
hello world
hello world
hello globe
hello globe
hello globe
hello country
hello country
hello country
hello country
hello country

I want to display the count of hello+world or hello+globe or
hello+country

I tried with following possibilities
1.countif(and())
2.count(if(and))
3.count(if())
4.count(and())
5.sum(if(and())
6.sumproduct
and may other possibilities
could you get me the exact formula which could result my required output

I've mailed you from my mail id which bounced back
...



*** Sent via Developersdex
http://www.developersdex.com ***

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
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") sctroy Excel Discussion (Misc queries) 2 September 25th 05 04:13 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
COUNTIF - #DIV/01 PW11111 Excel Discussion (Misc queries) 7 July 21st 05 11:09 AM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM


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