#1   Report Post  
heater
 
Posts: n/a
Default Countif ...

I have a column with phone numbers. I want to count how many phone numbers
have the area code "214" and "972".
  #2   Report Post  
heater
 
Posts: n/a
Default

Thanks, the first formula worked.

"Jason Morin" wrote:

The formula depends on how your phone numbers are formatted and whether they
are text or actual 10 digit numbers. For example, if they are text and you
simply need the first 3 numbers in the cell, try:

=SUMPRODUCT(--(LEFT(A1:A10,3)={"214","972"}))

If the area codes are enclosed in parentheses, you could use:

=SUM(COUNTIF(A1:A10,{"*(214)*","*(972)*"}))

Posting some examples will help readers give you a formula that works.

HTH
Jason
Atlanta, GA

"heater" wrote:

I have a column with phone numbers. I want to count how many phone numbers
have the area code "214" and "972".

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

The formula depends on how your phone numbers are formatted and whether they
are text or actual 10 digit numbers. For example, if they are text and you
simply need the first 3 numbers in the cell, try:

=SUMPRODUCT(--(LEFT(A1:A10,3)={"214","972"}))

If the area codes are enclosed in parentheses, you could use:

=SUM(COUNTIF(A1:A10,{"*(214)*","*(972)*"}))

Posting some examples will help readers give you a formula that works.

HTH
Jason
Atlanta, GA

"heater" wrote:

I have a column with phone numbers. I want to count how many phone numbers
have the area code "214" and "972".

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 COMBINATION?? Heather Excel Worksheet Functions 1 April 26th 05 02:44 AM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM
countif, again Liz G Excel Worksheet Functions 2 November 1st 04 11:20 PM


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