+ Reply to Thread
Results 1 to 13 of 13

Need a macro to append data from one worksheet to another in the same workbook

  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    7

    Need a macro to append data from one worksheet to another in the same workbook

    Hi all,

    I am seriously looking for some help to append data from one worksheet to another with specific criteria.

    My master worksheet (Register) contain the field Loc, DR, Client No., Holdings and Remarks.
    The specific criteria is at the Remarks column, whereby it contain USD, GBP, SGD & Share.

    What was intended is to append the data (Loc, DR, Client No., Holdings and Remarks) that has the Remarks "USD" to another worksheet call "USD worksheet" in the same workbook.
    I have attach the excel workbook for reference.

    I would not mind if there is an excel formula that works too.

    Hope I can get some help soon.

    Thanks in advance for any response

    Regards,

    Sam Chee
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Need a macro to append data from one worksheet to another in the same workbook

    Hi, Check if the formula in the attached sheet would help.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-10-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need a macro to append data from one worksheet to another in the same workbook

    Hi Sindhus,

    Thank you in advance.
    The formula do helps, but how to get rid of #NUM!?
    What if the master copy data is large? Sometime can be little and sometime a lot of data.

  4. #4
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Need a macro to append data from one worksheet to another in the same workbook

    Just enclose the entire formula with iferror. =iferror(existing_Formula,"")

  5. #5
    Registered User
    Join Date
    10-10-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need a macro to append data from one worksheet to another in the same workbook

    Hi Sindhus,

    Thanks, will try it out.

    Regards,

    Sam Chee

  6. #6
    Registered User
    Join Date
    10-10-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need a macro to append data from one worksheet to another in the same workbook

    Hi Sindhus,

    Ok, I try it out in my copy of excel, but it does not work at all.

    Regards,

    Sam Chee

  7. #7
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Need a macro to append data from one worksheet to another in the same workbook

    Hi Sam Chee,
    PFA the attached sheet. It is an array formula. You need to enter it with Ctrl+Shift+Enter. Enter the formula it the first row. And you can copy it to the other rows.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    10-10-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need a macro to append data from one worksheet to another in the same workbook

    Hi Sindhus,

    Thank you for your patience.
    I have tried to entry the formula manually, after completing i press Ctrl+Shift+Enter, but the result came out to a 0(zero).
    Not sure where have i make a mistake, I have attach the copy for your reference, hope that you are able to pinpoint where my mistake is.
    Attached Files Attached Files

  9. #9
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Need a macro to append data from one worksheet to another in the same workbook

    Hi Sam Chee,
    In the formula you have missed two " marks. At the end of the formula, it should be row(indirect("1:113")). You have entered it as row(indirect(1:113))

    Regards,
    Sindhu

  10. #10
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: Need a macro to append data from one worksheet to another in the same workbook

    Hi sam chee,

    Please find the attached file of excel

    i think it may solve your problem
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    10-10-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need a macro to append data from one worksheet to another in the same workbook

    Hi Sindhus,

    Thanks for the pinpointing, I will go thru' it again.

    Have a nice day.

    Regards,
    Sam Chee
    Last edited by sam chee; 10-11-2012 at 06:36 AM. Reason: Resolve

  12. #12
    Registered User
    Join Date
    10-10-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need a macro to append data from one worksheet to another in the same workbook

    Hi Mohan.r1980,

    I have tried it out, it really resolve my issue.

    Thanks a million.
    Last edited by sam chee; 10-11-2012 at 06:37 AM. Reason: Resolve

  13. #13
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: Need a macro to append data from one worksheet to another in the same workbook

    Hello sam chee

    your welcome

    Please mark your thread as Solved

+ 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