Excel

Find non alphanumeric characters in an Excel cell

I thought I’d post more things here, since one of my old posts has gained some attention. I had started stashing away tips in my Evernote account, so here’s one from my notebook in 2013:

=IF(OR(AND(CODE(A1)>=48,CODE(A1)<=57),AND(CODE(A1)>=65,CODE(A1)<=90),AND(CODE(A1)>=97,CODE(A1)<=122)),"","Not Alphanumeric")

This basically works by checking if the cell (A1) is strictly alphanumeric or not. If it's 100% alphanumeric, the cell will display nothing. If it is not 100% alphanumeric, the words "Not Alphanumeric" will display.