Sub SumNoDupe()
'Declare the variables
Dim rng As Range
Dim lRow As Long
'Turn off screen updating for speed and to avoid flicker
Application.ScreenUpdating = False
'Determine what last row with data in column 1 or A
lRow = Cells(Rows.Count, 1).End(xlUp).Row
'Create the range declared as rng using columns A & B
'and the last row of data found from above
Set rng = Range("A1:B" & lRow)
'Remove the duplicate from the range
rng.RemoveDuplicates Columns:=Array(1, 2), Header:=xlYes
'With duplicates now removed, determine what the last row of data is now and add 1 row
lRow = Cells(Rows.Count, 1).End(xlUp).Row + 1
'Insert the worksheet function Sum() in column B, 1 row below the last row of data
Cells(lRow, 2).Value = WorksheetFunction.Sum(Range("B2", "B" & lRow))
'Clear out the Range (probably not needed)
Set rng = Nothing
'Go through the same steps above except using Columns D & E
lRow = Cells(Rows.Count, 4).End(xlUp).Row
Set rng = Range("D1:E" & lRow)
rng.RemoveDuplicates Columns:=Array(1, 2), Header:=xlYes
lRow = Cells(Rows.Count, 4).End(xlUp).Row + 1
Cells(lRow, 5).Value = WorksheetFunction.Sum(Range("E2", "E" & lRow))
'Turn screen updating back on
Application.ScreenUpdating = True
End Sub