Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have column C and column D that contains data. I need macro that will IF
THEN with a loop till done; 1st condition. If C1 = D1 then do nothing(but look at next cells C2 and D2 etc. Etc. 2nd condition. If C1 < D1 then move cells in column C down. (one cell at a time until condition one meet again and continue loop) 3rd condition. If C1 D1 then move cells in column D down. (one cell at a time until condition one meet again and continue loop) Perhaps instead of a loop maybe an input for how many rows to do By doing this cells that are being moved will leave a bank cell in it's place and that is what is wanted. Example: PS1495-15 PS1495-15 PS1495-16 PS1495-16 PS1495-17 PS1495-18 PS1495-18 PS1495-19 PS1495-19 PSJT304-16 PSJT304-16 PSJT304-17 PSJT304-17 PSJT304-18 PSJT304-18 PSJT305-15 PSJT314-01 PSJT314-01 PSJT314-02 PSJT314-02 Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to copy and paste values (columns)I have a macro file built | Excel Programming | |||
AutoRun Macro with a delay to give user the choice to cancel the macro | Excel Programming | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
macro to delete entire rows when column A is blank ...a quick macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |