+ Reply to Thread
Results 1 to 2 of 2

Update worksheet 1 with data from worksheet 2 based on date validation

  1. #1
    Forum Contributor
    Join Date
    04-11-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    245

    Update worksheet 1 with data from worksheet 2 based on date validation

    Hi -

    First, please see the attached sample workbook.

    In this workbook I have two worksheets; the first worksheet is a Master File containing four data elements:

    1) Effective date
    2) ID number
    3) Quantity
    4) Cost

    The second worksheet is a Future Change File where the user can input a quantity change, a cost change, or both... based on the specified 'Future Effective Date' indicated on this worksheet.

    Here's what I need to happen:

    On the click of the Command Button in the Master File (Sheet 1), I want Excel to :

    a) Lookup each ID number in the Master File (Sheet1) and find it 's corresponding row in the Future Change File (Sheet2)
    b) If the "Future Effective Date "shown in this corresponding row is today's date, Then
    c) Update Master File with new quantity and/ or cost accordingly
    d) Update the effective date displayed on the Master File with today's date
    e) After update is complete, remove the item record from the Future Change file

    Thanks for any help!

    Grilleman
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Update worksheet 1 with data from worksheet 2 based on date validation

    Hi Grilleman

    It seems to me this is reverse of what I think it should be...
    a) Lookup each ID number in the Master File (Sheet1) and find it 's corresponding row in the Future Change File (Sheet2)
    Based on your end goal I believe I'd:
    1. Filter Sheet Future Change File on Column B for Today's Date
    2. Find Column A (ID) of the Filtered Records in Master File Column A
    3. Apply the changes to Master File Columns B, C and D as required
    4. Clear the data from Filtered Record in Future Change Columns B, C and D
    Does this make sense to you?
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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. How to update recap worksheet based on totals and worksheet name
    By gatrooper in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-05-2013, 05:32 PM
  2. Replies: 2
    Last Post: 04-30-2013, 08:09 AM
  3. [SOLVED] HELP ... Update a worksheet based on raw data in another worksheet
    By melanieokane in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-03-2013, 12:08 PM
  4. Data validation disappears with multiple worksheet auto update
    By Keiralea in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2013, 03:29 PM
  5. Replies: 5
    Last Post: 04-09-2009, 12:23 AM
  6. Update a formula based on date worksheet was saved
    By Kevin McQuain in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-06-2005, 10:05 AM

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