The Specified Content Changes Color

  • Last update:  2021-03-17
  • I. Description

    In the process of making reports, sometimes it is necessary to display the specified content in different colors to achieve the effect of highlighting. As shown below:

    1.jpg

    II.Ideas

    Use rich text box or use HTML tags and HTML to display content

    2.jpg


    III.Examples

    Note: In the methods described below, except for the rich text editing method, the last step of the other methods must use HTML to display the content!

    1.Rich text editing


    By inserting rich text, enter the content directly, and set the color.

    1614888969697885.jpg


    2.Fixed color


    Enter the content directly in the cell, and use the HTM L tag <font color='red'>red</font><font color='specified color'></font> to enclose the content to be colored. Then choose to display the content in HTML. To change the word red to red:

    4.jpg


    3.Use condition attributes


    Set the condition attribute-new value and select the formula form. Enter the formula: replace($$$,"red","<font color='red'>red</font>"). In any case, you want the specified content to change color, so no conditions are set.

    5.jpg


    4.Use advanced properties to display values


    In the cell element, select Advanced-display value, select formula form

    1614889033702378.jpg


    5.Solve with SQL


    Use the replace function in SQL to add HTML tags to the specified content.

    1614889048941754.jpg


    IV.  Effect preview

    1614889059985030.jpg

    The effect in exporting Excel is as follows:

    1614889075871418.jpg

    Note: You will find that the method of setting conditional attributes has no effect in exporting Excel, so it is generally recommended to use the other four.

    V.  Completed template

    The template has been completed, see:

    The Specified Content of the Cell Has Different Colors.cp


    Attachment List


    Theme: Report Features
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy