+ Reply to Thread
Results 1 to 2 of 2

SQL data dump into excel will not allow cell width change

  1. #1
    Forum Contributor
    Join Date
    04-14-2013
    Location
    Ky
    MS-Off Ver
    Excel 2013
    Posts
    344

    SQL data dump into excel will not allow cell width change

    I have an Excel sheet with over 5K rows of data that was generated from an SQL database. Column F is 54.86 in width, even though if reduced to the size of the longest text in that column, it would only be around 18. So that column is taking up tons of (unused) space on my worksheet, and I'd like to narrow it down.

    Only when I do select column width 18 for the entire column, only the first (header) row changes, and the remaining 5K data rows remain at 56.86... overlapping columns G, H I and J - which are currently blank but I am planning to fill with formulas. I tried copying all the data into a new workbook and worksheet - still did it, and selecting just the data through F2:F5nnn and manually moving it to column K, and the formatting followed and column K became 56.86 width.

    So I'm thinking there's some internal formatting rule here doing this - any help or ideas?

    -HeyInKy

  2. #2
    Forum Contributor
    Join Date
    04-14-2013
    Location
    Ky
    MS-Off Ver
    Excel 2013
    Posts
    344

    Re: SQL data dump into excel will not allow cell width change

    Ah-ha!! Self-fixed!

    FYI - the cells in col. F had extra spaces after the text, so I had to use =TRIM(SUBSTITUTE(F2,CHAR(160),CHAR(32))), copy all the way down in column K, and then copy col. K and paste the values only (not the TRIM formula) into col L, delete columns F and K and move the data back over.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Change column width if cell changes
    By 2Excel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-12-2011, 01:08 AM
  2. Can you dump multiple lines of vertical data into one cell?
    By juniperjacobs in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-04-2010, 01:59 PM
  3. Replies: 1
    Last Post: 06-01-2009, 05:51 PM
  4. How do I change the width of an individual cell?
    By Tabitha in forum Excel General
    Replies: 3
    Last Post: 08-28-2005, 02:05 PM
  5. How do i change the height and width of a single cell in Excel?
    By lotus1107 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-07-2005, 10:05 PM

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