+ Reply to Thread
Results 1 to 4 of 4

Hide function/command

Hybrid View

  1. #1
    Registered User
    Join Date
    05-22-2007
    Posts
    6

    Question Hide function/command

    Is there a way, using conditional formatting, or typed commands, to hide a cell based on another cell's contents? I want to either hide, or just leave blank, certain cells depending on whether or not certain other cells are blank.
    I do not know of a function that i can type to make these cells blank based on a True/False of another cell. Any ideas? Thanks!
    Last edited by joshmoshoshkosh; 05-24-2007 at 09:25 AM.

  2. #2
    Forum Contributor
    Join Date
    10-27-2006
    Location
    United Kingdom
    MS-Off Ver
    EXCEL 2003 (2007 at home)
    Posts
    517
    The obvious solution is just to wrap your existing formula in an IF thus:

    IF(condition,"",existing foumula)

    alternatively if you dont want to alter your existing formula you could try using the conditional formatting to set the font colour and the cell background colour to be the same.

    If you want the cell to be treated as if it were truely empty (allowing text from adjacent cells to over-write it for example) at some times but have a value at other times, I can't think of a way using the "standard" excel functions, but there might be a way using VBA...

    I'm not familiar with VBA.

    Mark

  3. #3
    Registered User
    Join Date
    05-22-2007
    Posts
    6
    I reworded my question, maybe it was a bit unclear before.

  4. #4
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Let's say you want to leave B1 blank if A1 is blank. An if formula would look like this (enterred in B1):

    =IF(A1="","",A1+10)

    That formula reads: If A1 is blank, then leave B1 blank, otherwise, in B1 enter A1+10 (I just made up that formula).

+ 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