+ Reply to Thread
Results 1 to 4 of 4

Want to add dashes to cell text...

  1. #1
    Registered User
    Join Date
    05-11-2009
    Location
    San Diego
    MS-Off Ver
    Excel 2003
    Posts
    11

    Want to add dashes to cell text...

    Hello everyone,

    I have a column of city names, some are one word and others are two or more. I am trying to take the city name and add it to another word, add dashes in between them and make everything lower case.

    For example:
    Column 1, Cell 1 is: San Diego

    I'd like it to look like: books-san-diego (books being the keyword I'd like to insert before the city.)

    Thanks for the help!
    Last edited by bikersnm; 05-11-2009 at 03:14 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Want to add dashes to cell text...

    Try:

    =SUBSTITUTE("books"&" "&LOWER(A1)," ","-")

    where A1 contains original city name
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-11-2009
    Location
    San Diego
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Want to add dashes to cell text...

    That worked! Thank you so much!!!

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Want to add dashes to cell text...

    If you are satisfied with the solution provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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