+ Reply to Thread
Results 1 to 10 of 10

How to keep 1 column of manual input data associated with auto-update columns

  1. #1
    Registered User
    Join Date
    02-21-2012
    Location
    texas, usa
    MS-Off Ver
    Excel 2010
    Posts
    5

    Question How to keep 1 column of manual input data associated with auto-update columns

    I have a workbook with ten (10) columns. The first nine (9) columns (A through I) are auto-updated from another source using a macro. These nine (9) columns display project/task related information. This data is assigned a number that can be seen in the "Task Unique ID" column (B) and displayed in a row. The last column (J) is "date completed" which is manually input by project managers.

    Each time the worksheet is auto-updated, the project/task information may change row number depending if data has been added or deleted. So, my problem is how to keep the manual input column (J) "date completed" associated with the specific task unique ID column (B).

    I tried to use the macro to copy the information from one sheet (On Time Delivery) to another (Vlookup) as a place holder and then copy it back based on the "Task Unique ID" number. I am having trouble with identifying what would be the simplilest way to accomplish this task and what programing steps to take. Any help is greatly appriciated.
    Attached Files Attached Files

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to keep 1 column of manual input data associated with auto-update columns

    Hi excel.use,

    You can simply use vlookup from "vlookup" tab to obtain the date completed... either you can apply this manually after the data extraction or you can add this part into macro. Thanks.

    Regards,
    DILIPandey


    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Registered User
    Join Date
    02-21-2012
    Location
    texas, usa
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: How to keep 1 column of manual input data associated with auto-update columns

    Thanks for your repsonse, but I tried to apply the vlookup function with no luck.

    Referencing the attached workbook, I want to compare each row in column A "Task Unique ID" from worksheet Vlookup with each row in column B "Task Unique ID" from worksheet On Time Delivery. If they match, then copy the cell contents from column B "Date Complete" in worksheet Vlookup to column J "Date Complete" in worksheet On Time Delivery.

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to keep 1 column of manual input data associated with auto-update columns

    Hi excel.use,

    See the attached file, On time delivery tab, column K. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-21-2012
    Location
    texas, usa
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: How to keep 1 column of manual input data associated with auto-update columns

    Thank you dilipandey for your time! Very simple solution to this problem. I believe this will do the trick!

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to keep 1 column of manual input data associated with auto-update columns

    You are welcome excel.use...


    Cheers

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  7. #7
    Registered User
    Join Date
    02-21-2012
    Location
    texas, usa
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: How to keep 1 column of manual input data associated with auto-update columns

    I have one more issue with this macro. When the VLOOKUP function is entered into the table, it populates "#N/A" down and down for a million rows. I attached an example but deleted most of the "N/A" rows as the file is too large. Obviously I need it to stop at the end of my data. Thanks for any help!
    Attached Files Attached Files

  8. #8
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to keep 1 column of manual input data associated with auto-update columns

    Hi excel.use,

    I have revised the code you had in your file, test and review the same and let me know if case of any questions. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    02-21-2012
    Location
    texas, usa
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: How to keep 1 column of manual input data associated with auto-update columns

    Thanks again DILIPandey. There are only 359 rows in this example. Yesterday, the macro would populate from row J2 to row J1,000,000. Now after you have made the change above it populates from J2 to J393. Why did this change? Can I control how many rows are populated, e.g. J2 to J(lastrow)? The list will add and substract rows so I need to be flexible.
    Last edited by excel.use; 03-05-2012 at 04:20 PM.

  10. #10
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to keep 1 column of manual input data associated with auto-update columns

    You are welcome excel.use....

    The macro is populating data till 393 row because you have your table spread till row 393 and after that it is deleting the extra #N/As after row 359 because it is the row till which you have the data in your column I i.e., Due Date column. So basically macro will delete the extra #N/As after the last data in column I - which I have taken here as an reference for macro to do his task, so this is flexible enough and is working fine. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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