+ Reply to Thread
Results 1 to 6 of 6

Conditional Formatting - based on a cell value compared to values in a table

  1. #1
    Registered User
    Join Date
    02-07-2017
    Location
    Pennsylvania
    MS-Off Ver
    2010
    Posts
    5

    Conditional Formatting - based on a cell value compared to values in a table

    Hi everyone,

    I'm looking to write conditional formatting rules for cells that look at another cell's value in comparison to many values in a table titled TableFormatting. If the referenced cell equals a value in one of the table's columns one of eight different formats should apply to that cell. I've attached a simplified version of the workbook that helps illustrate my situation.

    I've tried several variations of rules for the conditional formatting with no luck as of yet so I'm wondering if someone has an elegant solution.

    Thanks so much and let me know if anything I've explained requires further clarification.
    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,732

    Re: Conditional Formatting - based on a cell value compared to values in a table

    i'm afraid I dont understand what you are trying to do
    reading the spreadsheet - did not help

    Based on the orange cell to the left in column A these cells need conditional formatting applied (like in the sample formatting above each column in the table)
    what sample formatting ?
    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
    Registered User
    Join Date
    02-07-2017
    Location
    Pennsylvania
    MS-Off Ver
    2010
    Posts
    5

    Re: Conditional Formatting - based on a cell value compared to values in a table

    Sorry for the confusion.

    I need the cells in column B (like B14) to have formatting dependent on cells in column ! (like A14). The formatting should be determined by comparison of the value in column A to the table TableFormatting. If the value in column A (like A14) is in the table column with the heading [General] then column B's cell (like B14) will get a general formatting. If the value in column A (like A14) is in the table column with the heading [Date] then column B's cell (like B14) will get a date formatting. etc... for comparison to the other table headings.

    I was trying some rules using VLOOKUP but hadn't found something that worked.

    Hopefully whatever rule works can use $A14 and $B14 so that the same conditional formatting rule can be applied to other cells in Column B (like B18 and B22) that will need the same type of conditional formatting.

    Thanks and I hope this is more clear.

  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,732

    Re: Conditional Formatting - based on a cell value compared to values in a table

    i get it now, but dont know how to set that up using normal conditional formatting , i think it would need VBA, which i do not do

  5. #5
    Registered User
    Join Date
    02-07-2017
    Location
    Pennsylvania
    MS-Off Ver
    2010
    Posts
    5

    Re: Conditional Formatting - based on a cell value compared to values in a table

    With some experimentation I've gotten the following formula to correctly return TRUE or FALSE in evaluating cell A14

    =SUMPRODUCT(--($A18=FormattingTable[[#All],[$'#,'#]]))>0

    However I cannot get this formula to be accepted in the conditional formatting window. If it's correctly returning TRUE or FALSE as a regular formula shouldn't it be accepted as a conditional formatting rule or am I missing something?

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Conditional Formatting - based on a cell value compared to values in a table

    Try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Conditional Formatting Based on Cell Values
    By SalientAnimal in forum Excel General
    Replies: 8
    Last Post: 10-26-2016, 03:24 AM
  2. Help with conditional formatting based on cell values
    By ExcelIsTheWayForward in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-26-2015, 07:41 AM
  3. [SOLVED] Conditional Formatting based on multiple values in table
    By jcox1953 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-09-2014, 07:30 PM
  4. Replies: 1
    Last Post: 01-17-2014, 03:33 AM
  5. Conditional Formatting based on cell values
    By nickbrandon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-05-2013, 08:26 AM
  6. Replies: 4
    Last Post: 02-26-2013, 05:01 PM
  7. [SOLVED] Conditional formatting of one of two cels being compared using IF
    By KHansNVa in forum Excel General
    Replies: 3
    Last Post: 04-19-2012, 09:32 AM

Tags for this Thread

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