Hi,
Could you please help me with the following issue.
I've a workbook in excel, in which I've sheet1,sheet2 and sheet3.
In sheet1 , I've
Column1 Column2
------------------
RM P101
RM P221
RM P311
SM P482
SM P574
SM P687
TM P798
TM P812
TM P909
In Sheet2, I've
Column1 Column2
--------------------
RM.P101 190
RM.P221 -120
RM.P311 -321
SM.P482 50
SM.P574 70
SM.P687 -234
TM.P798 456
TM.P812 655
TM.P909 -123
Now in Sheet3, I need a macro which will fetch the data from Sheet1 and Sheet2 as follows:
It will pick "RM" and "P101","P221""P311" as these are "RM" related from sheet1, and look for corresponding values from Sheet2. i.e., RM.P101's value 190, RM.P221's value -120 and RM.P311's value -321. Now we need to sum up all these values and show against "RM" if the sum is >0 els show 0 against "RM".
Thanks in Advance,
Raju.ms
Could you please help me with the following issue.
I've a workbook in excel, in which I've sheet1,sheet2 and sheet3.
In sheet1 , I've
Column1 Column2
------------------
RM P101
RM P221
RM P311
SM P482
SM P574
SM P687
TM P798
TM P812
TM P909
In Sheet2, I've
Column1 Column2
--------------------
RM.P101 190
RM.P221 -120
RM.P311 -321
SM.P482 50
SM.P574 70
SM.P687 -234
TM.P798 456
TM.P812 655
TM.P909 -123
Now in Sheet3, I need a macro which will fetch the data from Sheet1 and Sheet2 as follows:
It will pick "RM" and "P101","P221""P311" as these are "RM" related from sheet1, and look for corresponding values from Sheet2. i.e., RM.P101's value 190, RM.P221's value -120 and RM.P311's value -321. Now we need to sum up all these values and show against "RM" if the sum is >0 els show 0 against "RM".
Thanks in Advance,
Raju.ms