+ Reply to Thread
Results 1 to 4 of 4

How to conditionally format cells that look empty but are not actually empty?

  1. #1
    Forum Contributor
    Join Date
    05-03-2013
    Location
    Costa Rica
    MS-Off Ver
    MS Excel 365
    Posts
    120

    How to conditionally format cells that look empty but are not actually empty?

    Hi there!

    First of all, thanks for reading my post.
    Second of all, please consider that this post should've been named as: How to conditionally format cells that DON'T look empty. I realized about the mistake once I have submitted my post, so I cannot correct it now.

    Here's my situation:

    I have this formula on cell A1 on Sheet2:

    =IF(Sheet1!A1="","",Sheet1!A1)

    Then I drag the formula to the cells below on column A on Sheet2.
    How can I set up a formula on the conditional formatting feature so as to highlight (say, for instance, color in yellow) ONLY those cells that DON'T look empty. If you take a look at my formula, chances are it will return nothing on some cells, depending on content from Sheet1. Yet, those cells wouldn't be empty; they still have content (a formula, on this case), so I can't use the condition =A1<>"" on the conditional formatting feature, because cells that appear as "empty" are not actually empty; so, eventually, all will be highlighted.
    Last edited by alchavar; 10-25-2013 at 12:29 PM.

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: How to conditionally format cells that look empty but are not actually empty?

    you could try something like this for your conditional formatting formula :
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    this will return true as long as the cell is not actually empty (if it has a space, a number, a formula etc., it returns true)

    Hope this helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Forum Contributor
    Join Date
    05-03-2013
    Location
    Costa Rica
    MS-Off Ver
    MS Excel 365
    Posts
    120

    Re: How to conditionally format cells that look empty but are not actually empty?

    hi dredwolf!

    It didn-t work, but you gave a clue on how to do it.
    So I tried =CELL("contents",A1)<>"" and it worked perfectly!!!
    Thanks for the hint!

  4. #4
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: How to conditionally format cells that look empty but are not actually empty?

    Hmm not sure why it didn't work the first way, worked on my test data..
    But I am glad that you could take it and make it work for you!
    Congrats

+ 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. MACRO to empty a range of cells based on whether specified cell is empty
    By TBJV in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2013, 10:35 PM
  2. Clear empty cells not working since they are not empty
    By Skogsborg in forum Excel General
    Replies: 2
    Last Post: 04-25-2013, 04:25 AM
  3. Replies: 5
    Last Post: 01-12-2013, 12:16 AM
  4. [SOLVED] still have empty cell after run Delete empty cells code
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-25-2012, 04:28 PM
  5. [SOLVED] While writing files from another workbook, keep empty cells empty!
    By nivoe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-09-2012, 12:25 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