+ Reply to Thread
Results 1 to 2 of 2

How to minimize wasted space in cells - optimize row height/column width?

Hybrid View

  1. #1
    Registered User
    Join Date
    05-20-2009
    Location
    Sweden
    MS-Off Ver
    Office XP
    Posts
    1

    How to minimize wasted space in cells - optimize row height/column width?

    I often create tables in Excel where some cells contain a lot of text while others just contain a single digit or some other short value. With wrap text in cells enabled and then a combination of increasing row height and autofit the width of the columns there is a lot of wasted space in my sheets.

    I would like a "smart" function that minimizes the unused white space. Does something like that exist? Or is there a algoritm that is simple enough to perform manually even on bigger sheets?

    A few samples of what I mean:

    A lot of wasted space horizontally
    excel 1.PNG

    Vertical wasted space
    excel2.PNG

    This is probably pretty good
    excel3.PNG

    With merged cells it is starting to get complex as seen in this and the next example
    excel4.PNG

    Second example with merged cells
    excel5.PNG


    Thinking a bit more about this I have realised that the algoritm I am looking for can't be too naive and could/need different optimising strategies:

    Naive: In extreme cases it could end up making a cell with a lot of text very high, e.g., with just one letter or at least one word per line. Obviously that is not desirable.
    Usually I believe a squarish shape of the whole active area would be the most efficient. In that case optimising the circumference is probably the best strategy. However, if you want to print on a rectangular paper or view on a rectangular screen, it would make sense to sacrifice some optimisation to make sure that the data fits on one paper/screen.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: How to minimize wasted space in cells - optimize row height/column width?

    You could columns-autofit the used range and then look for large column widths and just resize those over width columns
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

+ 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. Locking Column Width and Row Height
    By Zaraf in forum Excel General
    Replies: 7
    Last Post: 12-02-2013, 10:08 AM
  2. Replies: 3
    Last Post: 03-22-2013, 12:19 AM
  3. Automatic Increase/Decrease in Row Height and Column Width in cells
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 12-23-2010, 02:39 PM
  4. Setting column width and row height
    By meherts in forum Excel General
    Replies: 1
    Last Post: 07-16-2010, 11:05 AM
  5. Replies: 8
    Last Post: 10-26-2009, 09:46 AM
  6. Row height/column width
    By Connie Martin in forum Excel General
    Replies: 1
    Last Post: 03-20-2006, 12:55 PM
  7. Column Width and Row Height
    By Pillow in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-13-2005, 12:00 PM
  8. Displaying column width and row height
    By swirlygirl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-07-2005, 06:06 PM

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