#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Countif function

Dear Sir'

I have below excell sheet :
Bus ID Company Name Bus Location

1 Asia Operational
2 CMTC Marka
3 Thilal Operational
4 Asia Operational

i need to count hoew mwny buses from (Asia) company is in (Operational) location .

I need your quick reply ;

Thanks and Regards;
Noor
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 747
Default Countif function

assuned company names are in col B and bus location in col C

=COUNT(IF((B2:B10="asia")*(C2:C10="operational"),) ) ( use ctrl +
shift + enter )



On Nov 30, 11:09*pm, Noor Abunijim wrote:
Dear Sir'

I have below excell sheet :
Bus ID * Company Name * * Bus Location

1 * * * *Asia * * * * * * *Operational
2 * * * *CMTC * * * * * * * Marka
3 * * * *Thilal * * * * * * Operational
4 * * * *Asia * * * * * * * Operational

i need to count hoew mwny buses from (Asia) company is in (Operational) location .

I need your quick reply ;

Thanks and Regards;
Noor


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Countif function

Try this:

=SUMPRODUCT(--(B1:B4="Asia"),--(C1:C4="Operational"))

Better to use cells to hold the criteria:

E1 = Asia
F1 = Operational

=SUMPRODUCT(--(B1:B4=E1),--(C1:C4=F1))

If you're using Excel 2007:

=COUNTIFS(B1:B4,E1,C1:C4,F1)

--
Biff
Microsoft Excel MVP


<Noor Abunijim wrote in message ...
Dear Sir'

I have below excell sheet :
Bus ID Company Name Bus Location

1 Asia Operational
2 CMTC Marka
3 Thilal Operational
4 Asia Operational

i need to count hoew mwny buses from (Asia) company is in (Operational)
location .

I need your quick reply ;

Thanks and Regards;
Noor



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default Countif function

Try this
=SUMPRODUCT(--(B2:B5="Asia")*(C2:C5="Operational"))

"Noor Abunijim" wrote:

Dear Sir'

I have below excell sheet :
Bus ID Company Name Bus Location

1 Asia Operational
2 CMTC Marka
3 Thilal Operational
4 Asia Operational

i need to count hoew mwny buses from (Asia) company is in (Operational) location .

I need your quick reply ;

Thanks and Regards;
Noor

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Countif function

Hi,

In addition to using SUMPRODUCT() and COUNTIF(), you can also work with
pivot tables.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Noor Abunijim" wrote in message ...
Dear Sir'

I have below excell sheet :
Bus ID Company Name Bus Location

1 Asia Operational
2 CMTC Marka
3 Thilal Operational
4 Asia Operational

i need to count hoew mwny buses from (Asia) company is in (Operational)
location .

I need your quick reply ;

Thanks and Regards;
Noor


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 falcon491 Excel Worksheet Functions 2 November 9th 06 09:35 PM
please help how to combine IF function with Countif function Dinesh Excel Worksheet Functions 6 March 30th 06 08:28 PM
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
Embed a countif function in subtotal function? Stuck at work Excel Worksheet Functions 1 February 14th 06 03:19 AM
CountIF function mdk Excel Discussion (Misc queries) 1 July 19th 05 04:33 PM


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