Formula Generator | Excel

Excel Max Value Formula Across Sheets Ignoring Zeros

This guide explains how to create an Excel formula that calculates the maximum value from specified cells across multiple sheets while ignoring any zeros, using a combination of MAX and IF functions effectively.


Empty image or helper icon

Prompt

Max formula from multiple sheets  ignore zero

Answer

Excel Formula to Calculate Max Value Across Multiple Sheets Ignoring Zero

Objective

To create a formula in Excel that returns the maximum value from a range of cells located in multiple sheets while ignoring any zero values.

Formula Structure

The overall approach involves using a combination of the MAX function along with the IF function to filter out zeros. However, there are some limitations to directly reference multiple sheets in a straightforward way. One effective workaround involves using 3D referencing for the formula:

Example Formula

Assuming you want to evaluate the same cell (e.g., A1) across three sheets named Sheet1, Sheet2, and Sheet3, the formula would look like this:

=MAX(IF(Sheet1!A1<>0, Sheet1!A1), IF(Sheet2!A1<>0, Sheet2!A1), IF(Sheet3!A1<>0, Sheet3!A1))

Important Notes:

  • This formula employs the IF function to check if the value in each specified cell is not equal to zero.
  • The MAX function then evaluates only those non-zero values.
  • It’s important to press CTRL + SHIFT + ENTER after typing the formula to enter it as an array formula, which allows the logic to evaluate across each condition.

Explanation of Components

  1. IF Function:

    • The structure IF(condition, value_if_true) checks whether the cell from each sheet (Sheet1!A1, Sheet2!A1, Sheet3!A1) is non-zero.
    • If true, it returns the cell's value; if false, it returns FALSE.
  2. MAX Function:

    • Takes all outputs from the IF functions and returns the highest number while ignoring FALSE values (resulting from zeros) since they are not considered in the maximum calculation.

Practical Example

Data Setup:

  • Sheet1: A1 = 10
  • Sheet2: A1 = 0
  • Sheet3: A1 = 20

Using the Formula:

  1. Input the formula in another sheet (e.g., SummarySheet):

    =MAX(IF(Sheet1!A1<>0, Sheet1!A1), IF(Sheet2!A1<>0, Sheet2!A1), IF(Sheet3!A1<>0, Sheet3!A1))
  2. After entering the formula, press CTRL + SHIFT + ENTER.

Result:

  • The output will be 20, as it is the maximum value from the cells that are not zero.

Conclusion

This formula effectively enables the analysis of data across multiple sheets while excluding unwanted zero values, thus providing accurate maximum results. For complex datasets with numerous sheets, consider referring to the Enterprise DNA Platform for advanced learning on data manipulation and formula applications.

Create your Thread using our flexible tools, share it with friends and colleagues.

Your current query will become the main foundation for the thread, which you can expand with other tools presented on our platform. We will help you choose tools so that your thread is structured and logically built.

Description

This guide explains how to create an Excel formula that calculates the maximum value from specified cells across multiple sheets while ignoring any zeros, using a combination of MAX and IF functions effectively.