Fill table cells with color % depending on cell content

Hi.
I'm working on a document with a lot of tables filled with percentages. The tables are originally on a Word document and the table cells are tinted according to their content: a value of 20% on the cell corresponds to a tint of 20%. This is done automatically on the Word document through a conditional formatting option that applies a graded color scale. Is there any way to do this in InDesign? I tried placing the tables and tried all options, but the color is not imported. Perhaps a script or a GREP style?
Thank you.

Conditional formatting in Word is done via formula, but in Excel it is handled more "on the surface" and Excel's conditional formatting carries into InDesign nicely via Place or Paste. It could be worth considering moving those tables into Excel.
InDesign doesn't do this kind of formatting as a native function, but it couldn't hurt to ask about possible scripted solutions in the Scripting Forum.

Similar Messages

  • Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.? I want to alter the formatting (i.e., text and/or cell background color), but not cell content.

    Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.?
    I want to alter the formatting (i.e., text and/or cell background color), but not the content, of the target cell(s).

    Hi Tom,
    Your LOOKUP formula will return a value that it finds in the "other" table. That value can be used in conditional highlighting rules. (Numbers 3 calls it conditional highlighting, not conditional formatting. Just to keep us awake, I guess, but it works the same).
    Please explain what you are trying to do.
    Regards,
    Ian.

  • How to fill a symbol with color

    How to fill a symbol with color?

    Good day!
    What do you mean by »symbol« in this case?
    Is this on a Layer of its own or is it part of a photograph?
    Could you please post a screenshot with the Layers Panel visible?
    Regards,
    Pfaffenbichler

  • Filling an outline with color

    I'm using Illustrator CC.  When I draw an outline with either the pencil tool or the paintbrush tool, I can't fill it in with color, even though the path appears to be closed.  The "fill" square has a red diagonal line through it and won't switch to a color.  Any help would be appreciated.
    Thanks,  Ann

    Red slash is nothing to worry about, that just means measn fill of none.
    Make sure you have the path selected, and then try using the appearance palette instead to fill. You can either click on the arrow and do a dropdown as in the screenshot. Or as you can see the fill is highlighted (light blue running in back of the word Fill) and then click on a swatch in swatches.
    You can also double lcikc on the pencil tool, adn enable fille new pencil strokes.
    which will then use your fill and stroke colors.

  • How to export table data with coloring of cell according to value.

    Hi all,
    I am using jdeveloper 11.1.1.6
    i want to export table data with lot of formatting. like with coloring of cell according to value and so many.How to do that?

    Hi,
    like with coloring of cell according to value and so many.How to do that?
    Answer is, you can't
    Frank

  • JTable cell with colored string

    Hi,
    How can I make colored string in cell (string with different colors) ?

    Supposing you haven't used your own customized cell renderers, the following code must work..
    ((DefaultTableCellRenderer)<<yourtable>>.getCellRenderer(<row>, <col>)).setForeground(Color.BLUE);
    This will paint all the cells of same type as cell(<row>, <col>) in blue.
    If you want only certain cells in your table to be painted in a perticular colour, you may have to write a customized renderer yourself, extending the javax.swing.table.DefaultTableCellRenderer class, and override its getTableCellRendererComponent(...) method as per your required functionality.

  • ALV Table - Different Search Help depending on Cell

    Hey you experts,
    For my current project I'm working on an editable ALV Table. The table has three columns and shall contain:
    1) The name
    2) The Old value
    3) The New Value
    of an item.
    The name of the item is known (e.g. Product Category, Accounting Type and so on).
    The main problem: I have/want to offer search-help to the user in the second and third column depending on the content of the first cell ==> The search help can of course differ in several rows. Example:
    NAME         OLD-VALUE         NEW-VALUE
    P.Category     Computer           Notebook
    Acc.Type.       A                            B
    The Computer field, shall have a search-help for a differnt data-type (DDIC help) than the A/B types.
    Is this possible? There should be a kind of "On-Open-F4-Help" event in which i can adjust the F4 help, which shall be used depending on the currently selected cell.
    Thanks for any help,
    greetings,
    Timo Stark

    Hey Sam,
    Yes I was able to achieve it. Create a collective search help, which includes all relevant data-elements.
    Create a search hel exit.
    Use the following code:
      IF CALLCONTROL-STEP <> 'SELONE' AND
         CALLCONTROL-STEP <> 'SELECT' AND
         " AND SO ON
         CALLCONTROL-STEP <> 'DISP'.
         EXIT.
      ENDIF.
    * STEP SELONE  (Select one of the elementary searchhelps)
    * This step is only called for collective searchhelps. It may be used
    * to reduce the amount of elementary searchhelps given in SHLP_TAB.
    * The compound searchhelp is given in SHLP.
    * If you do not change CALLCONTROL-STEP, the next step is the
    * dialog, to select one of the elementary searchhelps.
    * If you want to skip this dialog, you have to return the selected
    * elementary searchhelp in SHLP and to change CALLCONTROL-STEP to
    * either to 'PRESEL' or to 'SELECT'.
      DATA: lv_line LIKE LINE OF SHLP_TAB,
            lv_line_tmp LIKE LINE OF SHLP_TAB.
      DATA lv_current_context_element TYPE REF TO IF_WD_CONTEXT_ELEMENT.
      DATA lv_parent_data TYPE /SIE/SRM_FYC_CHANGE.
      DATA:lv_current_node TYPE REF TO IF_WD_CONTEXT_NODE,
           lv_index TYPE i.
      IF CALLCONTROL-STEP = 'SELONE'.
        lv_current_context_element = CL_WDR_VALUE_HELP_HANDLER=>M_CONTEXT_ELEMENT.
        lv_current_node = lv_current_context_element->get_node( ).
        lv_index = lv_current_context_element->get_index( ).
        lv_current_node->get_static_attributes( exporting index = lv_index importing static_attributes = lv_parent_data ).
        "switch over parent data..
        CASE lv_parent_data-type.
          WHEN 10.
            "cost center
            lv_line-SHLPNAME = 'BBP_F4_COST_CTR'.
          WHEN 3.
            lv_line-SHLPNAME = 'COM_CAT'.
          WHEN OTHERS.
            lv_line-SHLPNAME = ''.
            callcontrol-step = 'EXIT'.
            EXIT.
         ENDCASE.
         LOOP AT shlp_tab INTO lv_line_tmp.
            IF lv_line_tmp-shlpname <> lv_line-shlpname.
              DELETE TABLE shlp_tab FROM lv_line_tmp.
              CONTINUE.
            ENDIF.
         ENDLOOP.
         callcontrol-step = 'PRESEL'.
        EXIT.
      ENDIF.
    * STEP PRESEL  (Enter selection conditions)
    * This step allows you, to influence the selection conditions either
    * before they are displayed or in order to skip the dialog completely.
    * If you want to skip the dialog, you should change CALLCONTROL-STEP
    * to 'SELECT'.
    * Normaly only SHLP-SELOPT should be changed in this step.
      IF CALLCONTROL-STEP = 'PRESEL'.
    *   PERFORM PRESEL ..........
        EXIT.
      ENDIF.
    * STEP SELECT    (Select values)
    * This step may be used to overtake the data selection completely.
    * To skip the standard seletion, you should return 'DISP' as following
    * step in CALLCONTROL-STEP.
    * Normally RECORD_TAB should be filled after this step.
    * Standard function module F4UT_RESULTS_MAP may be very helpfull in this
    * step.
      IF CALLCONTROL-STEP = 'SELECT'.
    *   PERFORM STEP_SELECT TABLES RECORD_TAB SHLP_TAB
    *                       CHANGING SHLP CALLCONTROL RC.
    *   IF RC = 0.
    *     CALLCONTROL-STEP = 'DISP'.
    *   ELSE.
    *     CALLCONTROL-STEP = 'EXIT'.
    *   ENDIF.
        EXIT. "Don't process STEP DISP additionally in this call.
      ENDIF.
    * STEP DISP     (Display values)
    * This step is called, before the selected data is displayed.
    * You can e.g. modify or reduce the data in RECORD_TAB
    * according to the users authority.
    * If you want to get the standard display dialog afterwards, you
    * should not change CALLCONTROL-STEP.
    * If you want to overtake the dialog on you own, you must return
    * the following values in CALLCONTROL-STEP:
    * - "RETURN" if one line was selected. The selected line must be
    *   the only record left in RECORD_TAB. The corresponding fields of
    *   this line are entered into the screen.
    * - "EXIT" if the values request should be aborted
    * - "PRESEL" if you want to return to the selection dialog
    * Standard function modules F4UT_PARAMETER_VALUE_GET and
    * F4UT_PARAMETER_RESULTS_PUT may be very helpfull in this step.
      IF CALLCONTROL-STEP = 'DISP'.
    *   PERFORM AUTHORITY_CHECK TABLES RECORD_TAB SHLP_TAB
    *                           CHANGING SHLP CALLCONTROL.
        EXIT.
      ENDIF.
    greetings

  • Help needed badly with coloring of specific cells in a tble

    I have an existing table and when this code, it colors all the cells in a column. Hoe can I use the funktion getCellRenderer: to color only one cell at a time and implement it in an already existing table.
    THX for any help I can get :)
    ColorRenderer cell=new ColorRender();
    // for(int i=0;i<table.getModel().getColumnCount();i++){
    // TableColumn mod=this.getColumn((this.getModel().getColumnName(i)));
    mod.setCellRenderer(cell);
    And ur ColorRender calss should override DefaultTableCellRenderer like this
    class ColorRenderer extends DefaultTableCellRenderer {
    protected int align;
    public ColorRenderer(int align) {
    this.align=align;
    public Component getTableCellRendererComponent(JTable table,
    Object value, boolean isSelected, boolean hasFocus, int row,
    int column) {
    setHorizontalAlignment(align);
    super.getTableCellRendererComponent(table, value, isSelected,
    hasFocus, row, column);
    if(col==4){
    setBackground(Color.cyan);
    return this;
    }

    Here's a bit of Friday Fun: before you run this code, what do you think the table will look like?
    What will it look like as you click and drag on it to select cells?
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class X {
        static class R extends DefaultTableCellRenderer {
            public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
                Component that = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
                Color bk = that.getBackground();
                that.setBackground((row + column)%2==0? bk.darker() : bk.brighter());
                return that;
        public static void main(String[] args) {
            JTable table = new JTable(20,10);
            table.setDefaultRenderer(Object.class, new R());
            JFrame f = new JFrame("X");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(new JScrollPane(table));
            f.setSize(400, 300);
            f.setLocationRelativeTo(null);
            f.setVisible(true);

  • Photoshop CS6 - How can javaScript fill blank layer with color?

    Hello,
    I'm a production artist and I work with PSD files that were created in Adobe Scene7 Image Authoring Tool. These PSDs contain a background layer along with 1-20 alpha channels. My script has to make new blank layers based on the number of alpha channels and then it has to fill the new layers with light gray. The RGB values are 161, 161, 161. I checked the PSCS6 JavaScript Reference pdf, but I don't see a method that would do this for artLayers. (Let me also say that I'm new to javaScript).
    Does anyone know how to fill a blank layer with these RGB values?
    Here's my script so far:
    #target photoshop 
    // declare variable to contain the active document
    var myDoc=app.activeDocument;
    // declare variable to contain the number of alpha channels, excluding the RGB channels
    var alphaChan = myDoc.channels.length - 3;
    // create loop to make new layers based on number of alpha channels and fill each layer with gray
    for (a=0; a<alphaChan; a=+1){
    myDoc.artLayers.add();
    if (myDoc.artLayers.length == (alphaChan + 1)) {
        break;

    var color = new SolidColor();
    color.rgb.red = 161;
    color.rgb.green = 161;
    color.rgb.blue= 161;
    myDoc.selection.fill(color);

  • Dynamically re-render cells with event in another cell

    Dear all,
    I have a JTable that uses the default cellrenderer, it has two checkboxes, one of which disables the entire row, except for itself, so the row can be re-enabled.
    However, I want to be able to color in the row Color.GRAY or some other suitable color. I started to create my own cell renderers for the different object types in my rows, when I realised that I had no idea how to re-render any cell in a row, once ive checked the 'disable row' cell...
    there should be a way to fire this right? Also, in creating my own cell renderers, im having difficulty making them do the same thing as the normal cell renderers, apart from change color, is there any source code for the Boolean and Number cell renderers that comes with the java?
    Thanks
    Sam

    I have a JTable that uses the default cellrenderer, it
    has two checkboxes, one of which disables the entire
    row, except for itself, so the row can be re-enabled.
    However, I want to be able to color in the row
    Color.GRAY or some other suitable color. I started to
    create my own cell renderers for the different object
    types in my rows, when I realised that I had no idea
    how to re-render any cell in a row, once ive checked
    the 'disable row' cell...you probably need to change the color first and then disable the row, from the callback of the checkbox. For example, you first call:
    yourTableModel.fireTabelCellUpdated(row, other_column)
    // the renderer of other_column changes color now
    then disable the row.
    there should be a way to fire this right? Also, in
    creating my own cell renderers, im having difficulty
    making them do the same thing as the normal cell
    renderers, apart from change color, is there any
    source code for the Boolean and Number cell renderers
    that comes with the java?The complete source code comes with your JDK installation, e.g:
    UNIX: /usr/j2se/src.jar
    Windows: c:\Program Files\jdk1.3\src.jar
    jar -xvf src.jar, and look at the code.

  • With one cell with text, make 2 cells with 2 texts

    Hi,
    I have one column with first name and last name in a same cell (like 'Laurent Didden')
    I would like to transform automatically one column in 2 columns where one column will be with the first name, and the second column with the last name.
    How can I do that?
    Thank you for your help...
    Pat.

    Pat,
    Excel may have that function, I'm quite sure that Numbers does not. Numbers is in its first version and is not a clone of Excel in any case. The functions are not so complicated as they may seem.
    FirstName function translated into English is:
    If the WholeName is blank, Then leave the FirstName cell blank; Else put here the Left portion of WholeName, up to one character less than the position of the first Space Character you find in WholeName.
    The LastName function translated into English is:
    If WholeName is blank, Then leave the LastName cell blank; Else put here the Right portion of WholeName, the number of characters equal to the total length of WholeName minus the position of the first Space Character in WholeName.
    Hope this helps. Good luck.
    Jerry

  • Fill multiple layers with color (CS3)?

    Using Photoshop CS3
    I created a button set for a web forum. Each button is in its own group. Each group contains a text layer and a base layer. And each button appears to be next to each other, even though they are on different layers in different groups. This allows Photoshop to slice things up as different buttons when I save to web or devices.
    Here’s my quandry. The buttons are 1 solid color with 2 borders. I want to replace the button color on all buttons, but leave the borders alone. Using Magic Wand set to Sample all Layers I can get a marquee that appears to select all the areas on all the layers. But when I use the bucket tool to replace that color on all layers, it won’t do it. It puts all the color on the top layer – even though I have the bucket tool set to All Layers.
    Is there a way to fill all the layers in the way I want.
    By the way, I thought of using a color overlay on each button, and then I could simply copy the style to all the base layers. But see no way to also have two independent strokes for the two outline colors. On the other hand, if you know of some better way to do any of this, please let me know.

    I'm sorry. I intended to mention that Fill doesn't work either, but it looks like I left that out. Using the Fill command places all the color on the top layer only. I also tried using Select Similar along with Bucket or Fill to select the base layers, but that didn't help.

  • Filling different paths with color

    Hi, i am stuck with filling my path, i don t know hot to merge, or unite specific parts of different paths, I hope the picture explain it better, i want to fill the area marked orange with solid color. I am using Illustrator CS6.
    Cheers, de Filippo

    Take a look at Live Paint and Shape Builder tool.

  • I cant fill my layers with color

    Ive selected my later, selected my area to color.. have marching ants, and the area wont fill with paintbucket or pattern. HELP!

    You should have no problem doing that. You must be doing something other the what you write. A screen capture of you problem may help Identify what wrong.

  • Fill outline fonts with color and keep it vector

    Is there a way to fill the inside of a type that is an outline without rasterizing the font and using the paint bucket?
    The reason I need to keep it vector is because the finished graphic will be sized from 50 to 300 dpi and the edges will soften when scaled. Below is an example of the font style with two treatments. For the red fill I rasterized  the font, then used paint bucket. The other with the green behind is to show the inside transparency of the font.

    I guess the op meant upping the resolution of the document? The poster didn't say why they can't start with a document 300
    and maybe it would be better to fill the areas after upping the resolution.
    Anyway, this is a 680x480 document at 72 resolution and i did use the magic wand for the intial selection, then used quick mask to fix a few spots, contracted the selected 1px
    and then made the work path using a tolerance of 0.5. (400% view)
    path
    after color fill layer below the text layer
    upscaled to a resolution of 300 (100% view)
    after fixing the path in areas highlighted above (and a few others)
    MTSTUNER

Maybe you are looking for

  • Last week I upgraded to ios 6.1 and now wifi is hardcoded 'off' I am not able to set it as on

    I upgraded to ios 6.1 and now wifi is hardcoded 'off' I am not able to set it as on Does any body have solution to above problem.......

  • Oracle DLL Error using AQ (in Oracle 10g) from Visual Basic

    Hi, everybody I have a Visual Basic 6 (with SP 6) application which connect to Oracle through an ODBC connection. Not only the client but also the server use Oracle 10.2.0.3. The application accesses to Oracle Queues by using OraAQ, OraDatabase, OraS

  • Mass change in BOM status to inactive

    Hi, I want to change the status of BOM Alternate header to inactive. I want to do the same for some 1000 BOMs in one shot. Is there a way to do the same. Please suggest

  • Item Groups G/L settings

    Our postings to G/L COGS are done by ITEM GROUPS therefore the ITEM GROUP Setup/Accounts screen governs most of the postings to the G/L. a.What I wonder if anyone knows of a chart that shows which function in SAP effects whch Nomial Setting in this s

  • Setting the time in CUE

    Gurus, I have a CUE module attached to a 2801 router, running CME. The time on the CME is correct, but the time-stamp the CUE leaves on messages is 45 minutes slow. How can I set the time? As far as I know, I have no NTP server to point the thing to,