+ Reply to Thread
Results 1 to 3 of 3

IF function and validating a value between 2 numbers

  1. #1
    Registered User
    Join Date
    09-09-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    35

    IF function and validating a value between 2 numbers

    Hi All,

    I'm trying to write a function that:

    1) For values less than 4, the cells will turn red and the following text will populate the cells "Major Improvement Needed"
    2) For values between 4 and 5.5 the cells will turn yellow and the following text will populate the cells "Need Improvement"
    3) For values 5.5 to 6, cells will turn green and the following text will populate the cells "Good!"

    All 3 functions will be in 1 cell....how do I do that?

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: IF function and validating a value between 2 numbers

    hi there. say your scores are in A1, try this in B1
    =IF(A1="","",IF(A1<4,"Major Improvement Needed",IF(A1<5.5,"Need Improvement","Good")))

    then assuming your data in A1:B10, select them & go into the Home tab -> Conditional Formatting -> New Rule -> Use a formula to determine which cells to format -> Format values where this formula is true:
    =$B1="Major Improvement Needed"
    format Red

    repeat the steps & change formula to:
    =$B1="Need Improvement"
    format yellow

    and green is the same.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    09-09-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: IF function and validating a value between 2 numbers

    Thanks benishiryo! That worked. :D

    Rep added.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Validating Item Numbers
    By Julez80s in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-05-2013, 12:31 PM
  2. Validating account numbers using IF, OR, etc
    By jaredino in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-02-2011, 05:58 AM
  3. Validating Numbers
    By leo25031 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2009, 12:33 AM
  4. validating numbers n text in same cell
    By kevatt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-06-2006, 09:20 AM
  5. [SOLVED] Validating random numbers
    By plsauditor in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-11-2005, 08:06 PM

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