+ Reply to Thread
Results 1 to 9 of 9

update record sheet from production sheet

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

    Post update record sheet from production sheet

    dear friends here i have attached my document.in my document first sheet I'm keeping record about my daily production.second sheet is my production report.what i want to do is production report data should copy to first sheet correct place,for that second sheet column "B" first 6 characters need to mach with sheet one column "M".if it is matched then sheet two same row column "G" values should copy to first sheet column "N".if at that time any values are already there then don't overwrite that values & new values should combined.
    ex-
    old value = 5
    new value = 10
    after running macro =5+10
    pla any body can make macro for this.it's very big help for me.thanks.
    Attached Files Attached Files
    Last edited by johncena; 03-19-2010 at 07:00 AM.

  2. #2
    Forum Contributor
    Join Date
    02-04-2010
    Location
    Hertfordshire, England
    MS-Off Ver
    Office 2007 (home) Office 365 (work)
    Posts
    134

    Re: update record sheet from production sheet

    Hi johncena

    I think the following code may provide you with the solution you want.

    Please amend accordingly.

    Please Login or Register  to view this content.

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

    Re: update record sheet from production sheet

    thanks a very much excelxx your code almost working.pls can make second sheet column "B" first 6 characters match with sheet one column "M" first 6 characters.because sometime it's coming like this.
    ex-second sheet column "B" 125464A & first sheet column "M" same number 125464A-B.
    that copy values u can do like this.
    ex-
    if only one value it should like this (=5) without brackets.
    if already values are there then (=5+10) without brackets.

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

    Re: update record sheet from production sheet

    You can try with this code:
    Please Login or Register  to view this content.
    Regards,
    Antonio

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

    Post Re: update record sheet from production sheet

    dear antoka05 below link has some error....
    Please Login or Register  to view this content.

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

    Re: update record sheet from production sheet

    Ohps, I apologize for that.
    Please change row 22 code:
    Please Login or Register  to view this content.
    with:
    Please Login or Register  to view this content.
    Regards,
    Antonio

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

    Re: update record sheet from production sheet

    wow thanks a lot antoka05.just only one problem is there.if first sheet column "M" value only 6 characters then your macro work very well.but it's like this "125465A-B ".is not working.pls make this correct.thanks a lot.

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

    Re: update record sheet from production sheet

    I changed macro... I hope this runs fine:
    Please Login or Register  to view this content.
    Regards,
    Antonio

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

    Re: update record sheet from production sheet

    thank you very much antoka05.it's 200% working.thanks a lot again.REP+

+ 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