Deductions & credits

I did put together a spreadsheet, had some difficulty getting the numbers right. Tax totals are good, but 1a totals is not.  Now I have a different problem, qualified dividends box 1b is now greater than total dividends in box 1a of the new one (new99804)

 ABC DEF GH 
 99804new9980499804dummy199804dummy2 99804dummy399804dummy499804dummy599804dummy6  
1a$16,602.52$14,916.62$1,067.92$617.98 $365.48$105.06$47.47$118.35$17,238.88TOTAL
            
            
7$660.83$223.65$136.71$160.90 $98.68$22.06$7.13$11.70$660.83TOTAL