+ Reply to Thread
Results 1 to 11 of 11

Replace empty cells with blank space

  1. #1
    Registered User
    Join Date
    05-26-2008
    Posts
    28

    Replace empty cells with blank space

    Hi all,

    I have a question... I have many sheets in my workbook with many filled or unfilled cells... I want that any cell in my whole workbook should be filled with " " ie a space if it is currently blank (ie don't touch the cells which have some data) and as there are many cells in a sheet .. I don't want to fill them with spaces as the file size will increase... I just want to do this for cells A-1 to AB-200.

    What is the way of doing this with a formula or programming ie without macros... (or is macro the only way?) What if I just want to do this to a sheet and not to the whole workbook.

    Thanks folks,

    Charles.
    Last edited by NBVC; 06-24-2008 at 07:51 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Please read our forum rules and then amend your title to a more appropriate one.

    Thanks.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-18-2008
    Posts
    80
    then have a look at the first video on this site.

    http://www.contextures.com/xlVideos01.html#FillBlanks

  4. #4
    Registered User
    Join Date
    05-26-2008
    Posts
    28

    Coudn't read the rules page and how to edit the title now?

    Hi,

    I could not read the rules (when I clicked on the URL in your reply) I was sent to page http://www.excelforum.com/showthread.php?t=642322 and it said... you are not authorized for this page..

    How can I change the title of my thread now?

    Either ways, Could someone please let me know the formula for the above??

    Best regards,
    Charles.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    I fixed your title for you... Our Administrator will look into the Rules thread and getting access.

    In the meantime, see suggestiion above from TIPPYS

  6. #6
    Registered User
    Join Date
    05-26-2008
    Posts
    28

    Still not solved..

    Hello all,

    I looked at the video but it is to fill the blank cells with values from the first non-blank cell above (ie in the same column) BUt I want to fill just one space in the cell. How to do this??

    Thanks,
    Charles.

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    just select whole range a1 to ab200
    follow video but instead of typing = and selecting cell above
    just type ="" then ctrl+enter or if you just want space hit space bar and then ctrl+enter
    Last edited by martindwilson; 07-18-2008 at 09:51 PM.

  8. #8
    Registered User
    Join Date
    05-26-2008
    Posts
    28

    Now the question arises....

    Thank you so much Martin. It worked well. I have recorded a macro for this in Personal.xls But how can I do this for all the sheets in my workbook at one go??

    Also I want Excel to do this automatically for every column or row that I insert or if I add a new sheet then all cells in the range A1 to Z500 should have a space... Actually I want that any cell in excel should have a space so that the previous cell's data does not show in the next cell (I dislike this and giving a space in the next cells seems to be the only way to hide it) But I am limiting the range to A1 to Z500 as space-in-all-empty-cells would make the workbook large in size... Please tell me the answers to these questions.

    Thanks again,
    Charles.

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    why not just format cells as wrap text then they wont over lap in other cell when viewed?

  10. #10
    Registered User
    Join Date
    05-26-2008
    Posts
    28

    wrapping is not what I want

    Wrapping will increase the row height. I dont like that.. I like them all being 12.75. They should have this option of what effect i achieve with giving space in the next cell, without having to give that space... its a special view where the text just hided 'under' the next column.. if the text is 'Right aligned' it should hide under the column to the left. So wrap is not what i am looking for.

  11. #11
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    try this macro (insert module)
    Please Login or Register  to view this content.
    replace $a$1:$d$10 with your range
    run macro as required
    or in "this work book"
    Please Login or Register  to view this content.
    Last edited by martindwilson; 08-02-2008 at 08:46 PM.

+ 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