

- #Openoffice conditional formatting strings how to#
- #Openoffice conditional formatting strings upgrade#
- #Openoffice conditional formatting strings series#
A better soution would be “for every value in the list do something”.
#Openoffice conditional formatting strings series#
You will notice that only when added the OR clause the result become a cell from an array.Ī new version is available, closer to my wish: LayerDbase(NCS5).png, but is there any way to compact those long series of if/else, and make them more powerfull and universal? For example please have a look at the Line Type formula. In the first sheet you can find the single steps of the formula to reach my intent: LayerDbase(NCS5)test.png Please find attached the file (as always, rename it as *.ods). See the question here, which shows a macro for 4 conditions. Here is the dialog for AOO: If sticking with OpenOffice is a requirement, then you could write a macro.
#Openoffice conditional formatting strings upgrade#
“ Keywords.F4:F11” is the array of words that, if “layername” has any of them, the output of the formula will be “ hidden”. Upgrade to LibreOffice, which allows an unlimited number. Cell A4 is formatted if Cell A4 contains ''. For example, I want the formula to work in such a way that: Cell A3 is formatted if Cell A3 contains ''.
#Openoffice conditional formatting strings how to#
Now I can't seem to figure out how to change this formula to affect each individual cell based on it's own value. “ layername” is the cell with the text wich content I have to analize I've finally found a formula that works: COUNTIF (A3 '.')>0. Here’s a solution: first I had to learn arrays, and the final formula is: =IF(OR(ISNUMBER(SEARCH(Keywords.F4:F11 layername))) "hidden" "") Please find my work-in-progress calc file at this link: The Calc file will be distributed with a CC license. Is there any formula, possibly avoiding a macro?Īny help will be appreciated. Now I need a formula to check all the words inside the given cell range “bold Layers”. I found the text function “SEARCH” ( Ricerca in my Italian version) that can find a word inside a string. The script will be extracted to Scripts/python/p圜alc/ConditionalFormats.py within your profile folder. So now I shall check the content of the layer’s name if it contains ANY of the given words. Installation: Download the document ConditionalFormats.py.odt to a 'trusted directory' according the the macro security settings. Portanto, cada vez que algum valor de string aparece na coluna B, a coluna inteira colorida em determinada cor. In this article, we're going to be learning about a whole host of different tips and tricks related to C String and Formatting.In this article, we're going to be learning about a whole host of. So for keywords like “bold line” or “section” or “outline” a large line should be used. Eu tenho que colorir as linhas do Calc, com base em alguma condio de string. So I made new tables of keywords to associate keywords to, let’s say, line weight. Now I wish to suggest also line weight and line type to be used. The layer to draw Contractor/Shop Drawings: Walls, Redlines, Wood (Future work) shall be named Z-WALL-REDL-WOOD-F

I can select what I’m going to draw from some lists and it gives me the suggested name, as an example: I made a “database” of keywords to build up Cad layer’s name from them. Is there any way to check if a given string cell contains any of the values in a given set of cells?
