+ Reply to Thread
Results 1 to 2 of 2

Formula that Transforms Cell Column into Lower Case and replaces spaces with hyphens

  1. #1
    Registered User
    Join Date
    04-04-2013
    Location
    Berkeley
    MS-Off Ver
    Excel 2011
    Posts
    3

    Smile Formula that Transforms Cell Column into Lower Case and replaces spaces with hyphens

    Hopefully the title was descriptive enough but is there any cell input I could do that does that? Here's an example of what I am looking for:

    Column K | Column L

    (Winning Name) | (Final Slug)
    APRICOT PEET | apricot-peet
    d'''':,/whickey: | dwhickey
    FOR EVER defi | for-ever-defi
    hungry-hippos | hungry-hippos

    -where Winning Name is Column K and Final Slug is Column L
    -APRICOT PEET is Cell K3
    -final slug contains winning name except:
    ---all lower case
    ---spaces and hyphens converted into hyphens
    ---all other punctuation (commas, apostrophes, colons) removed

    I know this is a pretty complex formula but is there any way I can figure this out with an excel formula?

    Thank you so much!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Formula that Transforms Cell Column into Lower Case and replaces spaces with hyphens

    Hi and welcome to the forum

    Try this in a column L, copied down...
    =LOWER(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(K3,",",""),":",""),"'","")," ","-"))
    Last edited by FDibbins; 04-05-2013 at 12:54 AM.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    04-04-2013
    Location
    Berkeley
    MS-Off Ver
    Excel 2011
    Posts
    3

    Re: Formula that Transforms Cell Column into Lower Case and replaces spaces with hyphens

    Thank you so much FDibbins! The code worked perfectly
    The more I use excel, the more I'm amazed at the formula possibilities

+ 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