[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]column/row[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Item[/TD]
[TD]Unit or pallet[/TD]
[TD]unit per case[/TD]
[TD]Total Case[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Apple[/TD]
[TD]50[/TD]
[TD]2[/TD]
[TD]25 (=50/2)[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Apple on a pallet[/TD]
[TD]4[/TD]
[TD]2[/TD]
[TD]8 (=4*2)[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Orange[/TD]
[TD]8[/TD]
[TD]4[/TD]
[TD]2 (=8/4)[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Orange on a pallet[/TD]
[TD]15[/TD]
[TD]4[/TD]
[TD]60 (=15*4)[/TD]
[/TR]
</tbody>[/TABLE]
I want to use if formula to calculate for column D. what should the formula be?
I tried this but it didn't work.
=IF(A2="*"&"pallet"&"*",B2*C2,B2/C2)
Please help.
<tbody>[TR]
[TD]column/row[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Item[/TD]
[TD]Unit or pallet[/TD]
[TD]unit per case[/TD]
[TD]Total Case[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Apple[/TD]
[TD]50[/TD]
[TD]2[/TD]
[TD]25 (=50/2)[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Apple on a pallet[/TD]
[TD]4[/TD]
[TD]2[/TD]
[TD]8 (=4*2)[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Orange[/TD]
[TD]8[/TD]
[TD]4[/TD]
[TD]2 (=8/4)[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Orange on a pallet[/TD]
[TD]15[/TD]
[TD]4[/TD]
[TD]60 (=15*4)[/TD]
[/TR]
</tbody>[/TABLE]
I want to use if formula to calculate for column D. what should the formula be?
I tried this but it didn't work.
=IF(A2="*"&"pallet"&"*",B2*C2,B2/C2)
Please help.