+ Reply to Thread
Results 1 to 14 of 14

Conditional formatting formula

  1. #1
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Conditional formatting formula

    I have two tables.

    In Both tables I have data of NAMES and MAIL.

    Now I want conditional formatting formula for Name column in table 2

    Rule/Condition : If a name is entered in table 2 column which is out of the names that contain table 1

    simply, if the entered name is not in table 1 names it shall be formatted.

    find the attachment ..

    Thanks in advance ... .. .
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: Conditional formatting formula

    use a formula
    =COUNTIF($F$8:$F$16,$M8)=0

    for 2007, 2010 or 2013 excel version
    Conditional Formatting

    Highlight applicable range >>
    $M$8:$M$16

    Home Tab >> Styles >> Conditional Formatting
    New Rule >> Use a formula to determine which cells to format
    Edit the Rule Description: Format values where this formula is true:

    =COUNTIF($F$8:$F$16,$M8)=0

    Format… [Number, Font, Border, Fill]
    choose the format you would like to apply when the condition is true
    OK >> OK
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Conditional formatting formula

    First of all thanks for the reply,

    but I want to use table references instead of individual cell references in the formula ..

    because my data will go broad day by day

    I tried

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    But it's not working ..

    Give that way too ..

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: Conditional formatting formula

    this should work
    tables references do not work directly in conditional formatting
    but you can use indirect
    =COUNTIF(INDIRECT("TABLE1[NAME]"),INDIRECT("Table2[@NAME]"))=0

    see
    http://www.get-digital-help.com/2012...ting-formulas/
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Conditional formatting formula

    Ok Brother,

    it's working ..

    the " Applies to " range is getting updated to the new range automatically when we are entering to the new row ..

  6. #6
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Conditional formatting formula

    Quote Originally Posted by kprabhupaul View Post
    First of all thanks for the reply,

    but I want to use table references instead of individual cell references in the formula ..

    because my data will go broad day by day

    I tried

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    But it's not working ..

    Give that way too ..
    Its tested in "Show formatting Rules for : "This Table"
    If you add in both table highlighted cell if not match.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: Conditional formatting formula

    the " Applies to " range is getting updated to the new range automatically when we are entering to the new row ..
    yes, thats the advantage of tables , they should auto update
    also applies to pivot table ranges as well

    however, i have shown a way to use table reference in conditional formatting
    http://www.get-digital-help.com/2012...ting-formulas/

  8. #8
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Conditional formatting formula

    First method is also working brother ..

    both " Applies to " range and " formula" getting updated automatically when going to new rows ..

    thanks again ..

    Good Day ahead ..

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: Conditional formatting formula

    your welcome
    if my assistance has helped, and only if you wish to , there is a reputation icon * on the left hand side - you can add to my reputation here

  10. #10
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Conditional formatting formula

    Not working in my Real Document,

    I'm using references of table in another sheet

    but It's not allowing to use references of another sheet.

    please find the attachment and solve ..

    Names of tables in new file table1 = Parties and table2 = master
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Conditional formatting formula

    Here PARTY column of master table is the range to be formatted ..

  12. #12
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: Conditional formatting formula

    try using
    =COUNTIF('DASH H'!$B$13:$B$33,$C3)=0
    as the conditional format
    it should expand with the table
    also only 1 entry that does not match - last one on row 112

    i'm not sure about indirect and tables across sheets
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Conditional formatting formula

    Thanks brother, working

    I solved by this way too ..

    =COUNTIF(INDIRECT("PARTIES[PARTY]"),$C3)=0

  14. #14
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: Conditional formatting formula

    A big thanks ..

    Keep it up ..

+ 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. Replies: 3
    Last Post: 06-19-2015, 07:16 AM
  2. Formatting Cells with Date or Text Values in a Conditional Formatting Formula
    By Phil Hageman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-15-2014, 09:36 AM
  3. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  4. If Formula - conditional formatting - three different formatting rules
    By sharper1989 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-25-2014, 04:49 PM
  5. Replies: 3
    Last Post: 11-28-2013, 02:11 AM
  6. Replies: 1
    Last Post: 07-19-2012, 05:37 AM
  7. [SOLVED] How do I do a complex conditional in a conditional formatting formula
    By Ray Stevens in forum Excel General
    Replies: 6
    Last Post: 03-12-2006, 06:30 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