In support of this Forum post:
http://www.excelfox.com/forum/showth...ll=1#post12575
Before:
_____ Workbook: 1.xlsx ( Using Excel 2007 32 bit )
Worksheet: Sheet1
Row\Col A B C D E F G H I J K L M 1Stock Name Data Data Data Data Data Data Data Data Data Data Data Data 2ACC 800 700 600 500 400 300 200 100 90 80 70 3ADANIENT 800 700 600 500 400 300 200 100 90 80 70 4ADANIPORTS 800 700 600 500 400 300 200 100 90 80 70If there are no highlighted colour cells in the row then copy paste the firt cells of that row i. e 800(B4) 5ADANIPOWER 800 700 600 500 400 300 200 100 90 80 70and sorry Doc Sir one mistake happened from my end in providing the info to u , we have to copy and paste the data after highlighted colours cells 6AMARAJABAT 800 700 600 500 400 300 200 100 90 80 70And one more thing plz see A8 it doesnt have highlighted colour cells in that row then we have to copy and paste the first cell i. e B8(800)but A8 will not match with column B of 2.xlsx so ignore that don't do anything for that just ignore it 7AMBUJACEM 800 700 600 500 400 300 200 100 90 80 70 8ONGC 800 700 600 500 400 300 200 100 90 80 70 9
_____ Workbook: 2.xlsx ( Using Excel 2007 32 bit )
Worksheet: Sheet1
Row\Col A B C D E F G H I J K L M 1Exchange Symbol Series/Expiry Open High Low Prev Close LTP 2NSE ACC EQ 130 132.7 127.4 139.1 130.3 3NSE AMARAJABAT EQ 102.35 104.7 101 105.65 103.55 4NSE ADANIENT EQ 215.1 216.65 207.5 221.75 210.35 5NSE AMBUJACEM EQ 198.75 202.4 195.4 204.4 201.05 6NSE ADANIPORTS EQ 339.8 339.8 331.25 349.15 336.35 7NSE ADANIPOWER EQ 268 273.65 253.95 288.5 270.1 8
need match column A stock name of 1.xlsx with column B of 2. xlsx and if it matches then we have to copy and paste the data after highlighted colours cells in that row of 1.xlsx and paste it to column L OF 2.xlsx
If there are no highlighted colour cells in the row then copy paste the firt cells of that row i. e 800(B4)
And one more thing plz see A8 it doesnt have highlighted colour cells in that row then we have to copy and paste the first cell i. e B8(800)but A8 will not match with column B of 2.xlsx so ignore that don't do anything for that just ignore it
here is after
_____ Workbook: 2.xlsx ( Using Excel 2007 32 bit )
Worksheet: Sheet1
Row\Col A B C D E F G H I J K L M 1Exchange Symbol Series/Expiry Open High Low Prev Close LTP 2NSE ACC EQ 130 132.7 127.4 139.1 130.3 400 3NSE AMARAJABAT EQ 102.35 104.7 101 105.65 103.55 300 4NSE ADANIENT EQ 215.1 216.65 207.5 221.75 210.35 600 5NSE AMBUJACEM EQ 198.75 202.4 195.4 204.4 201.05 800 6NSE ADANIPORTS EQ 339.8 339.8 331.25 349.15 336.35 800 7NSE ADANIPOWER EQ 268 273.65 253.95 288.5 270.1 200 8
_.______________________
here is latest macro, in next post....