|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: set color base on cell's value in your Excelby blindluke (Hermit) |
| on Nov 12, 2015 at 14:11 UTC ( [id://1147572]=note: print w/replies, xml ) | Need Help?? |
|
Welcome to the monastery, gbcbooks! What you are trying to do is called conditional formatting. You want to format the cells in a certain way (set background colour), when a certain condition is met. Unfortunately, the module you are using has very limited support for conditional formatting. Basically, you can only set the color tags for negative and positive values, like this:
If you want conditional formatting, I can only suggest that you switch to Excel::Writer::XLSX. It does exactly what you want, has excellent documentation, and a lot of examples, including an example for conditional formatting. Good luck! - Luke
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||