BUG: Fix mismatched logic error in compatibility check
Merge pull request #8203 from jtratner/fix_openpyxl_compat_check

BUG: Fix mismatched logic error in compatibility check