+ Reply to Thread
Results 1 to 5 of 5

conditional formatting across worksheets

  1. #1
    Forum Contributor
    Join Date
    01-08-2008
    Posts
    137

    conditional formatting across worksheets

    Hello,

    I am having a problem. So, I will post a somewhat trivial example - but it would be of great use to me.

    I have a workbook with two worksheets. The first worksheet is called 'Enter Data Here' and a person can write in OR paste a list of names in column A. I would like to conditionally format this column of data.

    1- If the name written in OR pasted in is apart of the 'Accepted Names' column on the 2nd worksheet then the color should be GREEN.
    2- If the name written in OR pasted in is NOT apart of the 'Accepted Names' column on the 2nd worksheet then the color should be RED.

    Attached is a sample. I think it makes what I am trying to say much easier to understand.

    Thank you in advance for any help.
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    define a name for your accepted names range say "nameslist"(use insert/name/define/refers to
    ='Accepted Names'!$A$2:$A$9)
    then cf condition 1 formula is
    =MATCH(A2,nameslist,0)
    green
    condition 2
    =ISNA(MATCH(A2,nameslist,0))
    red
    warning i see from your example that some names arnt the same length
    so use trim
    =MATCH(TRIM(A3),TRIM(nameslist),0)
    Last edited by martindwilson; 11-01-2008 at 06:11 PM.

  3. #3
    Forum Contributor
    Join Date
    01-08-2008
    Posts
    137

    thanks for the quick reply

    I will definitely have to use that trim function, the names will not have the same string length. Let me try this stuff out and get back to you.

  4. #4
    Forum Contributor
    Join Date
    01-08-2008
    Posts
    137

    some bugs

    I used formulas 1 and 2 on the 'Enter Data Here' worksheet. I am applying them to the range A2:A1000. (I would like to apply it to the whole column later on)

    For some reason some names come back black? I must be doing something wrong. I have attached my sample with your formulas.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    01-08-2008
    Posts
    137

    solved

    ok - i got it



    Thank you for your help.

+ 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