+ Reply to Thread
Results 1 to 12 of 12

Format rows so they're evenly spaced

  1. #1
    Registered User
    Join Date
    06-22-2011
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    6

    Format rows so they're evenly spaced

    Hey guys. So I imported some data from word to excel (via copy and paste). Once everything was in Excel, I performed the necessary formatting to make sure everything looked nice... but there's one problem: one of the columns (categorized as "Last Name") is not lined up equally. For instance: there's approx 300 occupied rows: from row 1-10 everything looks nice and even when scrolling down. But then from 11-20 the names are positioned more to center of the cells than the first 10. It just doesn't look right or that organized. I tried aligning them but that didn't work.

    How do I line up the column and make sure all the entries are positioned evenly? Hopefully I'm making sense. If not I can post a screenshot.

    Thanks in advance!

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Format rows so they're evenly spaced

    are there spaces before the text?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    06-22-2011
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Format rows so they're evenly spaced

    Yes... Exactly. How do I get rid of them?

  4. #4
    Registered User
    Join Date
    05-28-2009
    Location
    Springfield, Missouri, USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Format rows so they're evenly spaced

    Use the formula =TRIM(C11)
    Trim removes spaces from the beginning and end of your data, as well as multiple spaces within.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Format rows so they're evenly spaced

    select the column and use text to columns , check fixed width option ,click next
    double click on any break lines to remove them ,click finish,
    (text to columns is on the data tab)

  6. #6
    Registered User
    Join Date
    06-22-2011
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Format rows so they're evenly spaced

    Okay, take a look at my attachment.

    Notice how the data in columns C and D are all uniformly placed. Column A is a mess though. It's just one word but I can't seem to make them fit evenly like in columns C and D. Trim method doesnt seem to work. I'll try it again.
    Attached Files Attached Files

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Format rows so they're evenly spaced

    post an excel sample its posible that they aren't real spaces but char 10 or similar buy we can only tell from excel

  8. #8
    Registered User
    Join Date
    06-22-2011
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Format rows so they're evenly spaced

    Done.

    I just want the first 10 rows of column A to be lined up like everything else.

    Thanks so much for your help.
    Attached Files Attached Files

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Format rows so they're evenly spaced

    ok its char 160 which has come over with the web page formatting
    select column A
    open find /replace
    in find hold down the alt key and type 0160 on the NUMERICAL KEYPAD
    you should see the cursor go 1 place to the right
    leave replace blank
    replace all
    ah even when thats done you have some real spaces left
    now use the text to columns as i showed above to fix that
    heres the result after those 2 steps
    Attached Files Attached Files
    Last edited by martindwilson; 06-22-2011 at 08:22 AM.

  10. #10
    Registered User
    Join Date
    06-22-2011
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Format rows so they're evenly spaced

    That looks great Martin!!

    But one thing.. when I pull up the find/replace tab and in 'Field' hold down ALT while typing 0160 with my NUM LK on, nothing appears. Am I doing something wrong?

  11. #11
    Registered User
    Join Date
    06-22-2011
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Format rows so they're evenly spaced

    This is a little more frustrating than I thought. Martin you did it perfectly.. I just can't seem do relpicate the steps right.

    Anytime I try to enter the alt-1060 in the Field space nothing appears.. so there's nothing to replace. I know I have NUM LK on but still nothing.

  12. #12
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Format rows so they're evenly spaced

    hmm maybe the find in options need changing?

+ 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