+ Reply to Thread
Results 1 to 5 of 5

Count cells that contain both numbers & text in same cell

  1. #1
    Registered User
    Join Date
    07-24-2012
    Location
    Owings Mills, MD
    MS-Off Ver
    Excel 2007
    Posts
    3

    Count cells that contain both numbers & text in same cell

    I have data that I an trying to sort through. All cells have text but some have a number after the text in the same cell. I need to count the number of cells (or rows) that contain a number after the text. For example, this would be the contents of Column 1:

    FirstItem
    FirssstItem
    FirstItem123
    Firstttt794
    FirstttItem
    FirrrstItem806
    FFirst
    FirrsttIte

    Out of these I need a formula to find that there are 3 cells (or rows) that contain numbers. All the solutions that I can find will only tell me if the cell contains numbers or text by itself. And I can't search for individual characters because the numbers and not consistent in any way. Any ideas would help. Thanks.

    -C

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Count cells that contain both numbers & text in same cell

    In a helper column, use the below

    =IFERROR(LOOKUP(99^99,--("0"&MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")),ROW($1:$10000)))),"")

    this will return blanks if there are no numbers in your list, else it'll separate the number from the alphanumeric text.

    After that the COUNT function on this helper column will do the trick!
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    07-24-2012
    Location
    Owings Mills, MD
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Count cells that contain both numbers & text in same cell

    That's perfect, works great!! Thank you!

    -C

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Count cells that contain both numbers & text in same cell

    @ cnjstewart

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  5. #5
    Registered User
    Join Date
    07-24-2012
    Location
    Owings Mills, MD
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Count cells that contain both numbers & text in same cell

    Didn't know that. I will remember to do that in the future. Thanks.

+ 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