+ Reply to Thread
Results 1 to 13 of 13

Find out if a range of cells match a criteria cell, if yes, color Green, if no color Red

  1. #1
    Registered User
    Join Date
    07-17-2012
    Location
    Atlanta, Ga
    MS-Off Ver
    Excel 2003
    Posts
    7

    Find out if a range of cells match a criteria cell, if yes, color Green, if no color Red

    I am comparing a Dlr number on one cell to four other separate cells. If this same dealer number shows up in one of the four other cells than I would like the creteria cell font to change to a color green. If it doesn't find a match than I would like for the cell font to color red.

    My criteria is in E6, I need to see if this same number shows up in F89, H89, J89, or L89. If it doesn't I would like cell F89 font to color red. If it does I would like the font to color green.

  2. #2
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Find out if a range of cells match a criteria cell, if yes, color Green, if no color R

    r71lima,

    You can use conditional formatting to achieve this. Type of copy & paste the following as a conditional formatting formula to cell F89:

    Please Login or Register  to view this content.
    and set the formatting to Green for that rule. The set the font colour to red for F89. If you then type a value in E6 which is found in any of F,H,J, or L89, the font in F89 will turn green.
    Brendan.


    __________________________________________________________________________________________________
    Things to consider:

    1) You can thank any poster by clicking the * at the left of a helpful post.
    2) You can help to keep the forum tidy by marking your thread as "Solved", if it has been answered to your satisfaction.
    3) Help us to help you, by uploading a sample workbook, showing the type of data you're dealing with, and clearly indicating what the results should be.

  3. #3
    Forum Contributor thameem127's Avatar
    Join Date
    04-06-2012
    Location
    Jeddah,Saudi Arabia
    MS-Off Ver
    Excel 2003,Excel 2007
    Posts
    321

    Re: Find out if a range of cells match a criteria cell, if yes, color Green, if no color R

    Upload your file.I will do it and I send it back to you.

    Thanks


    Thameem

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Find out if a range of cells match a criteria cell, if yes, color Green, if no color R

    Hi r71lima,

    Try this:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  5. #5
    Registered User
    Join Date
    07-17-2012
    Location
    Atlanta, Ga
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Find out if a range of cells match a criteria cell, if yes, color Green, if no color R

    Wow, the computer is giving me a hard time with uploading my file.

  6. #6
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Find out if a range of cells match a criteria cell, if yes, color Green, if no color R

    You don't need to upload your file, and in fact you may learn more by trying the suggestions above yourself.

  7. #7
    Registered User
    Join Date
    07-17-2012
    Location
    Atlanta, Ga
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Find out if a range of cells match a criteria cell, if yes, color Green, if no color R

    Thank you so much for all your help. I am behind and have been trying to follow the directions of the others but can't seem to get it to work. Thae attachement might provide more info on what I need to happen.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    07-17-2012
    Location
    Atlanta, Ga
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Find out if a range of cells match a criteria cell, if yes, color Green, if no color R

    If the number under the column FieldLink matches any of the numbers under the column Calendar in the previous week, I need that number to turn green, Bold Green, Cell itself turn green (any of these to let me know there is a match), if there are no matches, then I need it to turn red. I will have to duplicate this for all the numbers under the columns named FieldLink.

  9. #9
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Find out if a range of cells match a criteria cell, if yes, color Green, if no color R

    r7lima,

    The formula I gave you above works; but only if you have numbers formatted as numbers. Your spreadsheet has numbers formatted as text. I have formatted your numbers (in cells F89 & J89) as numbers, and attach file for your information.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    07-17-2012
    Location
    Atlanta, Ga
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Find out if a range of cells match a criteria cell, if yes, color Green, if no color R

    You know, it's always the little things that get me... Geese!! Thank you so much!!!

  11. #11
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Find out if a range of cells match a criteria cell, if yes, color Green, if no color R

    I know, I know - they get me, too Glad to help.

  12. #12
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Find out if a range of cells match a criteria cell, if yes, color Green, if no color R

    Hi r7Lima,

    This will work now that BB pointed out the formatting problem:

    Please Login or Register  to view this content.

  13. #13
    Forum Contributor thameem127's Avatar
    Join Date
    04-06-2012
    Location
    Jeddah,Saudi Arabia
    MS-Off Ver
    Excel 2003,Excel 2007
    Posts
    321

    Re: Find out if a range of cells match a criteria cell, if yes, color Green, if no color R

    Check this attachment and reply Attachment 181331

    Click the test button and see your cells it will automatically changes color.

    Thanks

    Thameem
    Last edited by thameem127; 09-18-2012 at 03:22 PM.

+ 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