#1   Report Post  
BHUD
 
Posts: n/a
Default If Function

How would you write this equation?
If value in cell A2 is between 98 and 112 return the word green, If the
value of cell A2 in between 128 and 131 return the word blue, If the value of
cell A2 is between 140 and 145 return the word black, and if the value of
cell A2 is "clinic" return the word red, anything else return 0.

  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

One way:

=IF(AND(A2=98,A2<=112),"green",IF(AND
(A2=128,A2<=131),"blue",IF(AND
(A2=140,A2<=145),"black",IF(A2="clinic","red",0)) ))

HTH
Jason
Atlanta, GA

-----Original Message-----
How would you write this equation?
If value in cell A2 is between 98 and 112 return the

word green, If the
value of cell A2 in between 128 and 131 return the word

blue, If the value of
cell A2 is between 140 and 145 return the word black,

and if the value of
cell A2 is "clinic" return the word red, anything else

return 0.

.

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
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
I cant use englisch function names in a swedich version of excel PE Excel Discussion (Misc queries) 2 December 7th 04 01:00 AM
Find a Function to use accross different worksheets R. Hale Excel Worksheet Functions 3 November 25th 04 07:07 AM
change function variable prompts?? thinkingfield Excel Worksheet Functions 1 November 8th 04 04:01 PM
Counting Function Dilemma Simon Lloyd Excel Worksheet Functions 0 November 8th 04 03:13 PM


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

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

About Us

"It's about Microsoft Excel"