Dear Experts ,
This will really really save my life ,
I attach a file ,
In tab 1 (sheet 1 ) i have column F as DBC number .most rows have single DBC numbers(eg ABC ) ,but some have multiple dbc numbers ,eg (ABC,XYZ,ABC, etc )seperated by a comma ...in column H ,i have gross amount for the DBC entry in column F ....if there are multiple DBC entries in column F ,then gross amount (single figure ) is sum of individual gross amounts of all DBC entries available in tab 2
In tab 2 i have comprehensive list of DBC in column A ,the corresponding invoice numbers in column I and the corresponding amounts in column F -note here every row has only single DBC number
Now,i want tab Final to be self generated doing the following ,
wherever there were multiple DBC entries in sheet 1 ,insert equal number of blank rows in the Final tab and then fill out seperate DBC in each row ..
let me give a example ,if i have multiple DBC entry in sheet 1 say - ABC ,XYZ ,EFG ...so there are 3 entries ...
so i will insert 3 blank rows ,first row where there was ABC ,XYZ ,EFG ,i will delete XYZ ,EFG and insert XYZ in second row and EFG in third Row .....for multiple DBC entries i wish that they be given a color shade if possible
For each of these DBC entries ,i will take from sheet 2 the invoice number and put it in column G .and outstanding amount in column H ........for multiple entries ,the total of the DBC will be calculated as listed out ...in case if invoice number is not found ,then NOT FOUND will be typed in cell invoice number to avoud macro from crashing and proceed to next !
The invoice numbers always form a pattern /xyz ...anything after the last / should appear in the name of the party column (column E ),
All columns E,G,H should be given a light shade as attachment if possible !
I know its a tough project but a interesting one ,will appreciate help ,
Thanks ,
Amlan Dutta
Note :Since noone has attempted it yet and i kinda need it quick ,i am posting it at http://www.ozgrid.com/forum/showthread.php?t=166992
Bookmarks