I am looking for help to autofill cells based on VAT codes
In column I are the tax codes which are either T1, T2, T9 or T13
in column J I would like to see against either T2 or T9 - 0
For T13 - no result
For T1 - column H has the gross amount - in column J I require the VAT included (so if column H is £30 the VAT would be £5) I need 5.00 in column J
Then in an ideal world (if it is possible) column H will be changed to 25.00
see below
[TABLE="width: 192"]
<tbody>[TR]
[TD="class: xl67, width: 64, bgcolor: transparent"]Before
[/TD]
[TD="class: xl65, width: 64, bgcolor: transparent"][/TD]
[TD="class: xl65, width: 64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]H
[/TD]
[TD="class: xl65, bgcolor: transparent"]I
[/TD]
[TD="class: xl65, bgcolor: transparent"]J
[/TD]
[/TR]
[TR]
[TD="class: xl66, bgcolor: #33CCCC"]Net Amount
[/TD]
[TD="class: xl66, bgcolor: #33CCCC"]Tax Code
[/TD]
[TD="class: xl66, bgcolor: #33CCCC"]Tax Amount
[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]30
[/TD]
[TD="class: xl65, bgcolor: transparent"]T1
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]12.35
[/TD]
[TD="class: xl65, bgcolor: transparent"]T1
[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent"]After
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]H
[/TD]
[TD="class: xl65, bgcolor: transparent"]I
[/TD]
[TD="class: xl65, bgcolor: transparent"]J
[/TD]
[/TR]
[TR]
[TD="class: xl66, bgcolor: #33CCCC"]Net Amount
[/TD]
[TD="class: xl66, bgcolor: #33CCCC"]Tax Code
[/TD]
[TD="class: xl66, bgcolor: #33CCCC"]Tax Amount
[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]25
[/TD]
[TD="class: xl65, bgcolor: transparent"]T1
[/TD]
[TD="class: xl65, bgcolor: transparent"]5
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]10.29
[/TD]
[TD="class: xl65, bgcolor: transparent"]T1
[/TD]
[TD="bgcolor: transparent, align: right"]2.06
[/TD]
[/TR]
</tbody>[/TABLE]
In column I are the tax codes which are either T1, T2, T9 or T13
in column J I would like to see against either T2 or T9 - 0
For T13 - no result
For T1 - column H has the gross amount - in column J I require the VAT included (so if column H is £30 the VAT would be £5) I need 5.00 in column J
Then in an ideal world (if it is possible) column H will be changed to 25.00
see below
[TABLE="width: 192"]
<tbody>[TR]
[TD="class: xl67, width: 64, bgcolor: transparent"]Before
[/TD]
[TD="class: xl65, width: 64, bgcolor: transparent"][/TD]
[TD="class: xl65, width: 64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]H
[/TD]
[TD="class: xl65, bgcolor: transparent"]I
[/TD]
[TD="class: xl65, bgcolor: transparent"]J
[/TD]
[/TR]
[TR]
[TD="class: xl66, bgcolor: #33CCCC"]Net Amount
[/TD]
[TD="class: xl66, bgcolor: #33CCCC"]Tax Code
[/TD]
[TD="class: xl66, bgcolor: #33CCCC"]Tax Amount
[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]30
[/TD]
[TD="class: xl65, bgcolor: transparent"]T1
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]12.35
[/TD]
[TD="class: xl65, bgcolor: transparent"]T1
[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent"]After
[/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]H
[/TD]
[TD="class: xl65, bgcolor: transparent"]I
[/TD]
[TD="class: xl65, bgcolor: transparent"]J
[/TD]
[/TR]
[TR]
[TD="class: xl66, bgcolor: #33CCCC"]Net Amount
[/TD]
[TD="class: xl66, bgcolor: #33CCCC"]Tax Code
[/TD]
[TD="class: xl66, bgcolor: #33CCCC"]Tax Amount
[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]25
[/TD]
[TD="class: xl65, bgcolor: transparent"]T1
[/TD]
[TD="class: xl65, bgcolor: transparent"]5
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]10.29
[/TD]
[TD="class: xl65, bgcolor: transparent"]T1
[/TD]
[TD="bgcolor: transparent, align: right"]2.06
[/TD]
[/TR]
</tbody>[/TABLE]