Forum Discussion

FrantaDvojka's avatar
FrantaDvojka
Copper Contributor
May 22, 2025

How to avoid calculating the same value over and over again - performance best practice

Suppose you want to compare each cell in a range with the total average.

What is the best solution in terms of performance?

  1. Place the cell with the Average formula to the left or top
  2. Place the cell with the Average formula to the right or below
  3. No need to load the Average to a dedicated cell.
  4. A Lambda wrapper for the Average does the trick.
  5. Other

Many thanks.

9 Replies

  • FrantaDvojka's avatar
    FrantaDvojka
    Copper Contributor

    Addendum:

    I am convinced that the helper cell location is crucial for overall performance.

    Refer to:
    https://learn.microsoft.com/en-us/office/vba/excel/concepts/excel-performance/excel-tips-for-optimizing-performance-obstructions

  • FrantaDvojka's avatar
    FrantaDvojka
    Copper Contributor

    Addendum:

    I am convinced that the helper cell location is crucial for overall performance.

    Refer to:
    https://learn.microsoft.com/en-us/office/vba/excel/concepts/excel-performance/excel-tips-for-optimizing-performance-obstructions

     

  • FrantaDvojka's avatar
    FrantaDvojka
    Copper Contributor

    I am convinced that the helper cell location is crucial for overall performance.

    Refer to:
    https://learn.microsoft.com/en-us/office/vba/excel/concepts/excel-performance/excel-tips-for-optimizing-performance-obstructions

  • FrantaDvojka's avatar
    FrantaDvojka
    Copper Contributor

    I am convinced that the helper cell location is crucial for overall performance.

    Refer to:
    https://learn.microsoft.com/en-us/office/vba/excel/concepts/excel-performance/excel-tips-for-optimizing-performance-obstructions

  • mathetes's avatar
    mathetes
    Gold Contributor

    The LET function first, then wrapping that in a LAMBDA.

    But I say that without actually seeing what you're working with. Calculating the average as a single dedicated cell could also work; I can't imagine that the placement of that cell, per se, would make a difference.

    • FrantaDvojka's avatar
      FrantaDvojka
      Copper Contributor

      Thank you for your prompt reply.

      By contrast to your answer I am convinced that the helper cell location is crucial for overall performance.

      Refer to:
      https://learn.microsoft.com/en-us/office/vba/excel/concepts/excel-performance/excel-tips-for-optimizing-performance-obstructions

       

      Let's leave this ticket open for a while to see whether other contributions come from those who care about Excel overall performance.

    • FrantaDvojka's avatar
      FrantaDvojka
      Copper Contributor

      I am convinced that the helper cell location is crucial for overall performance.

      Refer to:
      https://learn.microsoft.com/en-us/office/vba/excel/concepts/excel-performance/excel-tips-for-optimizing-performance-obstructions

    • FrantaDvojka's avatar
      FrantaDvojka
      Copper Contributor

      Thank you for your prompt reply.

      By contrast to your answer I am convinced that the helper cell location is crucial for overall performance.

      Refer to:
      https://learn.microsoft.com/en-us/office/vba/excel/concepts/excel-performance/excel-tips-for-optimizing-performance-obstructions

       

      Let's leave this ticket open for a while to see whether other contributions come from those who care about Excel overall performance.

Resources