+ Reply to Thread
Results 1 to 3 of 3

Combining COUNTIF and LEN

  1. #1
    Guido Cole
    Guest

    Combining COUNTIF and LEN

    I need to count the number of cells in a range containing moer than 7
    characters. =COUNTIF((A2:A200),LEN>7)) does not seem to work. Any help would
    be appreciated
    --
    Guido

  2. #2
    JE McGimpsey
    Guest

    Re: Combining COUNTIF and LEN

    One way:

    =SUMPRODUCT(--(LEN(A2:A200)>7))

    For an explanation of "--" see

    http://www.mcgimpsey.com/excel/doubleneg.html

    In article <[email protected]>,
    "Guido Cole" <[email protected]> wrote:

    > I need to count the number of cells in a range containing moer than 7
    > characters. =COUNTIF((A2:A200),LEN>7)) does not seem to work. Any help would
    > be appreciated


  3. #3
    Harlan Grove
    Guest

    Re: Combining COUNTIF and LEN

    JE McGimpsey wrote...
    >One way:
    >
    >=SUMPRODUCT(--(LEN(A2:A200)>7))

    ....

    And another,

    =COUNTIF(A2:A200,REPT("?",7)&"?*") or =COUNTIF(A2:A200,"????????*")

    though this would only count cells containing text. FWIW, cells
    containing numbers with nonterminating decimal fractions always have
    length exceeding 7.


+ 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