Results 1 to 7 of 7

Remove specific characters from cells with AppsScript coding

Threaded View

Micheal_Benton Remove specific characters... 02-23-2023, 03:12 PM
alansidman Re: Remove specific... 02-23-2023, 03:54 PM
Micheal_Benton Re: Remove specific... 02-27-2023, 12:35 PM
Haluk Re: Remove specific... 02-24-2023, 03:28 AM
Micheal_Benton Re: Remove specific... 02-27-2023, 12:42 PM
alansidman Re: Remove specific... 02-27-2023, 12:41 PM
Micheal_Benton Re: Remove specific... 02-27-2023, 12:46 PM
  1. #1
    Registered User
    Join Date
    09-26-2022
    Location
    London, England
    MS-Off Ver
    Microsoft Office 365 2021
    Posts
    21

    Question Remove specific characters from cells with AppsScript coding

    Hi, I'm a bit new to Javascript coding.
    I have a sheet called "Sheet1" where column "B2:B" (excluding the header) has strings made up of letters (uppercase and lowercase ones), spaces, numbers and symbols.

    I would like to make a script that takes the strings in column "B2:B" and:
    1. replaces all uppercases into lowercases;
    2. removes numbers, symbols (at the beginning, at the end, in the middle of the string);
    3. replaces spaces between words with dashes "-";
    4. removes spaces at the beginning or end of the string.

    After that, it should put the changed strings back into the right cells.

    I attach below an example image. In the photo, the corrected column is placed next to the original one (in D). This is just to show the action of the script.
    In the real sheet, the corrected strings must override the original ones in column "B2:B".

    Appreciate every help/solution given!


    Example.PNG
    Last edited by Micheal_Benton; 03-09-2023 at 02:44 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 7
    Last Post: 06-08-2021, 11:53 PM
  2. [SOLVED] Remove characters from cells if the have non data and characters as per attached sheet
    By khanaran in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-17-2019, 02:35 PM
  3. Create UDF that remove specific characters
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-26-2017, 05:40 AM
  4. How to keep hyphen in a string and remove all specific characters
    By SunOffice in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-27-2013, 12:32 AM
  5. [SOLVED] VBA Remove Specific No.of Characters
    By hobbiton73 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-22-2013, 05:39 AM
  6. Want to Remove A Non-Specific Text Strand Between Two Specific Characters
    By predictablepanda in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-04-2013, 12:33 AM
  7. Formatting to remove specific characters
    By tisentes13 in forum Excel General
    Replies: 4
    Last Post: 10-13-2009, 04:34 PM

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