+ Reply to Thread
Results 1 to 7 of 7

condtional formating to displat text message

  1. #1
    Registered User
    Join Date
    07-25-2009
    Location
    india
    MS-Off Ver
    Excel 2016
    Posts
    41

    condtional formating to displat text message

    Is it possible to display a text message based on condiiton format

    I used conditional formating to shade the cell in red when the cell value is >5, if it exceeds then it should display a error message. Is it possible n conditional formating or do i need to write macros

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: condtional formating to displat text message

    You can use Data Validation to disallow user to enter value greater than 5 and give an appropriate error...

    Go to Data|Validation

    Select Whole Number (or Decimal) from Allow menu...

    Select Less Than

    Enter 5

    Click Ok.

    You can also edit the Error message... through the Error Alert Tab in the Data Validation.


    Is that what you wanted... or do you want to display an error code in another cell instead?
    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
    Registered User
    Join Date
    07-25-2009
    Location
    india
    MS-Off Ver
    Excel 2016
    Posts
    41

    Re: condtional formating to displat text message

    hi,

    thanks.i will try this out. I need to know whether is it possible to display a message based on color.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: condtional formating to displat text message

    With Native Excel you cannot display a message based on colour.. but you can display a message (in another cell) based on the same condition that created that coloured cell...

    e.g.

    =IF(A1>5,"Error Alert","")

    put in another cell, will give an "Error Alert" if A1 is greater than 5.

  5. #5
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: condtional formating to displat text message

    I realize this is an old thread, but I remembered that I managed once upon a time to display text as a conditional format. Couldn't remember how so I did a web search to no avail... but ran across this thread in the process.

    Anyway, I finally managed to dig up the file in which I did it previously. Took me a while to figure out how I did it, even with the evidence right in front of me. Here's how...

    When you apply formatting for the conditional format rule, go to the Number tab, select Custom under Category. Then in the Type box, enter your text message within quotation marks (and nothing else).

  6. #6
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: condtional formating to displat text message

    I just figured out a nuance to the preceding "trick" that I did not realize before...

    If the cell is blank or non-numerical, the CF text does not appear, but all other formatting does. Is there a way "format" the Number format to make the text appear if the cell is blank or non-numerical?

  7. #7
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: condtional formating to displat text message

    I just figured out a nuance to the preceding "trick" that I did not realize before...

    If the cell is blank or non-numerical, the CF text does not appear, but all other formatting does. Is there a way to "format" the Number format to make the text appear if the cell is blank or non-numerical?
    Last edited by jhren; 09-28-2014 at 04:37 AM.

+ 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