+ Reply to Thread
Results 1 to 5 of 5

Help with a COUNTIF LOWER forumula

  1. #1
    Registered User
    Join Date
    05-18-2012
    Location
    Exeter
    MS-Off Ver
    Excel 2010
    Posts
    20

    Help with a COUNTIF LOWER forumula

    Hi,

    I've developed a formula that recognises is a cell is lower case:

    =(NOT(EXACT(UPPER(J2),J2)))=AND(NOT(ISBLANK(J2)))

    But I want this forumla to work with J2:N2, so meaning if one of these 5 cells has lower case letter in it, it will pick it up. I've tried just putting J2:N2 where I have J2 but this doesn't work. I've probably gone round the houses to get what I want but any help would be greatly appreciated.

    Thanks.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Help with a COUNTIF LOWER forumula

    try this array confirmed with ctrl+shift+enter
    =SUM(IF(ISERROR(FIND(LOWER(J2:N2),J2:N2)),0,1))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    05-18-2012
    Location
    Exeter
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Help with a COUNTIF LOWER forumula

    Hi, thank you for your response.

    This forumla just seems to pick up the blanks.

    Just to clarify, what I'm after is a TRUE response if any of the 5 cells (J2:N2) contain a lower case letter.

    I think I may have gone about it the wrong was as my formula is currently whether cell J2 'IS NOT upper case AND is not blank', instead of 'IS lower case'.

    Thanks.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,695

    Re: Help with a COUNTIF LOWER forumula

    I assume you have single letters in the range (or blanks)? If so try this formula to count lower case letters

    =SUMPRODUCT(EXACT(J2:N2,LOWER(J2:N2))*(J2:N2<>""))

    or for TRUE for 1 or more lower case letter

    =SUMPRODUCT(EXACT(J2:N2,LOWER(J2:N2))*(J2:N2<>""))>0
    Audere est facere

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Help with a COUNTIF LOWER forumula

    OOPS i just tested it on filled cells!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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