I can't let go of this problem... It really feels like it should be possible to be solved by just adding something to the IF-formula.
In column R I have this code: =IF(C4="";"";IF(CODE(C4)>CODE(D4);D4;C4))
and in column S I have this code: =IF(D4="";"";IF(CODE(D4)>CODE(C4);D4;C4))
It works perfectly, except for when column C or D have Cd, cd, ce or Ce in them, since they differ (otherwise it's just A or a, P or p and so on, and for that, it works).
Cd or cd ALWAYS has to come last (be sorted into the S- and R-column).
SO.... is it possible to add this to the formulas above?
=IF(C4="";"";IF(CODE(C4)>CODE(D4);D4;C4)) BUT IF C4 contains Cd and D4 contains Ce, then R4 should say Ce, BUT IF C4 contains cd and D4 contains ce, then R4 should say ce, BUT IF C4 contains Ce and D4 contains Cd, then S4 should say Ce, BUT IF C4 contains cd and D4 contains Ce, then S4 should say Ce.
=IF(D4="";"";IF(CODE(D4)>CODE(C4);D4;C4)) BUT IF C4 contains Cd and D4 contains Ce, then S4 should say Cd, BUT IF C4 contains cd and D4 contains ce, then S4 should say cd, BUT IF C4 contains Ce and D4 contains Cd, then S4 should say Cd, BUT IF C4 contains cd and D4 contains Ce, then S4 should say cd.
Cd sort help-1.xlsx
Bookmarks