I can’t seem to get a sum formula to work when there are 2 separate ‘equals to’ conditions. Here is what I have tried.
=If([Code1]=“100” And [Code2]=“250”) Then Sum([Amount])
This one gives me a #MULTIVALUE
=Sum([Amount] Where([Code1]=“100” and [Code2]=“250”))
This one is returning no values for me.
Just to try something different in my troubleshooting, I found that this one gave me a value that I could validate.
=Sum([Amount] Where([Code1]=“100” and [Code2]<>“250”))
Am I not able to have 2 = conditions? I only want a sum of amounts that meet both conditions. Not sure why the second formula above isn’t working for me.
Hmm, I see what he means. I tried re-writing the formula as follows, which would seem like it would work, but the cell returns as blank as well. Why would the cell return blank? There is definitely data to sum up.
=Sum ([Amount] Where ([Code 1] InList (“575”) And ([Code 2] InList (“R”))))
It’s really the same as =Sum([Amount] Where([Code1]=“100” and [Code2]=“250”))
If I’d got this far down the rabbit hole, I’d now push back to the universe designer asking for them to clean it up and give me better value objects to work with.