+ Reply to Thread
Results 1 to 3 of 3

Match two columns with macro and shift cells down

  1. #1
    Registered User
    Join Date
    01-23-2009
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    18

    Match two columns with macro and shift cells down

    Good Afternoon,
    I have to match up accounts and payments that my company receives with the information from our client which can be different.

    There may be different payments for the same account or none on one side but some on the other.

    I yanked this code from another site and tried to modify it. The If greater portion is the part I tried to change. The second part still works. I'd like to change the code to shift a range of cells down so that they match up with the appropriate account instead of color the accoutns colors. Please let me know if you need clarification or can provide any help.

    Thanks in advance!

    Updated code: Macro now shifts the last mismatch down, but not all. Anyway to make this shift on each side until all accounts match up?
    The way I see it. There would be an if one side is greater than the other then shift these cells down, but if the other side is greater shift the others down and do a loop. I can't figure it out though :/
    Please Login or Register  to view this content.
    Last edited by cheerockracy; 11-18-2009 at 03:45 PM.

  2. #2
    Registered User
    Join Date
    01-23-2009
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Match two columns with macro and shift cells down

    I actually found this and thought I'd post it so other can use if if needed.
    The only thing I can't get it to do is shift the first 2 cells with the rest of the data since my first #'s are in col c. Anyway. Cheers


    Please Login or Register  to view this content.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Match two columns with macro and shift cells down

    I think it would be hard to help without seeing the data the code is supposed to operate on, and what it's supposed to do.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1