# How to change color and font in Excel?

**URL:** <https://forum.knime.com/t/how-to-change-color-and-font-in-excel/72093>\
**Category:** KNIME Analytics Platform\
**Created:** [August 29, 2023, 4:40am UTC](https://forum.knime.com/t/how-to-change-color-and-font-in-excel/72093 "2023-08-29T04:40:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![uix07344](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/u/cc9497/32.png) [@uix07344](https://forum.knime.com/u/uix07344)\
**Post date:** [August 29, 2023, 4:40am UTC](https://forum.knime.com/t/how-to-change-color-and-font-in-excel/72093/1 "2023-08-29T04:40:40Z")

</div>

Dear friends,  
I need to change the font, size and color in knime, and also change the number to thousand format as below?  
How to achieve this result in knime?  
Before:

 ![001](https://forum-cdn.knime.com/uploads/default/original/3X/c/2/c29017d73b00811f700c3bce8c43aca672cc822a.jpeg)

After

 ![002](https://forum-cdn.knime.com/uploads/default/original/3X/2/a/2a5810eb09f6f355e82539d212c2b9b8ba795580.jpeg)

---

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [August 29, 2023, 8:33am UTC](https://forum.knime.com/t/how-to-change-color-and-font-in-excel/72093/2 "2023-08-29T08:33:50Z")

</div>

Hello @uix07344,

you can format existing Excel file using Continental extension:

> **[Continental Nodes for KNIME](https://hub.knime.com/continental_knime_extension_developer/extensions/com.continental.knime.feature/latest)**
>
> The Continental Nodes for KNIME Extension provides data processing and reporting capabilities intended for business users of the KNIME Analytics Platform. This…

You can find workflow examples on above link as well.

Br,  
Ivan

---

<div class="post-metadata">

**Author:** ![ScottF](https://forum-cdn.knime.com/user_avatar/forum.knime.com/scottf/32/61316_2.png) [@ScottF](https://forum.knime.com/u/ScottF)\
**Post date:** [August 29, 2023, 2:34pm UTC](https://forum.knime.com/t/how-to-change-color-and-font-in-excel/72093/3 "2023-08-29T14:34:26Z")

</div>

Within KNIME you could also try the new [Number Format Manager](https://kni.me/n/UWKMKdjmp84_TtdB) node. (It’s so new I can’t remember the name of it sometimes 😅 )

Also, again within KNIME, you can edit CSS to change how things appear in a table view. This workflow provides an example:

> **[Add Colors to Table Cells – knime](https://hub.knime.com/knime/spaces/Workflow%20Snippets/latest/Add%20Colors%20to%20Table%20Cells~Q-E_6XmNXVqQ_WgV)**
>
> This workflow snippet shows a possible way to append colors to individual cells depending on the value. We configure the Rule Engine node to determine the colo…

---

<div class="post-metadata">

**Author:** ![uix07344](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/u/cc9497/32.png) [@uix07344](https://forum.knime.com/u/uix07344)\
**Post date:** [August 30, 2023, 3:17am UTC](https://forum.knime.com/t/how-to-change-color-and-font-in-excel/72093/4 "2023-08-30T03:17:54Z")

</div>

![image](https://forum-cdn.knime.com/uploads/default/original/3X/5/b/5bba40e2d8f93fa8e423456d7072dba27b625730.png)  
Hello ScottF, I add one excel writer in the example workflow, but there is no color inside. My Knime version is 4.7

---

<div class="post-metadata">

**Author:** ![takbb](https://forum-cdn.knime.com/user_avatar/forum.knime.com/takbb/32/57077_2.png) [@takbb](https://forum.knime.com/u/takbb)\
**Post date:** [August 30, 2023, 7:43am UTC](https://forum.knime.com/t/how-to-change-color-and-font-in-excel/72093/5 "2023-08-30T07:43:47Z")

</div>

Hi @uix07344 , looking at the continental nodes, that @ipazin mentioned, they can appear a little overwhelming, but you may find the following posts of interest:

> [@Auto generating common tags for Continental XLS Formatting Nodes](https://forum.knime.com/t/auto-generating-common-tags-for-continental-xls-formatting-nodes/47590):
>
> I hadn’t really got into using the Continental XLS Formatting nodes for my own work until about a week ago. They are a great extension to KNIME, but I just had not really had a need to format my output spreadsheets. I’d tried to assist on the odd forum thread but never felt I could just go format a spreadsheet “on demand” without having to go back and re-read the tutorials or examples to remind myself how it worked. Even when I might have wanted to, I put it in the “too-hard” basket and decided…

> [@Extra simple workflow to color header row backgrounds in Excel file](https://forum.knime.com/t/extra-simple-workflow-to-color-header-row-backgrounds-in-excel-file/48496/4):
>
> Hi @Nazaire, The Contintental Nodes are great but there is an initial learning curve which I agree with you makes them appear “overkill” when all you want is to format the headings. This is exactly where I found myself, and so I created the following component, to take away the complexity in handling the simple use case. How about this for a “simple” workflow: There is practically zero configuration here other than specifying the Sheet Name on the “Auto Tag Generator” and the shee…

The widely used alternative to using the Continental Nodes is the `Write to Excel Template`, node which I’ve not used myself (but keep meaning to try when I have the need)… but I know somebody who has… @iCFO😉

> [@How to work with XLS Formatter](https://forum.knime.com/t/how-to-work-with-xls-formatter/71259/8):
>
> @Heinz I work heavily between KNIME and Excel and I find this node to be infinitely easier if you are proficient on the Excel side. The Continental nodes are fine if you just want a few simple formatting rules applied to clean up a table, but if you really want to dial in a nice presentation it will cost you hours. I can do the same thing with the write to a template approach in a few minutes as well as include conditional formatting, user interaction settings, graphs, etc. You can also writ…

And I should also mention the OpenPyxl route as another option:

> [@Extra simple workflow to color header row backgrounds in Excel file](https://forum.knime.com/t/extra-simple-workflow-to-color-header-row-backgrounds-in-excel-file/48496/6):
>
> @Nazaire I built a slightly different example of the use of OpenPyxl with some configuration. It would determine the number of columns and then set a pre-defined style, auto-size the columns and freeze the top row. The same principles could be applied to other formats. So if you like coding you could do it with [OpenPyxl](https://hub.knime.com/search?type=Workflow&tag=openpyxl&sort=best) slight_smile [image] [kn\_example\_python\_excel\_format\_header.knwf](https://forum.knime.com/uploads/short-url/YdoO1BCO0mrIcaGAZFHoxBVw7W.knwf) (130.1 KB)

---

<div class="post-metadata">

**Author:** ![ScottF](https://forum-cdn.knime.com/user_avatar/forum.knime.com/scottf/32/61316_2.png) [@ScottF](https://forum.knime.com/u/ScottF)\
**Post date:** [August 30, 2023, 8:24pm UTC](https://forum.knime.com/t/how-to-change-color-and-font-in-excel/72093/6 "2023-08-30T20:24:38Z")

</div>

Just to be clear, the two examples I gave were for displaying table information _within KNIME views_. If your ultimate goal is to write back out to Excel again, you’ll need to familiarize yourself with the Continental extension mentioned by ipazin and takbb.

---

<div class="post-metadata">

**Author:** ![Daniel\_Weikert](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/d/e47c2d/32.png) [@Daniel\_Weikert](https://forum.knime.com/u/Daniel_Weikert)\
**Post date:** [August 31, 2023, 3:39pm UTC](https://forum.knime.com/t/how-to-change-color-and-font-in-excel/72093/7 "2023-08-31T15:39:18Z")

</div>

Write to Excel Template Node.  
br

---

<div class="post-metadata">

**Author:** ![uix07344](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/u/cc9497/32.png) [@uix07344](https://forum.knime.com/u/uix07344)\
**Post date:** [September 4, 2023, 7:20am UTC](https://forum.knime.com/t/how-to-change-color-and-font-in-excel/72093/8 "2023-09-04T07:20:20Z")

</div>

Thank you! It is easy to handle with this note.

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [September 11, 2023, 7:20am UTC](https://forum.knime.com/t/how-to-change-color-and-font-in-excel/72093/9 "2023-09-11T07:20:33Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
