+ Reply to Thread
Results 1 to 4 of 4

If cell =X then copy entire row to new workbook

  1. #1
    Registered User
    Join Date
    06-25-2014
    Location
    scotland
    MS-Off Ver
    2010
    Posts
    5

    Unhappy If cell =X then copy entire row to new workbook

    Hi, Newbie here so please bear with me.

    I would like to know how to copy paste from one sheet to another within the same file using the IF function or code.

    I have thousands of entries of staff details and would like a formula/code to copy rows into new sheets for each service line.

    I have attached a sample workbook on tab 1 and how I would like the data to be appear in tabs 2-4. The formula/code should check column A in tab 1 for service line e.g. roads, finance and then copy corresponding rows to individual sheets as detailed in example, so I would end up with extracts for each service.

    Hope this makes sense
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: If cell =X then copy entire row to new workbook

    Try the following code:
    Please Login or Register  to view this content.
    HTH!

  3. #3
    Registered User
    Join Date
    06-25-2014
    Location
    scotland
    MS-Off Ver
    2010
    Posts
    5

    Re: If cell =X then copy entire row to new workbook

    Hi jewelsharma,

    Thanks for your response. It works a treat and does exactly what I was looking for.

    Apologies for the lateness of my reply, been on holiday and only just back to test.

    Thank you again

  4. #4
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: If cell =X then copy entire row to new workbook

    Cheers mate. Kindly 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. How can I copy and paste an entire workbook?
    By Jordon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2017, 05:35 PM
  2. How to copy entire row of data into new workbook
    By Fredvonny in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-15-2013, 09:42 AM
  3. [SOLVED] Copy entire row of data into new workbook
    By T15K in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-18-2013, 08:22 AM
  4. How do I make a copy of a entire workbook?
    By Jan B. in forum Excel General
    Replies: 2
    Last Post: 05-31-2006, 07:25 PM
  5. [SOLVED] copy entire row to another workbook
    By Craig in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-21-2006, 05:10 PM

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