+ Reply to Thread
Results 1 to 7 of 7

How to select records meeting specific criteria?

  1. #1
    Forum Contributor
    Join Date
    01-15-2013
    Location
    London
    MS-Off Ver
    Excel 2003, 2007, 2010, 2019
    Posts
    436

    How to select records meeting specific criteria?

    Hi, I'm looking for help for an Excel problem. I want to select those records which meet specific criteria. To make this easy to explain, I attached an example here. Basically,

    In cell B12, there is a dropdown list to select analyst code (AJ, AL, AM). The purpose is to select those companies that are located in the UK which is covered by an analyst. For example, if B12 is "AL", then companies of OPQ, UVW should be displayed.
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: How to select records meeting specific criteria?

    What do you want to do after selecting? Highlight or copy?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to select records meeting specific criteria?

    Hi, arlu2101, just simply show the values will be fine. Just need to find these values.

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to select records meeting specific criteria?

    HI BNCOXUK,

    Try using below formula which need to be entered with key combination: ctrl shift enter
    =IFERROR(INDEX(data,SMALL(IF(data_c="UK",ROW(data_c)-2,""),ROW($A1))),"")

    where data and data_c are defined names which you can see by pressing key ctrl + F3

    see attachment:-


    Regards,
    DILIPandey
    <click on below * if this helps>
    Attached Files Attached Files
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  5. #5
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to select records meeting specific criteria?

    Hi, DILIPandey, thanks for the really clever approach. Total enjoy it. Will learn and make it applicable to my case.

  6. #6
    Forum Contributor
    Join Date
    01-15-2013
    Location
    London
    MS-Off Ver
    Excel 2003, 2007, 2010, 2019
    Posts
    436

    Re: How to select records meeting specific criteria?

    Quote Originally Posted by dilipandey View Post
    HI BNCOXUK,

    Try using below formula which need to be entered with key combination: ctrl shift enter
    =IFERROR(INDEX(data,SMALL(IF(data_c="UK",ROW(data_c)-2,""),ROW($A1))),"")

    where data and data_c are defined names which you can see by pressing key ctrl + F3

    see attachment:-


    Regards,
    DILIPandey
    <click on below * if this helps>
    Thanks for your time to answer my question. It worked nicely

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to select records meeting specific criteria?

    You are welcome BillJ / BNCOXUK

    Cheers

    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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