Hi all, i would like to create a VBA code so that to run through row "1" and where find the text "Bank list' should create the below formula:
"=VLOOKUP(RC[-10],'[PAYMENT LIST.xlsx]Sheet1'!R4C1:R5000C32,25,0)"
Kindly note that the formula should begin from row "2" till last fulfill row based on col. "K".
Below is an extract of my spreadsheet in which i want to add the above formula below Bank list column.
Thanking you in advance
<colgroup><col style="mso-width-source:userset;mso-width-alt:2389;width:50pt" width="67"> <col style="mso-width-source:userset;mso-width-alt:2844;width:60pt" width="80"> <col style="mso-width-source:userset;mso-width-alt:4380; width:92pt" width="123" span="2"> </colgroup><tbody>
[TD="width: 67, align: center"][/TD]
[TD="width: 80, align: center"]K[/TD]
[TD="width: 123, align: center"]L[/TD]
[TD="width: 123, align: center"]M[/TD]
[TD="class: xl67, width: 67, align: center"]1[/TD]
[TD="class: xl68, width: 80, align: center"]CODE[/TD]
[TD="class: xl68, width: 123, align: center"]Bank list
[/TD]
[TD="class: xl68, width: 123, align: center"]Variance[/TD]
[TD="class: xl80, width: 67, align: center"]2[/TD]
[TD="class: xl72, align: center"]2002
[/TD]
[TD="class: xl77, width: 123, align: center"][/TD]
[TD="class: xl77, width: 123, align: center"] [/TD]
[TD="class: xl80, width: 67, align: center"]3[/TD]
[TD="class: xl72, align: center"]2008
[/TD]
[TD="class: xl71, width: 123, align: center"]
[/TD]
[TD="class: xl71, width: 123, align: center"] [/TD]
[TD="class: xl80, width: 67, align: center"]4[/TD]
[TD="class: xl72, align: center"]2010[/TD]
[TD="class: xl71, width: 123, align: center"] [/TD]
[TD="class: xl71, width: 123, align: center"]
[/TD]
[TD="class: xl80, width: 67, align: center"]5[/TD]
[TD="class: xl72, align: center"]2011[/TD]
[TD="class: xl71, width: 123, align: center"] [/TD]
[TD="class: xl71, width: 123, align: center"] [/TD]
</tbody>
"=VLOOKUP(RC[-10],'[PAYMENT LIST.xlsx]Sheet1'!R4C1:R5000C32,25,0)"
Kindly note that the formula should begin from row "2" till last fulfill row based on col. "K".
Below is an extract of my spreadsheet in which i want to add the above formula below Bank list column.
Thanking you in advance
<colgroup><col style="mso-width-source:userset;mso-width-alt:2389;width:50pt" width="67"> <col style="mso-width-source:userset;mso-width-alt:2844;width:60pt" width="80"> <col style="mso-width-source:userset;mso-width-alt:4380; width:92pt" width="123" span="2"> </colgroup><tbody>
[TD="width: 67, align: center"][/TD]
[TD="width: 80, align: center"]K[/TD]
[TD="width: 123, align: center"]L[/TD]
[TD="width: 123, align: center"]M[/TD]
[TD="class: xl67, width: 67, align: center"]1[/TD]
[TD="class: xl68, width: 80, align: center"]CODE[/TD]
[TD="class: xl68, width: 123, align: center"]Bank list
[/TD]
[TD="class: xl68, width: 123, align: center"]Variance[/TD]
[TD="class: xl80, width: 67, align: center"]2[/TD]
[TD="class: xl72, align: center"]2002
[/TD]
[TD="class: xl77, width: 123, align: center"][/TD]
[TD="class: xl77, width: 123, align: center"] [/TD]
[TD="class: xl80, width: 67, align: center"]3[/TD]
[TD="class: xl72, align: center"]2008
[/TD]
[TD="class: xl71, width: 123, align: center"]
[/TD]
[TD="class: xl71, width: 123, align: center"] [/TD]
[TD="class: xl80, width: 67, align: center"]4[/TD]
[TD="class: xl72, align: center"]2010[/TD]
[TD="class: xl71, width: 123, align: center"] [/TD]
[TD="class: xl71, width: 123, align: center"]
[/TD]
[TD="class: xl80, width: 67, align: center"]5[/TD]
[TD="class: xl72, align: center"]2011[/TD]
[TD="class: xl71, width: 123, align: center"] [/TD]
[TD="class: xl71, width: 123, align: center"] [/TD]
</tbody>