+ Reply to Thread
Results 1 to 2 of 2

Conditional formatting of table based on values from different tabs

  1. #1
    Registered User
    Join Date
    09-07-2017
    Location
    Oslo, Norway
    MS-Off Ver
    MS W10
    Posts
    4

    Conditional formatting of table based on values from different tabs

    Given a table in tab named Main:
    Capture.PNG

    Then 2 additonal tabs in same file named:
    car1
    car2

    Based on values from specific cells in tab car1 I color 15 e.g. (B1) yellow and (C1) 30 in red.
    So far so good. The conditional formatting setup for each cell horisontally (B1 and C1) for car1 consists of about 7 rules giving different formatting (colors).

    One rule for car1 cell with value 15 (B1) and 30 (C1) respectively can be:

    =(IF((car1!C32/37.5)>0.8,1)) giving a yellow color

    So each car1 cell has same rules but retrieve info from different columns. This means I can drag lower right corner of cell with value 15 (B1) to the right and copy it to cell with value 30 (C1). So horisontally the copy/paste of formatting is easy.
    On the next line (car2) I have to get data from car2 tab though, so I can't just copy/paste formatting from line above (car1). Or can I? B2 formatting rule would be: =(IF((car2!C32/37.5)>0.8,1)) giving a yellow color

    So my questions...
    1) Can I copy/paste formatting also between car1 and car2 lines (eg B1 to B2) even though they are based on different data from different tabs?

    2) Another option. Each line in Main sheet starts with same name as tab-name for which I need to retrieve data. E.g. A1 cell has same name (car1) as tab (car1) which I need to retrieve data for in B1.
    Can I use this to make the copy/paste work by e.g. making rules using tab-name (from first cell to the left) in formula. In case how will the syntax be?

    Original:
    =(IF((car1!C32/37.5)>0.8,1)) giving a yellow color

    Change to something like this with a correct syntax. "name in leftmost cell" to be replaced by some magic:
    =(IF(("name in leftmost cell"!C32/37.5)>0.8,1)) giving a yellow color

    Any ideas?

    EDIT: Forgot to add an excel-example. Will add one when I find out how to make the attachments button work. Seems to hang in my chrome browser unless it requires other subscription.


    /B
    Last edited by oladunk; 09-07-2017 at 07:47 AM. Reason: Clarification

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

    Re: Conditional formatting of table based on values from different tabs

    try
    =(INDIRECT(A2&"!C32")*37.5)>0.8

    as you copy down the tab ref will change - but not the cell - it will always be C32

    Is that an issue

    you dont need an if in your example
    conditional formatting just needs true or false
    so you can use
    =a1>b1
    type of formula as that will return true/false without if

    its often better to upload a sample
    Attached Files Attached Files
    Last edited by etaf; 09-07-2017 at 05:14 AM.
    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.

+ 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 - based on a cell value compared to values in a table
    By John Steel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-08-2017, 04:17 PM
  2. [SOLVED] Conditional formatting rule - based on values in a table
    By John Steel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-08-2017, 01:48 PM
  3. conditional formatting for the same table in multiple tabs
    By ammartino44 in forum Excel General
    Replies: 2
    Last Post: 05-12-2015, 01:53 PM
  4. [SOLVED] Macro to create new tabs based off of a type and apply conditional formatting
    By quintans1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-03-2014, 10:56 AM
  5. [SOLVED] Conditional Formatting ? Validation based on Table
    By fdkza in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-22-2014, 08:19 AM
  6. [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
  7. Creating a new Table based on Conditional Formatting in another table
    By JPKenny in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-06-2010, 11:48 PM

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