Forum Discussion

Sushila123's avatar
Sushila123
Copper Contributor
May 23, 2022
Solved

Conditional formula evaluation

Hi,   I would like to evaluate a SUMIFS formula so that if it produces a result greater than 0, it should print that value, and if it produces 0, it should instead be an empty field. What I've cur...
  • mathetes's avatar
    May 23, 2022

    Sushila123 

     

    Assuming you have the most recent version of Excel, you could employ the LET function to avoid the redundancy you speak of. Here's a reference.https://exceljet.net/excel-functions/excel-let-function

     

    Given the formula you've shared, =IF(SUMIFS(...)>0,SUMIFS(...),""),

    LET would enable you to write something along these lines:

    =LET(res,SUMIFS(...),IF(res>0,res,""))

Resources