+ Reply to Thread
Results 1 to 3 of 3

Countif ...

  1. #1
    heater
    Guest

    Countif ...

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

  2. #2
    heater
    Guest

    RE: Countif ...

    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. #3
    Jason Morin
    Guest

    RE: Countif ...

    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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1