+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Copying entire rows of data if a cell meets certain criteria

  1. #1
    Registered User
    Join Date
    01-23-2011
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    2

    Copying entire rows of data if a cell meets certain criteria

    Hi,

    I'm currently responsible for an organization's budget. I have a main banking report on Sheet1 that lists all the checks written with columns containing date, check #, amount, and the part of the budget it was for. I then have a sheet for each part of the budget. I would like to figure out a way to automatically copy an entire row of the data from the banking report to the sheet that it specifies. For example if I enter check # 101 on 1/1/2011 for $500 and its apart of the President's budget I want the entire row to be transferred to the President's budget separate sheet, but still remain on the consolidated banking report. So kind of like an 'if column E contains "President" then copy the row containing "President" to Sheet2 into a table.' There would be multiple instances that check will be written for the same part of the budget, so I would need all instances of President to be copied to the separate table. I know it kind of sounds confusing so I will try to clarify if need be. I'd appreciated any guidance greatly!!

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Copying entire rows of data if a cell meets certain criteria

    Hi mhylton13

    If you'll post a workbook with a broad representation of the Banking Report, I think I can demonstrate how to split these out to the individual cost center sheets. Are the headings the same across all sheets?

    Show me what you have; perhaps I can help.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    01-23-2011
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Copying entire rows of data if a cell meets certain criteria

    Here's an over simplified version of what it looks like... The headings are the same on all of the sheets. I appreciate you taking a look at this!
    Attached Files Attached Files

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Copying entire rows of data if a cell meets certain criteria

    Hi mhylton13

    Try this code
    Please Login or Register  to view this content.
    Place the code in a general module. Let me know of issues.

+ 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