Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8458613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:07:38+00:00 2026-06-10T13:07:38+00:00

I need a way to count numbers and letters separately within one cell. For

  • 0

I need a way to count numbers and letters separately within one cell.

For example, if a cell contains 1234567ABC I need to be able to output this as

  • “7 Numbers” and
  • “3 Letters”.

I can’t think of a way to use the len() function that would work, and countif only counts the cells themselves.

Any help would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T13:07:39+00:00Added an answer on June 10, 2026 at 1:07 pm

    If each cell is filled only with numbers and letters, a quick non-vba way to accomplish this is to nest a substitute function 10 times to remove the 10 numerical characters. what you’re left with is alpha only. Then you can len() the alpha text / subtract that number from the original length to get the numerical length.

    Assuming “1234567ABC” is in cell A1:

    This formula gives the number of letters. (3)

    =LEN(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,0,""),1,""),2,""),3,""),4,""),5,""),6,""),7,""),8,""),9,""))
    

    This formula gives the total numbers: (7)

    =LEN(A1)-LEN(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,0,""),1,""),2,""),3,""),4,""),5,""),6,""),7,""),8,""),9,""))
    

    If you want to start handling the data in other ways / any more in depth, a VBA solution will likely be required.

    Note

    To meet requirements in your original post, add this suffix to the end of the above formulas:

    =x & " Numbers / Letters" 
    

    Where x = the above two formulas. this will add the text after the calculated number.

    Further Reading:

    The following link details a VBA UDF that does something similar:
    http://www.mrexcel.com/forum/excel-questions/16364-how-remove-numbers.html

    Additional Update (thanks lori_m)

    This formula is a LOT easier to read / update:

    =SUM(LEN(A1)-LEN(SUBSTITUTE(A1,{1,2,3,4,5,6,7,8,9,0},"")))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a fast way to count the number of bits in an integer
I need a way to make word do a word count but to not
I need a way to count the number of pages of a PDF in
I am developing an app where I need to show a count. This count
Given range x, y. I need to count all numbers in between and are
I'm searching for a way to count unique digits efficiently with a one liner.
I need a way to change the specific value of a column of a
I need a way in my Chrome extension to know when the browser is
I need a way to take text from a EditText as soon as the
it need a way to call function whose name is stored in a string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.