+ Reply to Thread
Results 1 to 3 of 3

Select Specific Rows Dependent on Criteria (Not Auto-Filter)

  1. #1
    Forum Contributor
    Join Date
    07-02-2012
    Location
    UK
    MS-Off Ver
    365/2008
    Posts
    152

    Select Specific Rows Dependent on Criteria (Not Auto-Filter)

    I want to look for rows on sheet 1 that have a specific value in column C and show only those rows on sheet 2.

    Auto filter is not an option as I need sheet 2 to be the base data for a report that sheet 1 draws from an external source.

    (I wanted to post an example s/sheet but can't for some reason).

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Select Specific Rows Dependent on Criteria (Not Auto-Filter)

    You could record/write a macro that filters the data, copies only those rows and pastes them in Sheet 2.

    Would that work for you at all?

    BSB

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Select Specific Rows Dependent on Criteria (Not Auto-Filter)

    Try ..

    =IFERROR(INDEX(Sheet1!$B$1:$B$1000,SMALL(IF(Sheet1!$C$1:$C$1000="a",ROW($B$1:$B$1000)-ROW($B$1)+1,""),ROWS($B$1:B1))),"")

    Place in Sheet2

    Enter with Ctrl+Shift+Enter and copy down as far as required.

    Will put values from Column B where column C has value of "a"

    Without seeing your data, you could either amend INDEX range (B) to other columns you wish to extract or if you have a "key" field use VLOOKUP to transfer other data.

+ 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] Macro to hide rows (Auto filter) based on multiple criteria
    By pauldaddyadams in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-03-2014, 07:36 AM
  2. VBA auto filter to select field based on certain criteria
    By joshnathan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2014, 01:33 PM
  3. Delete Rows hidden by either Auto Filter and Advanced Filter
    By lesoies in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2013, 10:29 AM
  4. Replies: 4
    Last Post: 05-19-2010, 10:14 AM
  5. Replies: 2
    Last Post: 07-12-2006, 09:52 AM
  6. Replies: 0
    Last Post: 05-22-2006, 03:45 PM
  7. Auto Filter Delete Rows by Criteria Doesn't Work Range To Complicated
    By robertjtucker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-29-2005, 01:05 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