• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Re-positioning two columns bases on each other.

kumarrajesh

New Member
Hi All,

Am Rajesh, need help in writing a macro.

I would like to reposition by adding a blank cell after comparing both the columns. Please check the image attached.

Thank you very much in advance.
 

Attachments

  • repos.PNG
    repos.PNG
    12.3 KB · Views: 14
  • repos.PNG
    repos.PNG
    12.3 KB · Views: 11
kumarrajesh
Is there any logic of from 'College Id' to 'Country'?
I skip that case.
Would it be something like this?
 

Attachments

  • yes.xlsb
    42.5 KB · Views: 5
Hi Vletm,

Your solution worked perfectly. Thank you very much.
Actually, there is no logic between the columns to include.
If you are ok and have time, could you please elaborate on the logic you used in the program.

Regards,
Rajesh.
 
Hi Vletm,

While attaching snapshots, I have a bit problem so got attached 2 times.
Sorry, if that created confusion.
 
kumarrajesh
What/where attaching?
What kind of problems? ... with Excel?
Three minutes ago everything was perfect.
Is there any logic of from 'College Id' to 'Country'?
 
kumarrajesh ... hmm?
That my message was about same kind of question with 'Excel'.
Someone else has same kind of challenge and You also wrote there.

You asked about my #2 reply... logic is:
1) Find out all possible items
2) Sort those
3) Move original items to needed positions
as You would see...
 
Back
Top