For example, I have input data in column A and some complicated formula in Column B as a function of data in A. How many rows of data in A depends on user input. It can be anywhere from 2 to 100,000. Traditionally I will populate all 100,000 rows of Column B with the same formula. But that introduces a huge overhead of unnecessary formula evaluation if only two rows of column A are used.
If VBA is allowed, it can be as easy as write a 'For' loop. But I want to know if this is possible without VBA.
Is it possible to dynamically add/remove the formula in column B with worksheet function only?