Deductions & credits

The software takes in all of the data from the 1099 Div.  Part of that data is how much was paid in foreign taxes and how much the foreign dividends were.  It also asks for a country code.  So, you don't have to back out the foreign dividends from domestic dividends, since the software does that.  The country segregation is the issue.  By the way, if you have that many foreign dividends you might wan to consider  hiring a CPA to do your tax return since you likely have a very complicated return.