J.Ty.
Well-known Member
- Joined
- Feb 4, 2012
- Messages
- 1,118
- Office Version
- 365
- 2013
- 2010
- Platform
- Windows
- Web
Hi,
I have made the following experiment:
The question arises: why is computing the same formulas for conditional formatting so much faster than computing the same formulas to produce values?
J.Ty.
P.S. The formulas are (copies of) =COUNTIF(A:A,A1)>1 and =COUNTIF(A:A,A1)>1 in A1 notation.
I have made the following experiment:
- I have made a full column (1M rows) of random numbers in the range [1;1000000] (no formulas, just numbers).
- I have inserted the formula (R1C1 notation) =COUNTIF(C1,RC[-1])>1 in the first 1000 rows.
- Recomputation of the formulas has taken about 30 seconds on my machine.
- I have removed the formulas and inserted conditional formatting in the first 1000 rows, with the formula =COUNTIF(C1,RC)>1
- Reformatting with the formulas has taken a fraction of a second on my machine (the performance meter in the task manager has not reached 100%, so the time has been shorter than its probing frequency).
The question arises: why is computing the same formulas for conditional formatting so much faster than computing the same formulas to produce values?
J.Ty.
P.S. The formulas are (copies of) =COUNTIF(A:A,A1)>1 and =COUNTIF(A:A,A1)>1 in A1 notation.