+ Reply to Thread
Results 1 to 7 of 7

Making cell value blank

  1. #1
    Forum Contributor
    Join Date
    06-05-2006
    Posts
    166

    Making cell value blank

    Hi,

    I have a number of cells with formulae. The following is a simplified version:

    Please Login or Register  to view this content.
    I am using this because if the sum is less than 5 I do not want anything to be in the cell. This is because the sheet then copies over into a different workbook. The second workbook needs the value to be blank to run properly. Using "" does not work unfortunately. Is there anything I can replace that with to save me having to delete all values less than 5 within the range manually?

    Thanks in advance,

    Phil

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482
    Using "" does not work unfortunately.
    Why doesn't it work?
    Maybe when you copy and paste, use paste special, values only

  3. #3
    Forum Contributor
    Join Date
    06-05-2006
    Posts
    166
    Thanks Dave but I have already tried pasting values only. I have no idea why that doens't work. The second sheet is not one that I have desiged but it will not accept "" as no value. If I clear the cell contents manually it works for some reason.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    the second sheet must be using =if(isblank)...... as a test
    your function although not showing anything is not blank
    that is only achieved when using delete
    test with
    your function in A1 =ISBLANK(A1) in A2 returns FALSE =ISTEXT(A1) returns true
    even copying paste/values transfers that info. looks like the second sheet needs reworking using ISTEXT as a test
    Last edited by martindwilson; 09-20-2008 at 04:28 PM.

  5. #5
    Forum Contributor
    Join Date
    06-05-2006
    Posts
    166
    Thanks Martin. Unfortunately I cannot edit the second sheet. It doens't look like I am going to find any sort of conditional formatting that can clear cells completely.


    Thanks again,

    Phil

  6. #6
    Forum Contributor
    Join Date
    10-27-2006
    Location
    United Kingdom
    MS-Off Ver
    EXCEL 2003 (2007 at home)
    Posts
    517
    The only way I can think of is to write a macro that will check each cell, and "properly" delete everything in all the "" cells.

  7. #7
    Forum Contributor
    Join Date
    10-27-2006
    Location
    United Kingdom
    MS-Off Ver
    EXCEL 2003 (2007 at home)
    Posts
    517

    Blanking Macro

    Try using this macro:

    Please Login or Register  to view this content.
    It will delete the contents of any cell where the value is "".
    Note that this will clear out any formulas etc where the result is "".

    Many thanks again to Richard (from the excel programming forum) for his assistance on this.

    Mark.

+ 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. find next blank cell within range
    By twofootgiant in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-18-2008, 09:53 AM
  2. Pasting into the next blank cell in a column, rather than specific cell.
    By mackinlay in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-10-2008, 08:57 AM
  3. Select last cell before blank, then offset
    By jeff.p in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-04-2007, 06:43 PM
  4. Subtraction macro request ...
    By rocket1406 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-13-2007, 03:10 PM
  5. Removing spaces in a blank cell
    By DTran22 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-29-2006, 09:24 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