+ Reply to Thread
Results 1 to 6 of 6

count only numbers

  1. #1
    Forum Contributor
    Join Date
    09-19-2007
    Location
    Beirut
    MS-Off Ver
    0365 MSO Version 2109
    Posts
    207

    count only numbers

    hello all,

    suppose i have a cell of mixed text and numbers such as

    thomas3650,bww 520,500240

    what formula i need to count only numbers
    in this case it is (3) what i am looking for

    thanks

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: count only numbers

    If every term has a number (and poss. text) and all values are delimited by a comma then count the commas and add 1

    =1+LEN(A1)-LEN(SUBSTITUTE(A1,",",""))

  3. #3
    Forum Contributor
    Join Date
    09-19-2007
    Location
    Beirut
    MS-Off Ver
    0365 MSO Version 2109
    Posts
    207

    Re: count only numbers

    suppose i was able to remove text to become soomething like
    a b c d
    3650 320 500240

    how do i get (3) in d

    thanks

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: count only numbers

    see COUNT function

  5. #5
    Registered User
    Join Date
    02-22-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: count only numbers

    Hi Donkeote,

    I tried your Len formula and offcourse it worked. But I am unable to understand the logic behind the formula. Can you please explain for me in simple terms what does each part of that formula mean
    =1+LEN(D26)-LEN(SUBSTITUTE(D26,",","")). I am at the beginners level in excel and trying to learn more. Thus, I want to be clear about the formula set up.

    Thanks
    MSD

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: count only numbers

    MSD_2008, if you have your own question please ask in your own thread.

    If you feel this thread is esp. relevant to your own question provide a link to it from your own.

    Thanks,

+ 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