Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 a Null Value in D1=102 from D2 - D25 in second sheet. 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 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 The macro below doesnot work. It rather deletes 102 from sheet 2 which is not what i want. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
My excel macro recorder no longer shows up when recording macro | Excel Discussion (Misc queries) | |||
My excel macro recorder no longer shows up when recording macro | Excel Discussion (Misc queries) | |||
using a cell value to control a counter inside a macro and displaying macro value | Excel Worksheet Functions | |||
Macro needed to Paste Values and prevent Macro operation | Excel Discussion (Misc queries) | |||
Macro needed to Paste Values and prevent Macro operation | Excel Discussion (Misc queries) |