+ Reply to Thread
Results 1 to 18 of 18

Remove any letters except the capital letters

  1. #1
    Registered User
    Join Date
    04-04-2021
    Location
    Australia
    MS-Off Ver
    Office365
    Posts
    25

    Remove any letters except the capital letters

    Hello guys!

    How to Remove any letters except the capital letters from a group of numbers.

    So the "#", "Capital Letters", and the numbers are retained. All small letters at the end are removed.



    Thanks in advance

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Remove any letters except the capital letters

    How about this:

    Please Login or Register  to view this content.
    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Remove any letters except the capital letters

    B2 ==let(a,substitute(substitute(a2," ",""),char(9),""),if(isnumber(right(a,1)*1),a,left(a,len(a)-1)))
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  4. #4
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Remove any letters except the capital letters

    And what if you want to remove small caps from the middle of the text?
    Last edited by DJunqueira; 11-24-2021 at 03:33 PM.

  5. #5
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Remove any letters except the capital letters

    Quote Originally Posted by DJunqueira View Post
    And what if you want to remove small caps from the middle of the text?
    My answer to myself.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Remove any letters except the capital letters

    Please try

    Keep upper case
    =LET(z,CLEAN(A2),m,MID(z,SEQUENCE(LEN(z)),1),CONCAT(REPT(m,EXACT(m,UPPER(m)))))

    Keep lower case
    =LET(z,CLEAN(A2),m,MID(z,SEQUENCE(LEN(z)),1),CONCAT(REPT(m,EXACT(m,LOWER(m)))))

  7. #7
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Remove any letters except the capital letters

    Quote Originally Posted by Bo_Ry View Post
    Please try
    Keep upper case
    =LET(z,CLEAN(A2),m,MID(z,SEQUENCE(LEN(z)),1),CONCAT(REPT(m,EXACT(m,UPPER(m)))))
    Keep lower case
    =LET(z,CLEAN(A2),m,MID(z,SEQUENCE(LEN(z)),1),CONCAT(REPT(m,EXACT(m,LOWER(m)))))
    No Insider for me (Win7), but I saved it.

  8. #8
    Registered User
    Join Date
    04-04-2021
    Location
    Australia
    MS-Off Ver
    Office365
    Posts
    25

    Re: Remove any letters except the capital letters

    Thank you

  9. #9
    Registered User
    Join Date
    04-04-2021
    Location
    Australia
    MS-Off Ver
    Office365
    Posts
    25

    Re: Remove any letters except the capital letters

    Hi,

    Thank you so so much

  10. #10
    Registered User
    Join Date
    04-04-2021
    Location
    Australia
    MS-Off Ver
    Office365
    Posts
    25

    Re: Remove any letters except the capital letters

    Quote Originally Posted by WideBoyDixon View Post
    How about this:

    Please Login or Register  to view this content.
    WBD
    Thank you so much

  11. #11
    Registered User
    Join Date
    04-04-2021
    Location
    Australia
    MS-Off Ver
    Office365
    Posts
    25

    Re: Remove any letters except the capital letters

    Quote Originally Posted by mehmetcik View Post
    B2 ==let(a,substitute(substitute(a2," ",""),char(9),""),if(isnumber(right(a,1)*1),a,left(a,len(a)-1)))
    Thank you so much

  12. #12
    Registered User
    Join Date
    04-04-2021
    Location
    Australia
    MS-Off Ver
    Office365
    Posts
    25

    Re: Remove any letters except the capital letters

    Quote Originally Posted by DJunqueira View Post
    No Insider for me (Win7), but I saved it.
    Thank you so much

  13. #13
    Registered User
    Join Date
    04-04-2021
    Location
    Australia
    MS-Off Ver
    Office365
    Posts
    25

    Re: Remove any letters except the capital letters

    hi DJunqueira,

    hehehe, its ok only need to remove the small letter at the end.

    Thank you so so much

  14. #14
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Remove any letters except the capital letters

    I know, it was a bonus.

  15. #15
    Registered User
    Join Date
    04-04-2021
    Location
    Australia
    MS-Off Ver
    Office365
    Posts
    25

    Re: Remove any letters except the capital letters

    Quote Originally Posted by Bo_Ry View Post
    Please try

    Keep upper case
    =LET(z,CLEAN(A2),m,MID(z,SEQUENCE(LEN(z)),1),CONCAT(REPT(m,EXACT(m,UPPER(m)))))

    Keep lower case
    =LET(z,CLEAN(A2),m,MID(z,SEQUENCE(LEN(z)),1),CONCAT(REPT(m,EXACT(m,LOWER(m)))))
    Wow, all the answers are really amazing!!! Thank you

  16. #16
    Registered User
    Join Date
    04-04-2021
    Location
    Australia
    MS-Off Ver
    Office365
    Posts
    25

    Re: Remove any letters except the capital letters

    Quote Originally Posted by DJunqueira View Post
    I know, it was a bonus.
    Thank you Thank you

  17. #17
    Registered User
    Join Date
    04-04-2021
    Location
    Australia
    MS-Off Ver
    Office365
    Posts
    25

    Re: Remove any letters except the capital letters

    Quote Originally Posted by mehmetcik View Post
    B2 ==let(a,substitute(substitute(a2," ",""),char(9),""),if(isnumber(right(a,1)*1),a,left(a,len(a)-1)))
    Hello Thank you

  18. #18
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,183

    Re: Remove any letters except the capital letters

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. [SOLVED] Not differentiating between capital letters and lower case letters
    By Eliot Y in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-22-2015, 11:13 AM
  2. Replies: 13
    Last Post: 07-08-2012, 11:26 PM
  3. Capital letters
    By m.cain in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-28-2007, 03:48 PM
  4. [SOLVED] Capital Letters
    By Jason in forum Excel General
    Replies: 2
    Last Post: 01-21-2006, 07:50 PM
  5. Capital Letters
    By teresa in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 03-24-2005, 12:06 PM
  6. [SOLVED] Capital Letters
    By Gaute in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-09-2005, 06:06 AM
  7. [SOLVED] capital letters
    By HGood in forum Excel General
    Replies: 5
    Last Post: 01-11-2005, 11:06 PM

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