melbwarrior
New Member
- Joined
- Apr 19, 2018
- Messages
- 16
Hi All
Please assist on the below, I am struggling to create a Nested IF statement
Sample Data:
[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl66, width: 64"]A[/TD]
[TD="class: xl66, width: 64"]B[/TD]
[TD="class: xl66, width: 64"]C[/TD]
[/TR]
[TR]
[TD="class: xl67"]aa[/TD]
[TD="class: xl67"]ff[/TD]
[TD="class: xl69"]1[/TD]
[/TR]
[TR]
[TD="class: xl67"]bb[/TD]
[TD="class: xl67"]gg[/TD]
[TD="class: xl69"]1[/TD]
[/TR]
[TR]
[TD="class: xl67"]bb[/TD]
[TD="class: xl67"]gg[/TD]
[TD="class: xl69"]5[/TD]
[/TR]
[TR]
[TD="class: xl68"]cc[/TD]
[TD="class: xl68"]hh[/TD]
[TD="class: xl69"]4[/TD]
[/TR]
[TR]
[TD="class: xl67"]aa[/TD]
[TD="class: xl68"]hh[/TD]
[TD="class: xl69"]5[/TD]
[/TR]
[TR]
[TD="class: xl68"]cc[/TD]
[TD="class: xl67"]gg[/TD]
[TD="class: xl69"]6[/TD]
[/TR]
[TR]
[TD="class: xl67"]bb[/TD]
[TD="class: xl67"]ff[/TD]
[TD="class: xl69"]5[/TD]
[/TR]
[TR]
[TD="class: xl68"]cc[/TD]
[TD="class: xl67"]ff[/TD]
[TD="class: xl69"]4[/TD]
[/TR]
</tbody>[/TABLE]
What I am looking for is:
If Column A = CC then multiple the number in column C by 2
If Column B = GG then multiple the number in column C by 3
Any other value in column B multiple the column C by 4
Apologies if this is hard to understand
thanks
Please assist on the below, I am struggling to create a Nested IF statement
Sample Data:
[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl66, width: 64"]A[/TD]
[TD="class: xl66, width: 64"]B[/TD]
[TD="class: xl66, width: 64"]C[/TD]
[/TR]
[TR]
[TD="class: xl67"]aa[/TD]
[TD="class: xl67"]ff[/TD]
[TD="class: xl69"]1[/TD]
[/TR]
[TR]
[TD="class: xl67"]bb[/TD]
[TD="class: xl67"]gg[/TD]
[TD="class: xl69"]1[/TD]
[/TR]
[TR]
[TD="class: xl67"]bb[/TD]
[TD="class: xl67"]gg[/TD]
[TD="class: xl69"]5[/TD]
[/TR]
[TR]
[TD="class: xl68"]cc[/TD]
[TD="class: xl68"]hh[/TD]
[TD="class: xl69"]4[/TD]
[/TR]
[TR]
[TD="class: xl67"]aa[/TD]
[TD="class: xl68"]hh[/TD]
[TD="class: xl69"]5[/TD]
[/TR]
[TR]
[TD="class: xl68"]cc[/TD]
[TD="class: xl67"]gg[/TD]
[TD="class: xl69"]6[/TD]
[/TR]
[TR]
[TD="class: xl67"]bb[/TD]
[TD="class: xl67"]ff[/TD]
[TD="class: xl69"]5[/TD]
[/TR]
[TR]
[TD="class: xl68"]cc[/TD]
[TD="class: xl67"]ff[/TD]
[TD="class: xl69"]4[/TD]
[/TR]
</tbody>[/TABLE]
What I am looking for is:
If Column A = CC then multiple the number in column C by 2
If Column B = GG then multiple the number in column C by 3
Any other value in column B multiple the column C by 4
Apologies if this is hard to understand
thanks