+ Reply to Thread
Results 1 to 4 of 4

VBA code to filter data

  1. #1
    Registered User
    Join Date
    02-16-2013
    Location
    Zhiliga
    MS-Off Ver
    Excel 2007
    Posts
    6

    VBA code to filter data

    Hello

    Can anyone help me to figure out a macro that will do the following:

    It should copy/past the whole row in Sheet 2 of numbers in column A if this number has only Q5 at the end if the number has both Q5 and Q6 so it shouldn´t copy/paste the row in Sheet2

    For example 567 has both Q5 & Q6 at the end so the row shouldn´t be copied/pasted in Sheet2


    Thanks in advance!!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Dunc3142's Avatar
    Join Date
    09-05-2007
    Location
    Franklin OH
    MS-Off Ver
    2000 and 2007 and 2010 @ Home & Teach 2010
    Posts
    351

    Re: VBA code to filter data

    This might work for you. after using the formulas, if you need the data to be together, you could do a select all, Copy, Paste Special and choose values. then sort the data.
    Attached Files Attached Files
    Yes it will. we just have to figure out how...
    If I have helped you, PLEASE click the * and add to my Rep.
    Also, if the problem is SOLVED please mark it as so.

  3. #3
    Registered User
    Join Date
    02-16-2013
    Location
    Zhiliga
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: VBA code to filter data

    Quote Originally Posted by Dunc3142 View Post
    This might work for you. after using the formulas, if you need the data to be together, you could do a select all, Copy, Paste Special and choose values. then sort the data.
    Thanks a alot Dunc3142 for you quick respons but this function is not applying the condition that is if the same number on the column A (Sheet1) has both Q5 and Q6 at the end so it shouldn´t show up in Sheet2. As it is the case here for 567Q5, it shouldn´t be in Sheet2 because there is 567Q6 in Sheet1 column A. Your function will copy/paste all numbers with Q5 at the end

  4. #4
    Registered User
    Join Date
    02-16-2013
    Location
    Zhiliga
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: VBA code to filter data

    I wrote this can someone please help me to fix it:

    Thanks

    Please Login or Register  to view this content.

+ 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