I made excess IRA contribution due to zero earned income. Can I apply foreign earned income exclusion in part and foreign tax credits in part to my foreign earned wages?

I want to know if I can apply foreign tax credits to a portion (the same amount as the the excess IRA contribution) of my foreign earned wages while applying foreign earned income exclusion to the remaining foreign earned wages.