+ Reply to Thread
Results 1 to 5 of 5

formula to extract row based on criteria

Hybrid View

  1. #1
    Forum Contributor keith740's Avatar
    Join Date
    04-24-2015
    Location
    Racine, Ohio
    MS-Off Ver
    MS365
    Posts
    245

    formula to extract row based on criteria

    Hello all!

    I have 3 different teams of employees, at the end of the day their KPI is posted to sheet1 and all 3 teams are sorted together(See attached: Sheet1). (their is hundreds of employees, this is just small example)

    i need to separate the teams and paste rows to sheet2 to the appropriate team.

    sheet3 is the desired results i am looking for.

    column B contains the criteria... V, A, and Z

    Is their any way i can do this with formula, as i really dont want to go with macro or VBA unless i really have to (for some reason macro makes pc freeze).

    Any help is greatly appreciated!!
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: formula to extract row based on criteria

    Put this ARRAY formula in A2, and copy down and across...
    =IFERROR(INDEX(Sheet1!A$2:A$40,SMALL(IF(LEFT(Sheet1!$B$2:$B$40,1)="v",ROW(Sheet1!$A$2:$A$40)-1),ROWS($A$1:A1))),"")
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Change the bolded part (the letter) for each set
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor keith740's Avatar
    Join Date
    04-24-2015
    Location
    Racine, Ohio
    MS-Off Ver
    MS365
    Posts
    245

    Re: formula to extract row based on criteria

    thank You again FDibbins!!!

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: formula to extract row based on criteria

    With a pivot table.

    Se the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: formula to extract row based on criteria

    Happy to help, thanks for the feedback

+ 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. Extract based on multiple criteria
    By whatever61 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-22-2015, 03:01 PM
  2. Replies: 3
    Last Post: 12-18-2014, 10:27 AM
  3. [SOLVED] Extract certain data based on two criteria
    By sam-0987 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-05-2013, 01:23 AM
  4. Trying to extract rows based of criteria
    By hrrvett in forum Excel General
    Replies: 1
    Last Post: 08-05-2011, 11:58 PM
  5. Extract records based on criteria
    By Amarjeet Singh in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 01-12-2009, 03:41 AM

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