![]() |
macro needed to compare value and copy data underneath it to anoth
I have a spread sheet with column A and B being static but Column C1 has a
value 101 and D has 102 and so on till 900. What I want to do is that compare C1 with another sheet that is in same format but missing number in between for example its has C1=101 and D1=103. If C101 is there i need to copy all value in that column to sheet 2 underneath C101 but if D1 is 103 then it should put 0' in D1=102 from D2 - D25. let me know if there can be any macro written to compare and copy the values. If you dont understand anypart please feel free to ask as many questions |
macro needed to compare value and copy data underneath it to anoth
To explain in detail. The first sheet looks like this c d e 101 103 104 2256 2223 3345 sheet 2 looks like this C D E F 101 102 103 104 Now i want to check if 101 exist in sheet 1 copy all values underneath that column to sheet 2 till C25 If 102 does not exist replace the cell with D25 if 103 exist copy all value undernead 103 to sheet 2 and so on. Please let me know if a macro can be written to do this procedure. Your help will be life saver. Regards Arain "Arain" wrote: I have a spread sheet with column A and B being static but Column C1 has a value 101 and D has 102 and so on till 900. What I want to do is that compare C1 with another sheet that is in same format but missing number in between for example its has C1=101 and D1=103. If C101 is there i need to copy all value in that column to sheet 2 underneath C101 but if D1 is 103 then it should put 0' in D1=102 from D2 - D25. let me know if there can be any macro written to compare and copy the values. If you dont understand anypart please feel free to ask as many questions |
All times are GMT +1. The time now is 09:30 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com