+ Reply to Thread
Results 1 to 2 of 2

adding a comma btw words in cell

  1. #1
    Registered User
    Join Date
    10-26-2007
    Posts
    3

    adding a comma btw words in cell

    What function do I use to add a comma to seperate the following information in a cell?

    CHICAGOIL60611

    The format I need it in is Chicago, IL, 60611

    Thanks!

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    I have assumed that the lenght of thr 60611 field is always 5 charaters, The IL is always 2 characters & Chicargo is variable number of characters depending on City Name

    CHICAGOIL60611 In A1
    This formula in b1
    =PROPER(LEFT(A1,LEN(A1)-7))&", "&MID(A1,LEN(A1)-6,2)&", "&RIGHT(A1,5)
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

+ 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