If you have two customers with the same name
“Test Company” with Customer Number 1234
and
“Test Company” with Customer Number 4567

In the opportunity import spreadsheet,
you can specify “Test Company #:1234 to associate with “Test Company” with Customer Number 1234
OR
you can specify “Test Company #:4567 to associate with “Test Company” with Customer Number 4567