melvinkoshy
New Member
- Joined
- Dec 13, 2017
- Messages
- 27
Code, Description, Unit, Rate in MASTER sheet are in Col. A, B, C & D respectively. Some portion of Description of each item is bold and italicized.
OUTPUT sheet has Code, Description, Unit, Rate, Qty, Amount. In the Output sheet Code, Description, Unit, Rate are looked up from the MASTER sheet using INDEX-MATCH formula as follows:-
In cell B2
=INDEX(MASTER!$B$2:$B$8,MATCH(OUTPUT!A2,MASTER!$A$2:$A$8))
In cell C2
=INDEX(MASTER!$C$2:$C$8,MATCH(OUTPUT!A2,MASTER!$A$2:$A$8))
In cell D2
=INDEX(MASTER!$D$2:$D$8,MATCH(OUTPUT!A2,MASTER!$A$2:$A$8))
The formatting is not preserved in the OUTPUT sheet. I am aware that we need a VBA code to preserve the formatting. How do we embed INDEX-MATCH formula in VB script?
snapshot of MASTER sheet and OUTPUT Sheet is uploaded in the following link
http://s000.tinyupload.com/?file_id=97477698287443669722
OUTPUT sheet has Code, Description, Unit, Rate, Qty, Amount. In the Output sheet Code, Description, Unit, Rate are looked up from the MASTER sheet using INDEX-MATCH formula as follows:-
In cell B2
=INDEX(MASTER!$B$2:$B$8,MATCH(OUTPUT!A2,MASTER!$A$2:$A$8))
In cell C2
=INDEX(MASTER!$C$2:$C$8,MATCH(OUTPUT!A2,MASTER!$A$2:$A$8))
In cell D2
=INDEX(MASTER!$D$2:$D$8,MATCH(OUTPUT!A2,MASTER!$A$2:$A$8))
The formatting is not preserved in the OUTPUT sheet. I am aware that we need a VBA code to preserve the formatting. How do we embed INDEX-MATCH formula in VB script?
snapshot of MASTER sheet and OUTPUT Sheet is uploaded in the following link