Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Can I use the IF function to display a message

I want to display a message in a cell, but I'm not sure the "IF" function
can do this?

Example:

a.. Under = <18.5
a.. Normal = 18.5-24.9
a.. Over = 25-29.9
a.. Danger = greater 30

Thanks.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Can I use the IF function to display a message

Assuming your value is in A1, put this in B1:

=IF(A1<18.5,"Under",IF(A1<25,"Normal",IF(A1<30,"Ov er","Danger")))

Hope this helps.

Pete

On Jun 16, 11:09*am, "oilhen" wrote:
I want to display a message in a cell, but I'm not sure the "IF" function
can do this?

Example:

a.. Under = <18.5
a.. Normal = 18.5-24.9
a.. Over = 25-29.9
a.. Danger = *greater 30

Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 44
Default Can I use the IF function to display a message


hi oilhen
I wrote this function and examed it.
"A1" cell,for functhon(message) and "A2" cell,for number.


=IF(A2<=18.5,"under",IF(A2<=24.9,"normal",IF(A2<=2 9.9,"over",IF(A2=30,"danger"))))
pleas send me e-mail a bout this subject and others.
thanks.



"oilhen" wrote:

I want to display a message in a cell, but I'm not sure the "IF" function
can do this?

Example:

a.. Under = <18.5
a.. Normal = 18.5-24.9
a.. Over = 25-29.9
a.. Danger = greater 30

Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Can I use the IF function to display a message

Interesting that you've decided to exclude values between 29.9 and 30 (and
would therefore return FALSE for an input within that range), but you've
given an answer for those between 24.9 and 25. The OP, of course, should
have been clearer.
--
David Biddulph

"nader" wrote in message
...

hi oilhen
I wrote this function and examed it.
"A1" cell,for functhon(message) and "A2" cell,for number.


=IF(A2<=18.5,"under",IF(A2<=24.9,"normal",IF(A2<=2 9.9,"over",IF(A2=30,"danger"))))
pleas send me e-mail a bout this subject and others.
thanks.



"oilhen" wrote:

I want to display a message in a cell, but I'm not sure the "IF" function
can do this?

Example:

a.. Under = <18.5
a.. Normal = 18.5-24.9
a.. Over = 25-29.9
a.. Danger = greater 30

Thanks.





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Can I use the IF function to display a message

Dear All,

It's work fine, thanks all

Oilhen

"David Biddulph" <groups [at] biddulph.org.uk ...
Interesting that you've decided to exclude values between 29.9 and 30 (and
would therefore return FALSE for an input within that range), but you've
given an answer for those between 24.9 and 25. The OP, of course, should
have been clearer.
--
David Biddulph

"nader" wrote in message
...

hi oilhen
I wrote this function and examed it.
"A1" cell,for functhon(message) and "A2" cell,for number.


=IF(A2<=18.5,"under",IF(A2<=24.9,"normal",IF(A2<=2 9.9,"over",IF(A2=30,"danger"))))
pleas send me e-mail a bout this subject and others.
thanks.



"oilhen" wrote:

I want to display a message in a cell, but I'm not sure the "IF"
function
can do this?

Example:

a.. Under = <18.5
a.. Normal = 18.5-24.9
a.. Over = 25-29.9
a.. Danger = greater 30

Thanks.







Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display a message Jarek Kujawa[_2_] Excel Worksheet Functions 0 June 3rd 08 02:44 PM
Display a message Ridhi Excel Worksheet Functions 4 June 3rd 08 02:43 PM
how to display an error message Luzzan Excel Worksheet Functions 1 April 10th 07 10:23 AM
How do I display a message when a cell has a certain value?? [email protected] Excel Discussion (Misc queries) 4 March 28th 07 04:12 PM
Display a message when a file is opened. Sheila New Users to Excel 4 November 15th 05 05:14 PM


All times are GMT +1. The time now is 12:12 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"