+ Reply to Thread
Results 1 to 2 of 2

If Function

  1. #1
    BHUD
    Guest

    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. #2
    Jason Morin
    Guest

    Re: If Function

    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 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