The output that comes from a custom view of mine is as follows...
Col1    Col2    Col3   Col4
xxxx    Cake    1      1*
Cake    xxxx    2*     1
xxxx    Cake    2      0*
xxxx    Cake    0      0*
Cake    xxxx    2*     0
Cake    xxxx    2*     0
and what i would like to sum is...
For every row, 
if the word Cake is found in Col1, then add the value of Col3 to Sum
else add the value of Col4 to sum
The resulted SUM from the view above, should be 1 + 2 + 0 + 0 + 2 + 2 = 7
Thanks in advance!
p.s. The Asterisks are added just to show, which numbers should be added to sum.