+ Reply to Thread
Results 1 to 6 of 6

Question re. conditional formatting cells with formula

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-05-2009
    Location
    Cologne, Germany
    MS-Off Ver
    Excel 2010
    Posts
    156

    Question Question re. conditional formatting cells with formula

    Hi All,
    A simple question; I presume there is a rule that states that if you format a cell dependent upon whether it contains text (=ISTEXT(cell_ref)) and that cell has formula, Excel assumes is has text because of the formula and therefore formats it anyway? I attached an example file.
    Attached Files Attached Files
    Last edited by kborgers; 06-22-2012 at 04:39 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Question re. conditional formatting cells with formula

    Hi,

    On Sheet2 of the attached I've put in a very simple vlookup formula that returns one text value and one numeric value. Then applied your conditional formatting using ISTEXT. Seems to work fine and the formatting is applied to the text value and not to the numeric one.

    Did you get a different result when you tried it?
    Attached Files Attached Files
    If I've been of help, please hit the star

  3. #3
    Forum Contributor
    Join Date
    09-05-2009
    Location
    Cologne, Germany
    MS-Off Ver
    Excel 2010
    Posts
    156

    Re: Question re. conditional formatting cells with formula

    Hi Spencer, in col A, I have as you've seen, an array formula that is copied down to row 29. I also have CF in A4 set as ISTEXT(A4)´, then draw a border. If I format paint that down to row 29, every cell shows a border. In Col C, I have a few rows of text. I format painted from A4 into C4 and down to C29 and only the cells with text have a border. Does this make sense?

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Question re. conditional formatting cells with formula

    Hi

    My suggestion is to use, in CF rules something like this.

    =$A4<>""
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Forum Contributor
    Join Date
    09-05-2009
    Location
    Cologne, Germany
    MS-Off Ver
    Excel 2010
    Posts
    156

    Re: Question re. conditional formatting cells with formula

    Hi Fotis, you have every right to be proud of Greece - beautiful country and people! Also, the land of Excel CF solutions! Your suggestion works perfectly - thanks!! I still cannot figure out why ISTEXT() does not though!

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Question re. conditional formatting cells with formula

    You are really welcome!

    Thank you for you feed back, your good words and also for the reb*

    To be honest, watching the previous answer(post#4) and believing that you ignore my reply, I did not expect to have such a good image for my country and its people. Thank you.

    For your question for ISTEXT,honestly i don't know why does not work. It's real strange for me too.

+ 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