+ Reply to Thread
Results 1 to 10 of 10

How can I make a cell "transparent" if a formula is FALSE?

  1. #1
    Registered User
    Join Date
    12-31-2009
    Location
    US
    MS-Off Ver
    Excel 2002
    Posts
    5

    Thumbs up How can I make a cell "transparent" if a formula is FALSE?

    A1 says "This sentence is too long", B1 has a formula.
    When B1 is true, A1 is blank.
    B1 has =IF(A2="Yes", 1, "")

    My problem is, when B1 is false, it displays like this:
    | This sentence is |___________|
    ( ____ being a blank B1)

    If B1 is false, I would like it to continue to display the contents of A1 through B1, the way it would if B1 was completely blank. For the cell to be "transparent"

    I guess my IF statement is returning "", which excel interprets as data. How can I make this work?

    (changing cell widths is not an option, maybe changing the IF statement? conditional formatting?)

    I'm using excel 2002. Thanks for your help!
    Last edited by ihavenoidea; 01-04-2010 at 11:08 PM. Reason: SOLVED

  2. #2
    Forum Contributor
    Join Date
    02-16-2008
    Location
    Mansfield, TX
    Posts
    324

    Re: How can I make a cell "transparent" if a formula is FALSE?

    If B1 contains a formula, why show it. i guess I am confused. Can you post a workbook with an example of what you are getting now, and an example of what you are trying to achieve

  3. #3
    Registered User
    Join Date
    12-31-2009
    Location
    US
    MS-Off Ver
    Excel 2002
    Posts
    5

    Re: How can I make a cell "transparent" if a formula is FALSE?

    Sorry, maybe my question wasnt very clear. Attached is a workbook that illustrates my question better.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    02-16-2008
    Location
    Mansfield, TX
    Posts
    324

    Re: How can I make a cell "transparent" if a formula is FALSE?

    Sorry, I don't know of any way to accomplish what you are trying to do without some sort of VBA trickery.

  5. #5
    Registered User
    Join Date
    12-31-2009
    Location
    US
    MS-Off Ver
    Excel 2002
    Posts
    5

    Re: How can I make a cell "transparent" if a formula is FALSE?

    Yeah i thought so. I've been trying for days now. It seems like a relatively simple idea, but with no simple solution (if any) in sight.

    Maybe its too simple. haha.

    Hopefully someone else can provide some insight?

  6. #6
    Valued Forum Contributor scaffdog845's Avatar
    Join Date
    02-01-2008
    Location
    Aston, PA. USA.
    MS-Off Ver
    Microsoft 365
    Posts
    373

    Re: How can I make a cell "transparent" if a formula is FALSE?

    dcgrove

    The obvious solution would be to widen A:A which you said is not an option. By default Excel would allow the lenghty contents of A1 to sipll over to B1 if it were inded blank.

    Could the formula in B1 be moved over an appropriate number of columns to allow A1 to fully display?

    There may be a VBA solution to this, however a restructuring of your layout would be the simpliest route.

    If this is not possible one of the Gurus may have an idea....

    Have a great New year!
    Click here to read the Forum Rules
    Whatever it is in life you decide to go after, go after with great ferocity.

  7. #7
    Registered User
    Join Date
    12-31-2009
    Location
    US
    MS-Off Ver
    Excel 2002
    Posts
    5

    Re: How can I make a cell "transparent" if a formula is FALSE?

    Yeah, restructuring isn't really an option. I've boiled down the question to its essence, in order to simplify it for this forum. In reality, my spreadsheet is 8x20, with virtually every cell containing multiple IF and VLOOKUP statements, indexing 3000+ cells in the tables below.

    At work we have a flip chart with all the part specifications which is somewhat outdated, im trying to replace our flip chart with this excel database. Where the user inputs the model # and all the specifications come up. My problem is that some parts have additional notes; its these overlapping notes that are giving me this problem.

    A co-worker told me that this might be easier to do on Access, which is probably true, but im not very familiar with the program. I'd really like to accomplish this in Excel. It sounds so simple, but it just isn't for some reason. Any help is greatly appreciated!

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How can I make a cell "transparent" if a formula is FALSE?

    What you want isn't going to happen with our without VBA. It's just not how Excel renders to the screen.
    Entia non sunt multiplicanda sine necessitate

  9. #9
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: How can I make a cell "transparent" if a formula is FALSE?

    There is this option, although you may not want to fiddle around with shapes.

    Insert a Rectangle over cells A1:C1 and have the contents of it = A1
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    12-31-2009
    Location
    US
    MS-Off Ver
    Excel 2002
    Posts
    5

    Thumbs up Re: How can I make a cell "transparent" if a formula is FALSE?

    That's exactly what I ended up doing. Formatted A1 as ;;; so it wouldn't display, and covered it with a transparent textbox (=A1) with no lines.

    Had to mess around with conditional formatting a lot to get everything to work, specially since you're limited to only 3 conditions per cell. But it all worked out.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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