Share via

Formula question

Anonymous
2025-01-24T20:34:15+00:00

I need a formula in a blank cell to calculate the highest number between multiple cells, if a certain cell is higher than a certain number. For example, what is the higher number between cells B2 and C2, if cell D2 is higher than a certain number? If cell D2 is less than or equal to that “certain number” just give the output of cell B2

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. HansV 462.6K Reputation points
    2025-01-24T21:29:12+00:00

    If you have a recent version of Excel:

    =LET(v, IF(D2>37, MAX(B2:C2), B2), IF(v=0, E2, v))

    In older versions:

    =IF(IF(D2>37, MAX(B2:C2), B2)=0, E2, IF(D2>37, MAX(B2:C2), B2))

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2025-01-24T21:18:53+00:00

    Thank you that works. Can I add to that question. If all that formula you mentioned above returns a value of “0” I need it to return whatever value is in another cell, let’s say E2

    Was this answer helpful?

    0 comments No comments
  3. HansV 462.6K Reputation points
    2025-01-24T20:38:04+00:00

    Let's say the 'certain number' is 37.

    =IF(D2>37, MAX(B2:C2), B2)

    Was this answer helpful?

    0 comments No comments