Macro for comparison analysis