+ Reply to Thread
Results 1 to 4 of 4

Macro to copy data from one sheet to another and give no. orderly

  1. #1
    Forum Contributor
    Join Date
    08-12-2013
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    147

    Macro to copy data from one sheet to another and give no. orderly

    Hello Guys,

    I need urgent help in creating a macro for below requirements:

    1. Macro creates a new sheet with name “Test”.
    2. Now, Macro look for content in “Data” sheet and if there is any data present in Column C then in “Test” sheet it will be marked as 1 in Column B and data should be copied in Column C.
    3. If any data is present in Column D of “Data” sheet then in “Test” sheet it will be marked as 2 in Column B and data should be copied in Column C.
    4. If any data is present in Column E of “Data” sheet then in “Test” sheet it will be marked as 3 in Column B and data should be copied in Column C.
    5. If any data is present in Column F of “Data” sheet then in “Test” sheet it will be marked as 4 in Column B and data should be copied in Column C,
    6. If any data is present in Column G of “Data” sheet then in “Test” sheet it will be marked as 5 in Column B and data should be copied in Column C.
    7. If any data is present in Column H of “Data” sheet then in “test” sheet it will be marked as 6 in Column B and data should be copied in Column C.

    Whenever we run Macro, the “Test” sheet should always be created as new (means old “Test” sheet should be get deleted).

    For more clarification please refer the attached Sample file. Please check the “Test” sheet to see how the data should look after macro.

    Please let me know incase you need any more clarification.

    Thanks,
    MG
    Attached Files Attached Files
    Last edited by Manish_Gupta; 04-25-2014 at 03:08 AM.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro to copy data from one sheet to another and give no. orderly

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-12-2013
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    147

    Re: Macro to copy data from one sheet to another and give no. orderly

    Hello John,

    You had surprised me again. This macro is fulfilling all my requirements.

    Many Thanks for your help.

    Thanks,
    MG

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro to copy data from one sheet to another and give no. orderly

    You're welcome. Glad to help out and thanks for the feedback. Please mark this 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)

Similar Threads

  1. Macro to copy workbook every 3 months, give new name, and delete all tabs except 1
    By scottatbuckman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-07-2014, 09:57 AM
  2. Replies: 0
    Last Post: 08-07-2013, 10:31 AM
  3. Macro to copy Dyanmic lists then copy sheet and clear the original data
    By twiggywales in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-30-2012, 01:06 PM
  4. [SOLVED] Macro to Copy Data from one Sheet A to Sheet B based on value in cell on sheet A
    By scass in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-11-2012, 07:21 PM
  5. Macro/Module running as background process, copy data from sheet to sheet
    By ctor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-05-2009, 05:48 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