+ Reply to Thread
Results 1 to 5 of 5

Mix of text and numbers

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    90

    Mix of text and numbers

    Hi, I have a cell containing the following, (cell A1) 013P3U11F.
    is there any way to separate the letters from the numbers OR count how may letters are in the cell, OR to sum the numbers and tell me how many numbers are in the cell.
    Thanks,
    Regards,
    Richard.
    Last edited by warston; 09-24-2019 at 04:13 AM.

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Mix of text and numbers

    See these:
    https://www.extendoffice.com/documen...s-in-cell.html
    https://www.ablebits.com/office-addi...r-from-string/
    https://www.extendoffice.com/documen...ic-string.html
    Click the * to say thanks.

  3. #3
    Registered User
    Join Date
    04-18-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    90

    Re: Mix of text and numbers

    Thank you PaulM100 for pointing me in the right direction and solving my problem, I have added a reputation.
    Regards,
    Warston.

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Mix of text and numbers

    Here's a couple of User Defined Functions to do exactly what you want:

    Please Login or Register  to view this content.
    To return only text:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    To return length of text only:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    To return only numbers:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    To return count of numeric digits:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    To return sum of numeric digits:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Attachment 642623
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  5. #5
    Registered User
    Join Date
    04-18-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    90

    Re: Mix of text and numbers

    Thank you Olly.
    Regards,
    Warston.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA to convert a range from numbers to numbers stored as text (Text to Columns)
    By tantcu in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-06-2017, 05:50 PM
  2. Replies: 11
    Last Post: 04-10-2017, 06:23 AM
  3. Replies: 4
    Last Post: 10-11-2016, 01:51 PM
  4. [SOLVED] make Userform entries with just numbers stay as text and not numbers upon pasting
    By vpan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-01-2016, 02:13 PM
  5. [SOLVED] Marco to convert numbers stored as text to numbers and dates stored as text to numbers
    By a2424 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-22-2014, 10:19 AM
  6. [SOLVED] [SOLVED] Macro/Wildcard to remove only numbers excluding text with numbers
    By indianhp in forum Word Programming / VBA / Macros
    Replies: 6
    Last Post: 06-21-2013, 08:16 AM
  7. [SOLVED] Convert all numbers stored as text or custom formatted to numbers &no decimals - 40 sheets
    By synses in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2013, 01:46 AM

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