I have a list:
lis = {{"a", "b", "c"}, {"d", "e", "f"}, {"g", "h", "c"}}
I would like to format the list such that whenever "c" occurs as the last element in a sublist, I would like to change the "c"'s font color to Red.
I would then like to export this array to Excel, generating a 3-by-3 table and preserving the font color change. Is this even possible?
lis /. {v__, "c"} :> {v, Style["c", Red]}. Unfortunately, I don't know whether the formatting can be exported to Excel. – MarcoB Jan 09 '20 at 05:23