+ Reply to Thread
Results 1 to 6 of 6

Excel Formatting: Cleaning up information so it looks consistent

Hybrid View

cocolete Excel Formatting: Cleaning up... 03-30-2012, 08:30 AM
Russell Dawson Re: Excel Formatting:... 03-30-2012, 08:36 AM
Fermented Reptile Re: Excel Formatting:... 03-30-2012, 08:40 AM
Russell Dawson Re: Excel Formatting:... 03-30-2012, 08:44 AM
cocolete Re: Excel Formatting:... 03-30-2012, 08:54 AM
BarryTSL Re: Excel Formatting:... 03-30-2012, 09:26 AM
  1. #1
    Registered User
    Join Date
    10-06-2011
    Location
    New York, New York
    MS-Off Ver
    Excel 2003
    Posts
    30

    Excel Formatting: Cleaning up information so it looks consistent

    Hello Community,

    I'm trying to clean up a database and have come along with certain issues. The data base has information from multiple system and each system has a different way of formatting the text. In order to send it out in a professional consistent format I've cleaned the data as mucha as I can. Here are my issues:

    1. How can I take data and turn all UPPER case to lower case letters but maintain the 1st letter in UPPER CAP

    2. I lot of the data has many spaces in between (ex. Cpn 6% 3/15 mat) how can I ensure that there is only one space between words and numbers. By this I mean to ensure that if I have a cpn 6.875 that it doesnt tak and do this 6. 875 because of the dot.

    MAW TEST.xls

    Thank You
    Last edited by cocolete; 04-02-2012 at 06:33 PM.

  2. #2
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: Excel Formatting: Cleaning up information so it looks consistent

    In B1 input =PROPER(A1)

    Drag it down
    If I helped, please don't forget to add to my reputation. (click on the star below the post)

    If the problem is solved, please: Select Thread Tools (on top of your 1st post) -> Mark this thread as Solved.

    Failure is not falling down but refusing to get up.

  3. #3
    Registered User
    Join Date
    12-30-2011
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2010
    Posts
    82

    Re: Excel Formatting: Cleaning up information so it looks consistent

    Hi there,

    To get the first letter capitalized and to remove superfluous spaces, try:

    =PROPER(TRIM(A1))

    HTH,

    Fermented R

  4. #4
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: Excel Formatting: Cleaning up information so it looks consistent

    Much better

  5. #5
    Registered User
    Join Date
    10-06-2011
    Location
    New York, New York
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Excel Formatting: Cleaning up information so it looks consistent

    Thank you very much guys that was great!

  6. #6
    Forum Contributor
    Join Date
    01-24-2011
    Location
    Sheppey
    MS-Off Ver
    Excel 2010
    Posts
    239

    Re: Excel Formatting: Cleaning up information so it looks consistent

    You could use this code in a module to save having an extra column.
    Sub macro1()
    
    Range("A65536").End(xlUp).Select
    ii = ActiveCell.Row
    
            Do Until ActiveCell.Row = 1
    Range("A" & ii).Select
    aaa = ActiveCell.Value
    bbb = Application.WorksheetFunction.Proper(aaa)
    ccc = Application.WorksheetFunction.Trim(bbb)
    ActiveCell.Value = ccc
    ii = ii - 1
            Loop
    
    End Sub

+ 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