+ Reply to Thread
Results 1 to 6 of 6

Counting up the text values

  1. #1
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Counting up the text values

    Evening,

    Any help would be greatfully appreciated:

    I'm using this formula:

    COUNTIF(H:H,B13)

    This allows me to count up how many times the value of B13 is in column H. What I would like to do is count up all the other values in column H which aren't B13 - there's anything up to 25 different values this could be.

    Any ideas please?

    Many thanks
    Last edited by Cmorgan; 11-03-2011 at 04:08 PM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Counting up the text values

    Try =COUNTIF(H:H,"<>"&B13)

  3. #3
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Re: Counting up the text values

    Thanks for this, but there's something wrong with this as it comes back with a figure of over a million, when it should be nearer 45, any ideas?

    Thanks for your help.

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Counting up the text values

    That is because you have used H:H which selects the entire column.

    Maybe use the real length of the range like H1:H500 ?

    Or if you have no blanks in your range =COUNTIF(H:H,"<>"&B13)-countblank(H:H)

  5. #5
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Re: Counting up the text values

    That's perfect now when I put the range in, many thanks.

  6. #6
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Counting up the text values

    Glad to help and thanks for the rep

+ 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