Forum Discussion
Need Help with IF Formula in Calculated Column
Hi everyone!
I am hoping you can please help me. I am calculating a burn rate in a SharePoint List in a calculated column (titled Burn). I am trying to return a blank value in the Burn column if the Funding Remaining column is blank or if there is an error in the column titled Burn. Below is a brief description of the columns I am using.
Funding Remaining
Jun Invoice
Jul Invoice
Aug Invoice
The below formula works fine if the funding remaining column is blank, but I have tried to get rid of the errors (predominantly brought on when the trying to average the Jun, Jul, and Aug invoice columns) when they are blank.
=IF(ISBLANK([Funding Remaining (As of last invoice)]),"",[Funding Remaining (As of last invoice)]/AVERAGE([Aug '23 Invoice (Est.)],[Jul '23 Invoice (Est.)],[Jun '23 Invoice (Est.)]))
Any help you can provide would be appreciated.
Hi Brian_Sarpy,
i am not sure, if i got your requirements correctly
Your formula=IF(ISBLANK([Funding Remaining (As of last invoice)]),"",[Funding Remaining (As of last invoice)]/AVERAGE([Aug '23 Invoice (Est.)],[Jul '23 Invoice (Est.)],[Jun '23 Invoice (Est.)]))
works fine for me without an error, except if all invoice columns are empty
If that is your issue, then you can just wrap your formula into another if clause and check if the sum of the invoice columns is greater zero
=IF([Jun '23 Invoice (Est.)]+[Jul '23 Invoice (Est.)]+[Aug '23 Invoice (Est.)]>0,IF(ISBLANK([Funding Remaining (As of last invoice)]),"",[Funding Remaining (As of last invoice)]/AVERAGE([Jun '23 Invoice (Est.)],[Jul '23 Invoice (Est.)],[Aug '23 Invoice (Est.)])),"")
Best Regards,
Sven
- SvenSieverdingBronze Contributor
Hi Brian_Sarpy,
i am not sure, if i got your requirements correctly
Your formula=IF(ISBLANK([Funding Remaining (As of last invoice)]),"",[Funding Remaining (As of last invoice)]/AVERAGE([Aug '23 Invoice (Est.)],[Jul '23 Invoice (Est.)],[Jun '23 Invoice (Est.)]))
works fine for me without an error, except if all invoice columns are empty
If that is your issue, then you can just wrap your formula into another if clause and check if the sum of the invoice columns is greater zero
=IF([Jun '23 Invoice (Est.)]+[Jul '23 Invoice (Est.)]+[Aug '23 Invoice (Est.)]>0,IF(ISBLANK([Funding Remaining (As of last invoice)]),"",[Funding Remaining (As of last invoice)]/AVERAGE([Jun '23 Invoice (Est.)],[Jul '23 Invoice (Est.)],[Aug '23 Invoice (Est.)])),"")
Best Regards,
Sven- Brian_SarpyCopper Contributor