+ Reply to Thread
Results 1 to 7 of 7

counting Charactors

Hybrid View

  1. #1
    Registered User
    Join Date
    04-28-2009
    Location
    Minneapolis, mn
    MS-Off Ver
    Excel 2003
    Posts
    3

    counting Charactors

    How do you write a function to count the number of times the name is in this list? I'd like it to return 13-

    BALTHAZOR, JESSE C37442927
    BALTHAZOR, JESSE C37523578
    BALTHAZOR, JESSE C37552945
    BALTHAZOR, JESSE C37564610
    BALTHAZOR, JESSE C37570239
    BALTHAZOR, JESSE N37518673
    BALTHAZOR, JESSE N37519002
    BALTHAZOR, JESSE N37547983
    BALTHAZOR, JESSE N37550370
    BALTHAZOR, JESSE N37554772
    BALTHAZOR, JESSE N37565060
    BALTHAZOR, JESSE N37569185
    BALTHAZOR, JESSE T37440568

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: counting Charactors

    =countif(a1:a13, "BALTHAZOR, JESSE *")
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    04-28-2009
    Location
    Minneapolis, mn
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: counting Charactors

    great that worked perfectly-

    one more question-

    Now that I've counted the names- I want a function that will count the next column type-


    So I'm getting 13 for how many Balthazor's - now of the 13 how many start with a C?
    BALTHAZOR, JESSE C37442927
    BALTHAZOR, JESSE C37523578
    BALTHAZOR, JESSE C37552945
    BALTHAZOR, JESSE C37564610
    BALTHAZOR, JESSE C37570239
    BALTHAZOR, JESSE N37518673
    BALTHAZOR, JESSE N37519002
    BALTHAZOR, JESSE N37547983
    BALTHAZOR, JESSE N37550370
    BALTHAZOR, JESSE N37554772
    BALTHAZOR, JESSE N37565060
    BALTHAZOR, JESSE N37569185
    BALTHAZOR, JESSE T37440568

    I have =COUNTIF(Sheet3!A:A, "BALTHAZOR, JESSE") then I want to add of the ones that say Balthazor, Jesse how many start with a C

    Thanks for all the great help

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: counting Charactors

    C'mon, now: =countif(a1:a13, "BALTHAZOR, JESSE C*")

  5. #5
    Registered User
    Join Date
    04-28-2009
    Location
    Minneapolis, mn
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: counting Charactors

    That works if the data was all in one column. they are in 2 columns

    So I need to look at both column A and B or a way to merge the two

  6. #6
    Forum Contributor
    Join Date
    10-08-2006
    Location
    Walnut, CA
    MS-Off Ver
    2003,2010, Office 365
    Posts
    114

    Re: counting Charactors

    =sumproduct(isnumber(search("balthazor, jesse",a1:a13))*(left(b1:b13,1)="c"))

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: counting Charactors

    That works if the data was all in one column. they are in 2 columns
    That's why we prefer people post workbooks.

    If the entire name columns contains only names with no trailing (or leading) spaces, then

    =sumproduct( (a1:a13="balthazor, jesse") * (left(b1:b13,1)="c") )

    And in that case, the first formula can be =countif(a1:a13, "BALTHAZOR, JESSE"), which is must faster than a wildcard comparison.

+ 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