how can i edit the following formula to only display the result if it is greater than…
- User
how can i edit the following formula to only display the result if it is greater than 100 (>100) and equal to 0 (==0):
=IFERROR( IF( (XLOOKUP(IA:E:E3) / 0.0001 * 10 = 0, (XLOOKUP(IA:E:E3) / 0.0001 * 10, IF( (XLOOKUP(IA:E:E3) / 0.0001 * 10 < 1, (XLOOKUP(IA:E:D3) / 0.0001 * 10, IF( (XLOOKUP(IA:E:E3) / 0.0001 * 10 > 1, (XLOOKUP(IA:E:C3) / 0.0001 * 10 ) ) ), "")
- Assistant
- User
edit the following to also display cells equal to 0:
=LET( result, IFERROR( IF( (XLOOKUP(IA:E:E3) / 0.0001 * 10 = 0, (XLOOKUP(IA:E:E3) / 0.0001 * 10, IF( (XLOOKUP(IA:E:E3) / 0.0001 * 10 < 1, (XLOOKUP(IA:E:D3) / 0.0001 * 10, IF( (XLOOKUP(IA:E:E3) / 0.0001 * 10 > 1, (XLOOKUP(IA:E:C3) / 0.0001 * 10 ) ) ), "" ), IF(result > 100, result, "") )
- Assistant
Your current formula only displays values if
result > 100. To also display values equal to 0, you just need to adjust the final condition inside the lastIF.Currently:
excelIF(result > 100, result, "")Change it to:
excelIF(OR(result = 0, result > 100), result, "")
Full edited formula:
excel=LET( result, IFERROR( IF( (XLOOKUP(I$2, $A:$A, $E:$E) - $E3) / 0.0001 * 10 = 0, (XLOOKUP(I$2, $A:$A, $E:$E) - $E3) / 0.0001 * 10, IF( (XLOOKUP(I$2, $A:$A, $E:$E) - $E3) / 0.0001 * 10 < 1, (XLOOKUP(I$2, $A:$A, $E:$E) - $D3) / 0.0001 * 10, IF( (XLOOKUP(I$2, $A:$A, $E:$E) - $E3) / 0.0001 * 10 > 1, (XLOOKUP(I$2, $A:$A, $E:$E) - $C3) / 0.0001 * 10 ) ) ), "" ), IF(OR(result = 0, result > 100), result, "") )