B
Bill Benson
My most useful macro extracts distinct items from a range to a new sheet.
Native Excel would handle this I think by using Advanced Filter
no Criteria range
Unique records only box checked
Goto Special - visible cells only
Copy range, paste elsewhere
I see a peculiarity which gives me pause for thought.
Case I
A1 = "a"
A2 = "=A1"
A3 = "=A2"
Result: Only the first item is treated as Unique, the rest are hidden.
Great.
Case II
A1 = "=A2"
A2 = "=A3"
A3 = "a"
Result: All items are treated as Unique, none are hidden. Not so great (in
my opinion)
Apparently when a cell's value depends on a row above that cell, it is
treated as non-unique and filtered, but the reverse is not considered?
A bug? an explainable mystery? Is there no workaround except pasting the
cells as values somewhere else before applying the technique?
Thanks.
Native Excel would handle this I think by using Advanced Filter
no Criteria range
Unique records only box checked
Goto Special - visible cells only
Copy range, paste elsewhere
I see a peculiarity which gives me pause for thought.
Case I
A1 = "a"
A2 = "=A1"
A3 = "=A2"
Result: Only the first item is treated as Unique, the rest are hidden.
Great.
Case II
A1 = "=A2"
A2 = "=A3"
A3 = "a"
Result: All items are treated as Unique, none are hidden. Not so great (in
my opinion)
Apparently when a cell's value depends on a row above that cell, it is
treated as non-unique and filtered, but the reverse is not considered?
A bug? an explainable mystery? Is there no workaround except pasting the
cells as values somewhere else before applying the technique?
Thanks.