+ Reply to Thread
Results 1 to 9 of 9

Copy with Criteria

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Copy with Criteria

    Hello:

    I have lots of bank transaction data in column A thru F.

    I need to copy all row's of data if value of Cell in Column E consist of text "Loan to" and corresponding cell in column F is
    negative.

    I have manually pasted data in Cell J2.

    Please let me know if any questions.

    Thank you

    Riz Momin
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,378

    Re: Copy with Criteria

    Hi Riz,

    Find the answer to your question here:
    http://www.contextures.com/xladvfilter01.html

    Didn't I do an advanced filter for you a few days ago? I don't want to do this one for you as I think you can figure it out yourself...

    If you first try and can't make it work, bump this and we can see what the problem is...
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy with Criteria

    Riz,
    Try the attached
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Copy with Criteria

    Hi AB33:

    This works great for me.
    I am very thankful for all exceller on this forum for great help.
    I am not a VB programmer and all helps are greatly appreciated.

    Thank you

    Riz Momin

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy with Criteria

    Riz,
    You are welcome!

  6. #6
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Copy with Criteria

    Hi AB33:

    I have changed "[Loan to *]" to "Income *" to see if it filters but it gave error.
    Can you please have a look and let me know.
    I want to make this code so that i can filter any category
    Thank you

    Riz Momin

  7. #7
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy with Criteria

    Riz,
    Please find amended.
    If the filter does not find criteria true, it does not copy anything. To test it, I have changed the income row in to negative, and the code copied that row.
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Copy with Criteria

    Hi AB33:

    Yes this works, thanks a lot..

    Riz Momin

  9. #9
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Copy with Criteria

    Hi AB33:

    I am moving down the data to start from row 4 instead of row 1.
    By doing that it gives error.
    I change the code
    Please Login or Register  to view this content.
    But gives error.
    Can you please have a look and see where i am going wrong.

    Thank you

    Riz Momin

+ 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