+ Reply to Thread
Results 1 to 9 of 9

How to shift cells down with new entry in sorted list

  1. #1
    Registered User
    Join Date
    10-09-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    11

    How to shift cells down with new entry in sorted list

    Hi everyone. I have a list of customer names that auto updates with new names from another worksheet and auto sorts in column A. The customer's address are in column B and telephone numbers are in column C as follows:


    Don DonAddress Telephone1
    Sam SamAddress Telephone2
    Zadie ZadieAddres Telephone3

    But when column A inserts a new name and updates, the rows below the new name in columns B and C does not shift down and the data becomes misaligned from left to right as shown below:

    Don DonAddress Telephone1
    Fred SamAddress Telephone2
    Sam ZadieAddres Telephone3
    Zadie

    Any VBA/macro ideas as to how to automatically shift the data down in column B and C leaving blank, formatted cells beside the new name as shown below?

    Don DonAddress Telephone1
    Fred
    Sam SamAddress Telephone2
    Zadie ZadieAddres Telephone3
    Last edited by robert41; 10-09-2012 at 06:50 PM.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: How to shift cells down with new entry in sorted list

    attach a sample file for testing
    If solved remember to mark Thread as solved

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,628

    Re: How to shift cells down with new entry in sorted list

    This problem arises only column A is selected and sorted.
    Dont select the column , insted select any cell within the data range and sort on column A.
    You will get desired result.

  4. #4
    Registered User
    Join Date
    10-09-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: How to shift cells down with new entry in sorted list

    Quote Originally Posted by patel45 View Post
    attach a sample file for testing
    Thanks for your reply. Here is a sample file: Attachment 185911 . Hidden Columns A to H of the "Customer Record" worksheet auto sorts and remove duplicates from the customer names in the "Loan Record" worksheet. You can see what happens in the Customer record worksheet if you type "Bob" or "Dan" in the Loan record worksheet. Is there a macro/vba that can fix this?

  5. #5
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: How to shift cells down with new entry in sorted list

    You attached a file with Hidden Columns, how can I understand how it works ?

  6. #6
    Registered User
    Join Date
    10-09-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: How to shift cells down with new entry in sorted list

    Thanks again patel45, here is the file with all columns unhidden: Attachment 185989

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,595

    Re: How to shift cells down with new entry in sorted list

    Is this what you wanted?
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    10-09-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: How to shift cells down with new entry in sorted list

    Quote Originally Posted by jindon View Post
    Is this what you wanted?
    YES!!! THIS IS WHAT I NEEEDED!!!! THANK YOU VERY MUCH! And your code was so elegant and simple...THANKS AGAIN!

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,595

    Re: How to shift cells down with new entry in sorted list

    Thanks for the feedback and please mark this thread as "SOLVED".

+ 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