Deductions & credits

Yes,  you are correct.  You can deduct those amounts from the total on the 1099-DIV on which they were reported as a lump sum.

@KimT-IL