+ Reply to Thread
Results 1 to 7 of 7

Update 2nd worksheet with new/changed data from first

  1. #1
    Registered User
    Join Date
    12-02-2003
    Posts
    5

    Smile Update 2nd worksheet with new/changed data from first

    Hello Gurus! I have muddled through with your examples and have a very rough solution for my task but I'm hoping to find a way to clean it up and make it easier to work with. I will be turning the task over to a newbie and they will not understand my rough work. I am a computer tech but can only just muddle through any programming.

    I have one Excel 2010 Workbook with two Worksheets. "Phonelist" has five columns: Name, Email Address, Phone, Cell Phone and Birthday. "SDBM" is a sub-set of the PhoneList. The PhoneList changes from time to time, either with new additions or changes to existing data and when this happens, I want to automatically update "SDBM"

    What I do now: (1) If I have NEW data, I enter ONE new name at a time in the PhoneLIst-- in the last row. (2) I jump to "SDBM" and click a button that runs a script that copies over the Name and Birthday fields from the last row of the PhoneLIst. If there is more than one new row, I have to jump back and forth as it will ONLY copy the last entry. (3) Then from SDBM I click a button that runs another macro that sorts the newly added row and places it in order by birthdate. The Age column is then filled in automatically. (4) I then have to format Worksheet "B" because my font and alignment is off. (5) Back to Worksheet "A" to run a Sort macro to place the new entry in alphabetic order by name.

    What I would like to do is to update the PhoneList with ALL changes at one time then:

    1. Sort the PhoneList so that the newly added data is in alphabetic order.
    2. Compare PhoneList and SDBM. If there is new or changed data, update SDBM.
    3. Sort SDBM so that the newly added data is in age order.
    4. Calculate and populate the AGE field for the newly added rows in SDBM. Right now it is a complicated mess.
    5. Make sure that font and alignment are set so that it is ready to be printed.

    I have found various examples here and in other forums and have tried to piece them together for my purposes but most are too complicated for me at this point and I'm running out of time. If I was to continue doing this task I could keep working on it while using my current ugly procedures but, the new person will be very confused and frustrated, I'm sure.

    Any help would be greatly appreciated. You will be helping a good cause and teaching me a few things too!

    Thanks in advance!

  2. #2
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Update 2nd worksheet with new/changed data from first

    The 5 requests are not too difficult to automate. I do have one question? Q#2... How is the PhoneList compared with SDBM? Is it only with a single column like email (which is a unique field) or is there any other requirements to take into account?
    Regards,
    Rudi

  3. #3
    Registered User
    Join Date
    12-02-2003
    Posts
    5

    Re: Update 2nd worksheet with new/changed data from first

    Actually the data that copies from the PhoneList to SDBM is column A, the name field and column E, the birthdate field.
    SDBM gets weird then, I have a column that is pre-filled with the current date (Hidden), and a column that calculates exactly how old the person is...years and days and then a column with the birth month. The data in SDBM is then sorted by (1) the birth month and (2) the exact age. So, SDBM shows the persons name, their birthdate, how old they are and it is all sorted by date. I know, weird. If I could just figure out how to do the simple part, the compare and update of SDBM and copy of the name and birthday, sorted by date, I'd be more than happy. Thank you so much for your help!

  4. #4
    Registered User
    Join Date
    12-02-2003
    Posts
    5

    Re: Update 2nd worksheet with new/changed data from first

    I've attached a copy of what I have. Thanks!
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Update 2nd worksheet with new/changed data from first

    Hi,

    Here is an updated workbook with the functionality I *assumed* you need. I have remodeled the entire workbook; cleaned up the formulas (and removed the hidden columns which are no longer needed), removed the extra buttons and updated the code to do ALL sorting and transferring in one go.

    Basically, you can add all the necessary names to the birthday list, and continue to add new names to it along the way. The Sort and Transfer button will replace the list in the SDBM list with the names in the birthday list each time you click the button. The SDBM list will be sorted according to the Month and Birthday content after the transfer.

    Give it a try and see if it is doing what you need....
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-02-2003
    Posts
    5

    Re: Update 2nd worksheet with new/changed data from first

    You are AMAZING! Thank you so very much! I can only hope that with more practice I can learn to this.

  7. #7
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Update 2nd worksheet with new/changed data from first

    Good to know its working for you...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Update one worksheet if certain cells on other worksheets (many) are changed
    By rls231 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-02-2013, 04:17 PM
  2. Replies: 21
    Last Post: 03-14-2013, 07:33 AM
  3. Automatically update date when a range of data is changed
    By rcvanriet in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 09-12-2012, 12:58 PM
  4. How do you update a pivot chart when the data is changed?
    By trainer07 in forum Excel General
    Replies: 1
    Last Post: 05-16-2006, 05:45 PM
  5. Charts don't update when data is changed, why not?
    By Frank in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-08-2005, 08:05 PM

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