I have inherited an Excel sheet (from a previous employee) that uses background color to convey information, rather than placing values in the cells.
Although the document is an Excel sheet, our office is using LibreOffice for our suite.
Currently, this Excel sheet is looked at by human eyes only, but soon this sheet will be fed into a larger system. It will make more sense for this particular column in the sheet to have actual data rather than just styles.
How can I search/replace all cells in a column of data based on styling of the cell, AND add a value in the place of the background color.
- if the cell has a background color (in this case: black), replace that with no background color.
- then, add some value into the cell (for this sheet, a simple TRUE or FALSE should probably be good enough)
Very rough pseudo-code for what I hope to be able to do:
for each ( cell in column-X of sheet(1) ) {
if cell.background.color == BLACK {
cell.background.color = NO_BACKGROUND_COLOR
cell.value = "false"
}
}