+ Reply to Thread
Results 1 to 16 of 16

first sheet data need to update from second sheet

  1. #1
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Post first sheet data need to update from second sheet

    dear friends.here i have attached my document.i want to update first sheet according to second sheet data.my requirement is ,,,
    01.need to check second sheet column "G" empty or not.
    02.if column "G" is not empty then same row column "B" value need to match with first sheet column "K"
    03.if anything matched & first sheet same row column "L" value is " NOT DYED " then that cell need to clear.
    some time second sheet column "B" value is " 130216A " & first sheet sheet column "K" value "130216A-B".
    in this case we have to match only first 6 characters.if whole cell is not match & first 6 characters only match then column "L" ," NOT DYED " word should change to " PART DYED "
    i think my question can understand.pls make macro for this.thanks a lot.
    Attached Files Attached Files
    Last edited by johncena; 04-26-2010 at 05:38 AM.

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: first sheet data need to update from second sheet

    See attached file where I added this macro on second sheet:
    Please Login or Register  to view this content.
    Regards,
    Antonio
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: first sheet data need to update from second sheet

    thanks a lot sir antoka05.pls tell me how i can run this.???

  4. #4
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: first sheet data need to update from second sheet

    It's enough you change a value in 'G' column on second sheet and macro will check all values in 'b' column on first sheet.

    Regards,
    Antonio

  5. #5
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: first sheet data need to update from second sheet

    Quote Originally Posted by antoka05 View Post
    It's enough you change a value in 'G' column on second sheet and macro will check all values in 'b' column on first sheet.

    Regards,
    Antonio
    wow thanks a lot sir.i have two problems.if second sheet column "B" value "130216A" then first sheet answer not correct.but same value "130216B" then answer correct.
    my second question is this second sheet data I'm daily taking from another department.if i over wright this report according that first sheet answer can i take.

  6. #6
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: first sheet data need to update from second sheet

    I apologize for my mistake, see attache file where I correct macro.

    When you overwrite data of second sheet please try to change one of values of 'g' column so macro starts and updates first sheet.

    Regards,
    Antonio
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: first sheet data need to update from second sheet

    wow thanks a lot sir Antonio.everything work very well.thanks a lot again.....

  8. #8
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: first sheet data need to update from second sheet

    I'm glad you fixed your problem.

    Regards,
    Antonio

  9. #9
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: first sheet data need to update from second sheet

    See attached file, I modified as you asked in private messages.

    I hope now it runs fine.

    Regardas,
    Antonio
    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: first sheet data need to update from second sheet

    I correct the error in cell L2 of first sheet.

    Regards,
    Antonio
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Post Re: first sheet data need to update from second sheet

    thanks a lot sir,here i have attached my new document.it's giving some error & after running this macro column "L" first empty cell filling with "PART DYED" .pls check this two errors.thanks a lot again...
    Attached Files Attached Files
    Last edited by johncena; 05-16-2010 at 02:04 AM.

  12. #12
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: first sheet data need to update from second sheet

    Please tell me which are the cells that don't work because I can't understand where the error is.

    Regards,
    Antonio

  13. #13
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: first sheet data need to update from second sheet

    Quote Originally Posted by antoka05 View Post
    Please tell me which are the cells that don't work because I can't understand where the error is.

    Regards,
    Antonio
    thanks for your reply sir.second sheet column "B" some numbers not available in first sheet column "K".because of that macro giving error.in this case macro have to avoid that not available numbers.

  14. #14
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: first sheet data need to update from second sheet

    In attached file I've fixed the error.
    I noticed that the macro is a bit slow because every time updates sheet1 with all rows of Sheet2.
    If you agree I could modify the macro so that only updates the data for the current row of sheet2 and put a button anywhere in sheet2 to update all rows as actually do so when it is necessary you can still update all rows.

    Regards,
    Antonio
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: first sheet data need to update from second sheet

    Quote Originally Posted by antoka05 View Post
    In attached file I've fixed the error.
    I noticed that the macro is a bit slow because every time updates sheet1 with all rows of Sheet2.
    If you agree I could modify the macro so that only updates the data for the current row of sheet2 and put a button anywhere in sheet2 to update all rows as actually do so when it is necessary you can still update all rows.

    Regards,
    Antonio
    thanks a lot sir.now it's working very well.this is ok for me.if something is wrong i will ask u.thanks a lot again & again sir.

  16. #16
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: first sheet data need to update from second sheet

    I'm glad you fixed your problem.

    Regards,
    Antonio

+ 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