+ Reply to Thread
Results 1 to 12 of 12

please help me with filtering function

  1. #1
    Registered User
    Join Date
    10-15-2013
    Location
    united states
    MS-Off Ver
    Excel 2010
    Posts
    64

    please help me with filtering function

    Hey everyone! I really need some help/guidance.
    This is my objective, I’m not sure if I need a function or filter or macro, anyway here’s my situation.
    I have an excel spreadsheet that is being updated with data every day. For explanations sake I’m going to call the “script/action” command X.
    I need to be able run command X on the daily updated spreadsheet.
    This command X would need to do the following.
    Start Loop
    Search through column E
    Find string “Thank You” (in column E) -1st criteria
    and
    Find string “Transfer” (in column E) – 2nd criteria
    Once string “Transfer” is found
    Then Copy Data in Row (A-E) (same row “transfer” was found”)
    Paste data into new spreadsheet, spreadsheet_transfer.xls
    Repeat from top to bottom of spreadsheet (row 1 to row n)
    I can edit it and add my 2nd condition of criteria.
    Which would be 1-“Thank You” and 2-“Hang Up”
    To spreadsheet_hungup.xls
    This way I’ll be able to run this “command X” to filter and copy the data based on the conditions.
    I would really appreciate if someone could help me out with this. I’m in desperate need, and I’ve been struggling for long days.






    This is the new one-2.xlsm

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: please help me with filtering function

    This is another way to do this by using Advanced Data Filter.

    See if the attached workbook is helpful.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    10-15-2013
    Location
    united states
    MS-Off Ver
    Excel 2010
    Posts
    64

    Re: please help me with filtering function

    This is really good but my data is a lot bigger than the example and the criteria that I am looking for is longer text than just Thank You. how can I change that?

    Should I go to macro and change it or how to remove the protection on the sheet so I be able to type something else instead of Thank You and it can filter it

    Thanks for your help

  4. #4
    Registered User
    Join Date
    10-15-2013
    Location
    united states
    MS-Off Ver
    Excel 2010
    Posts
    64

    Re: please help me with filtering function

    The advance filter finds just Transfer or Hang up and sort them but I need it to find Thank you first and then filter and sort Transfer and Hang up.

    in the original file there in many Transfer and Hang up but not all of them comes after the thank you.

    Please help me to find a way to search and filter them

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: please help me with filtering function

    In reference to your post #3: This will take care of all your data no matter how large it is. Moreover you can change the values in K2 and K3 as per your choice.

    In reference to your post #4: Such problem arises when someone upload a workbook with such a data which does not match to his requirements. If you see in column E, you will find either Thank You, Transfer, Hang up or what ever info. You should have clearly matched your original data when putting sample data on the sheet. It saves time as well and leaves no confusion behind neither for you nor for a member helping you.

    Otherwise most of the time,you will find that, the post is started with totally different query and once somebody provides a solution keeping that post in mind, suddenly all equations and requirements get changed. That is really frustrating. Why not put all your requirement in the first post itself and provide good sample data accordingly.

    But never mind. Please make a sheet just like your original sheet (including columns and headers) with matching data and upload it again, so that members may provide you a better solution to your problem.

    I hope it helps.

  6. #6
    Registered User
    Join Date
    10-15-2013
    Location
    united states
    MS-Off Ver
    Excel 2010
    Posts
    64

    Re: please help me with filtering function

    You are absolutly correct.
    but if I need a macro or formula to find Thank You first... then sort the Transfer or Hang Up to different sheets.

    There is other hang up on the sheet that I don't need. I only need the ones that has Thank you before them, if you take close look, they would have different file numbers. some files has thank you and hang up and some has thank you and transfer.

    The ones that has just hang up or transfer is not what I look for.
    I hope this explain it little better.

  7. #7
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: please help me with filtering function

    OK. You mean Transfer or Hang up in the same cell and comes after Thank You. So is it Thank You Transfer and Thank You Hang up? Is there any more text between Thank You and Transfer? Why didn't you right the whole text in the column E. I had a closer look at your file, your cells in column E contain Thank You only, no Transfer or Hang up with Thank You in the same cell. Did you notice that? Please tell me what exactly would be the text in column E?

  8. #8
    Registered User
    Join Date
    10-15-2013
    Location
    united states
    MS-Off Ver
    Excel 2010
    Posts
    64

    Re: please help me with filtering function

    Yes there are more tests between Thank You and Transfer or Thank You and Hang Up.
    The way you offered me was great but it finds the entire hang up without checking the Thank You first. Both criteria needs to work at the same time

    Start Loop
    Search through column E
    Find string “Thank You” (in column E) -1st criteria
    and
    Find string “Transfer” (in column E) – 2nd criteria
    Once string “Transfer” is found
    Then Copy Data in Row (A-E) (same row “transfer” was found”)

  9. #9
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: please help me with filtering function

    I hope this is what you need. Please see the attached sheet.
    Please let me know if you still have an issue.
    Attached Files Attached Files

  10. #10
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: please help me with filtering function

    I think I didn't take care of one point mentioned in post #8 (Then Copy Data in Row (A-E) (same row “transfer” was found”).
    If am not wrong, you want that if matching text is found in row 13 in the Main Data sheet, you want to copy it in row 13 of the Report sheet. Right?
    If yes, please see the modified attached see to achieve this.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    10-15-2013
    Location
    united states
    MS-Off Ver
    Excel 2010
    Posts
    64

    Re: please help me with filtering function

    Thanks for your help but you changed what I asked for. I need a macro to look for two criteria in two different cells in the same column. you took both of criteria from two different cells and enter it in one. would you please just give me a macro that look for two different criteria Thank You and Transfer in two different cell in one column (E). Thanks

  12. #12
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: please help me with filtering function

    Really confusing. As per your sample sheet, thank you and transfer exist in the same cell in column E and code first check where a string in a cell of column E has thank you first followed by transfer, then the code copies the information and paste it on the desired sheet. Same with thank you and hang up. I clarified it with you in my previous posts. Then what do you mean by.....
    "I need a macro to look for two criteria in two different cells in the same column. you took both of criteria from two different cells and enter it in one."

+ 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. [SOLVED] Filtering duplicates in a row with a function
    By utahmoose in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-17-2013, 11:32 AM
  2. [SOLVED] Help with list filtering function
    By imperitor in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-26-2012, 02:20 PM
  3. A filtering and sum type function?
    By Nettix in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-25-2011, 06:57 PM
  4. Filtering Function??
    By twayne in forum Excel General
    Replies: 12
    Last Post: 06-03-2009, 02:34 PM
  5. [SOLVED] Filtering Data with Rank Function
    By SteveC in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-26-2006, 05:25 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