Excel - Apply a function to all sheets


I have an Excel file consisting of hundreds of sheets. I would like to apply a function (count, for example) to all cells in E3, how can this be done quickly?


  • A simple solution is to select all the sheets.
  • To apply the multiple selection: click on the first tab (sheet) and then go on to the last tab (pressing Shift + Left click).
  • Thus all sheets are selected.
  • You can then type a function for E3 and validate this function, it will be applicable for all the cells in E3 (for all the sheets).
Published by jak58. Latest update on January 20, 2012 at 12:34 PM by jak58.
This document, titled "Excel - Apply a function to all sheets," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (https://ccm.net/).
Excel/VBA - A macro to change the color of a row
Excel -Type Several Lines in a Single Cell