Basically, I am trying to re-create Excels SUMIF function within the custom code section of SSRS. I have data that started coming in later than the majority of my data, and I want to perform a sum only if the data is available.

Please see the image attached:

[Sample Data](https://i.stack.imgur.com/GsGsu.jpg)

I have tried many versions of a public function and I am still getting the #Error result.

Anyone have any ideas?