Application of IFS, ANDS

Chaturvedi, Santosh 400 Reputation points
2026-08-21T12:42:56.5366667+00:00

Hello Greetings !!

I have one situation. Please help me in this formulations using IFS & AND

The value of -->

t, tmin, tref --> will change in every case of calculaions. Itr means that the numerical values with of them will change as per equirement.

User's image

Microsoft 365 and Office | Excel | For business | Windows

Answer accepted by question author
Alina Le 5,000 Reputation points Independent Advisor
2026-08-21T13:36:36.3433333+00:00

Hello @Chaturvedi, Santosh

Just to confirm my understanding of the logic:

  • The conditions shown on the right side define which calculation case should be applied.
  • Each condition corresponds to the formula shown in the middle.
  • The values of t, tmin, tref, and n are variable inputs and may change for each calculation.
  • The Excel formula (using IFS and AND) should first evaluate the applicable condition based on the current values of t, tmin, and tref, and then calculate f_thick using the corresponding formula.

In other words, the logic is:

  • Check the relationship between t, tmin, and tref.
  • Identify which case/condition is satisfied.
  • Apply the matching equation for that case.
  • Return the calculated f_thick value.

Based on my understanding, the objective is to create one dynamic Excel formula that evaluates the applicable condition for the current values of t, tmin, tref, and n, and then automatically applies the corresponding equation to calculate f_thick.

To illustrate for the fomular, I will assume:

  • t = x
  • tref = y
  • tmin = z
  • n = r

The objective is to create a single dynamic Excel formula that:

  • Evaluates the relationships between x (t), y (tref), and z (tmin).
  • Determines which condition is TRUE.
  • Selects the corresponding equation through IFS() and AND() logic.
  • Calculates and returns the resulting f_thick value automatically.

The corresponding Excel implementation would be:

=IFS(

AND(z<y,x<=z,z<=10),(10/z)^(r/2)*(y/10)^r,

AND(z<y,x<=y,y<=10),(10/x)^(r/2)*(y/10)^r,

AND(z<y,x>=10,x<=y),(y/x)^r,

AND(z=y,x<=y),1,

x>y,(y/x)^r

)

Or, if actual cell references are used (for example: t=A1, tref=A2, tmin=A3, n=A4):

=IFS(

AND(A3<A2,A1<=A3,A3<=10),(10/A3)^(A4/2)*(A2/10)^A4,

AND(A3<A2,A1<=A2,A2<=10),(10/A1)^(A4/2)*(A2/10)^A4,

AND(A3<A2,A1>=10,A1<=A2),(A2/A1)^A4,

AND(A3=A2,A1<=A2),1,

A1>A2,(A2/A1)^A4

)


*Note:

When implementing the formula, please verify that the listed conditions are both:

  • Mutually exclusive (only one condition can be TRUE at a time), and
  • Collectively exhaustive (all valid combinations of t, tref, and tmin are covered).

Otherwise, additional conditions or boundary handling may be required to ensure that every valid input produces a result.

*Example 1: Overlapping Conditions (Not Mutually Exclusive)

  • Condition A: t <= 10
  • Condition B: t <= 20
  • Input: t = 8

Result:

  • Condition A = TRUE
  • Condition B = TRUE

-> Since more than one condition is TRUE, Excel IFS() will return the first match only, which may lead to unintended results.

*Example 2: Missing Boundary Condition (Not Collectively Exhaustive)

  • Condition A: t < 10
  • Condition B: t > 10
  • Input: t = 10

Result:

  • Condition A = FALSE
  • Condition B = FALSE

-> Since no condition is TRUE, IFS() may return #N/A.

*Example 3: Potential Gap in the Current Logic:

  • t = 9
  • tref = 25
  • tmin = 4

Result:

  • tmin < tref -> TRUE
  • t ≤ tmin ≤ 10 -> FALSE
  • t ≤ tref ≤ 10 -> FALSE
  • 10 ≤ t ≤ tref-> FALSE
  • tmin = tref -> FALSE
  • t > tref -> FALSE

-> Since none of the defined cases are satisfied, the formula would not return a valid result.

This suggests that an additional condition, boundary rule, or clarification of the inequalities may be required to ensure every valid input combination produces a valid f_thick value

Kind regards,


If the answer is helpful, please click "Yes". If you have extra questions about this answer, please click "Comment". 

Note: Please follow the steps in the forum documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Newest
  1. AI answer

    2026-08-21T12:43:16.7833333+00:00

    Use IFS to evaluate each case in order, and AND where a case has multiple conditions.

    If:

    • Z3 = t
    • Z4 = tref
    • Z5 = tmin
    • n is a fixed value in another cell, for example Z6

    then Z7 can be:

    =IFS(
    AND(Z5<Z4,Z3<=10,Z3>=Z5),((10/Z5)^(Z6/2))*((Z4/10)^Z6),
    AND(Z5<Z4,Z3<=Z4,Z3<10),((10/Z3)^(Z6/2))*((Z4/10)^Z6),
    AND(Z5<Z4,Z3>=10,Z3<=Z4),(Z4/Z3)^Z6,
    AND(Z5=Z4,Z3<=Z4),1,
    Z3>Z4,(Z4/Z3)^Z6
    )
    

    This follows the documented IFS pattern of testing conditions in sequence and returning the value for the first TRUE condition.

    Important points:

    • IFS returns the result for the first TRUE condition, so the order matters.
    • AND is used for conditions like tmin < tref and t ≤ 10 mm.
    • If n is not in Z6, replace Z6 with the cell that contains n.
    • If no condition is met, IFS returns #N/A. If a default result is needed, add TRUE,<value> as the last pair.

    For the values shown in the sheet:

    • t = 9
    • tref = 25
    • tmin = 4

    the first condition applies, so Excel uses:

    =((10/4)^(n/2))*((25/10)^n)
    

    If a default blank is preferred instead of #N/A, use:

    =IFS(
    AND(Z5<Z4,Z3<=10,Z3>=Z5),((10/Z5)^(Z6/2))*((Z4/10)^Z6),
    AND(Z5<Z4,Z3<=Z4,Z3<10),((10/Z3)^(Z6/2))*((Z4/10)^Z6),
    AND(Z5<Z4,Z3>=10,Z3<=Z4),(Z4/Z3)^Z6,
    AND(Z5=Z4,Z3<=Z4),1,
    Z3>Z4,(Z4/Z3)^Z6,
    TRUE,""
    )
    

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.