hi,
I have a table with 200.000 rows.
I need to create a helper column, that marks distinct values with 1 and not distinct "" or 0.
I tried the following but both use countif and I believe it is the problem it's just to slow.
=IF(COUNTIF($A$2:A2;A2);1;0)
=1/COUNTIF($A$2:A2;A2)
but both are really slow +20 mins to calculate and many times Excel crashes( 2007 32bit).
The workbook is really simple
Col1 (number formatted as text) - Col2 =distinct
Can anyone help me out I googled, searched the forums, checked out youtube, but I can't seem to find a way that works.
If it is better to do this by VBA and recalculating by a macro then that it is a fine solution as long as it works and doesn't take forever to finish!.
Thanks in advance
BR
Thomas
I have a table with 200.000 rows.
I need to create a helper column, that marks distinct values with 1 and not distinct "" or 0.
I tried the following but both use countif and I believe it is the problem it's just to slow.
=IF(COUNTIF($A$2:A2;A2);1;0)
=1/COUNTIF($A$2:A2;A2)
but both are really slow +20 mins to calculate and many times Excel crashes( 2007 32bit).
The workbook is really simple
Col1 (number formatted as text) - Col2 =distinct
Can anyone help me out I googled, searched the forums, checked out youtube, but I can't seem to find a way that works.
If it is better to do this by VBA and recalculating by a macro then that it is a fine solution as long as it works and doesn't take forever to finish!.
Thanks in advance
BR
Thomas