Chi Square Test on Certain Columns in Excel Import?

Can you provide a reproducible example? It might make more sense than the description you provided.