[/COLOR][/COLOR]
[COLOR=#ff0000][COLOR=#000000]'Finds the last non-blank row on a sheet/range.
lRow = Cells.Find(What:="*", _
After:=Range("A1"), _
LookAt:=xlPart, _
LookIn:=xlFormulas, _
SearchOrder:=xlByRows, _
SearchDirection:=xlPrevious, _
MatchCase:=False).Row
'Finds the last non-blank row on a sheet/range.
lCol = Cells.Find(What:="*", _
After:=Range("A1"), _
LookAt:=xlPart, _
LookIn:=xlFormulas, _
SearchOrder:=xlByColumns, _
SearchDirection:=xlPrevious, _
MatchCase:=False).Column
With ActiveSheet
b_max = .UsedRange.Rows(.UsedRange.Rows.Count).Row
x_max = .UsedRange.Columns(.UsedRange.Columns.Count).Column
For b = 4 To b_max
sb = Empty
For x = 11 To x_max
If .Cells(2, x) Then sb = sb + .Cells(b, x)
Next x
.Cells(b, 2) = sb
Next b
End With
With ActiveSheet
b_max = .UsedRange.Rows(.UsedRange.Rows.Count).Row
For b = 4 To b_max
.Cells(b, 2) = WorksheetFunction.SumIfs(.Range("K" & b & ":X" & b), .Range("K2:X2"), True)
Next b
End With