> Hi Bob,
>
[quoted text clipped - 9 lines]
> values
> within those two columns).
Dim LastRow As Long
With ActiveSheet
.Cells(1).Sort key1:=.Range("A1"), key2:=.Range("B1"),
header:=xlGuess
LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
.Columns("C:D").Insert
.Range("C2").Resize(LastRow - 1).Formula = _
"=IF(SUMPRODUCT((A$2:A2=A2)+0,(B$2:B2=B2)+0)=1,""Exist"",""Duplicate"")"
.Range("D2").Resize(LastRow - 1).Formula = _
"=SUMPRODUCT(($A$2:$A$" & LastRow & "=A2)*($C$2:$C$" & LastRow &
"=""Exist""))"
End With
> I also noticed the autofill of the formulas stops whenever cell(s) in
> column
[quoted text clipped - 4 lines]
> fill in the formulas until the actual last row ? (You may assume row E as
> always containing data).
It isn't autofilling, it is auto-loading, and anyway, it works bottom up to
determine the last row, so it ignores those blanks.
Beth - 19 May 2008 18:32 GMT
Thank you. Since the auto-loading is working from bottom up, I changed this
line so the LastRow is obtained from the column filled with data up to the
actual last row:
LastRow = .Cells(.Rows.Count, "E").End(xlUp).Row
Beth
> > Hi Bob,
> >
[quoted text clipped - 36 lines]
> It isn't autofilling, it is auto-loading, and anyway, it works bottom up to
> determine the last row, so it ignores those blanks.