+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting for errors

  1. #1
    Forum Contributor
    Join Date
    03-30-2007
    Location
    London, UK
    MS-Off Ver
    Microsoft Office 2007
    Posts
    317

    Smile Conditional Formatting for errors

    Hi guys,

    Just a quick and probably silly question.

    I wanted a conditional format for an error where someone puts in text as opposed to a figure and the error: "#VALUE!" come up in a cell.

    How can I set a conditional format to alert me with a red background when someone enters text instead of a numeric value in a cell?

    Thanks in advance.
    Best Regards.

    Michael
    -----------------------------------
    Windows Vista, Microsoft Office 2007

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    select cell and go to Format|Conditional Formatting


    select Formula Is from 1st drop down and enter formula =ISTEXT(A2) where A2 is the cell to format.

    click Format and choose from Pattern tab..

    click Ok and click Ok again to finish.

    Edit:

    Not sure if you know, but you can use another Excel feature, Data Validation, to prevent entry of text in the first place... have a look at Validation under the Data menu... choose Custom and enter formula =Isnumber(A2) again changing A2 for cell you actually are using.
    Last edited by NBVC; 09-25-2007 at 10:10 AM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    If you want to apply conditional formatting to text:

    1. Select the cell you want to apply the format to.
    2. Go to Format--Conditional Formatting
    3. In the Cell Value Is drop down, change it to Formula Is
    4. Enter this formula: =ISTEXT(A1) (Make sure you change the A1 value to reflect whichever cell you are applying the formatting to.

    EDIT: Too slow!

  4. #4
    Forum Contributor
    Join Date
    03-30-2007
    Location
    London, UK
    MS-Off Ver
    Microsoft Office 2007
    Posts
    317

    Smile

    Thanks for both of your replies. Much appreciated.

    I forgot to mention that the sheet in question is a link to another spreadsheet.

    However I found a solution! I simply entered the formula "=ISERROR(A2)" and this worked fine.

    Thank you for your responses this helped me come to this conclusion and thus finding my answer so I appreciate that. :D

+ 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