+ Reply to Thread
Results 1 to 6 of 6

Conditional formatting question

Hybrid View

  1. #1
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Conditional formatting question

    Assuming your first column is A and second column is B. And the data can be there in the range A2:A100, then select the range A2:A100 and make New Rule for conditional formatting using the formulas given below...

    For Green
    =ISNUMBER(MATCH(A2,$B$2:$B$100,0))
    For Red
    =AND(A2<>"",ISERROR(MATCH(A2,$B$2:$B$100,0)))
    Change the column and range reference as per your need.
    Hope this helps.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  2. #2
    Registered User
    Join Date
    05-22-2014
    Posts
    15

    Re: Conditional formatting question

    Hi Sktneer,

    Thank you for the reply. I may be doing something incorrectly because it's not working the way it should. Just to simplify the example in column A I put in some sample data, numbers 1 through 10 through cell A10. In column B I applied the formulas you kindly provided and then entered some data to see if it would respond correctly. Here are the issues I found:

    For some reason if the value doesn't exist, in this case I chose the number 11, it did not make the cell red.
    If the numbers did match it would highlight the cell next to the value in column A with red instead of highlighting the cell in column B with green.
    If the value happened to match and be in the same row the cells would turn white.

    Maybe I did a poor job of explaining what I need? Column A will be populated with data, column B's job is to search column A for the data and if it matches, no matter what row it's in, turn it green, if it doesn't, turn it red.

    To apply the conditional formatting I simply went to new rules and used the "use a forumla to determine which cells to format" section, is that correct? Thank you again for the help!
    Last edited by phmdt; 05-22-2014 at 03:29 PM.

+ 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. Conditional Formatting Question
    By nboris827 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-24-2012, 07:42 PM
  2. Question about Conditional Formatting
    By excelmaster5000 in forum Excel General
    Replies: 3
    Last Post: 02-20-2009, 08:18 PM
  3. Conditional Formatting Question
    By daredevil in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-16-2007, 10:42 AM
  4. Another conditional formatting question
    By onions in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-07-2005, 07:53 AM
  5. [SOLVED] conditional formatting question
    By Deb in forum Excel General
    Replies: 0
    Last Post: 03-22-2005, 11:07 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