+ Reply to Thread
Results 1 to 4 of 4

Formula needed to identify unique string then capture the entire row it appears in

  1. #1
    Registered User
    Join Date
    08-17-2011
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    2

    Formula needed to identify unique string then capture the entire row it appears in

    So I have a spreadsheet that contains the string N/A in multiple cells. This string signifies data that is missing and will eventually need to be populated. How can I search for each instance of "N/A" then capture the entire row that it appears in and copy it somewhere?

    Ideally, I'd like to copy each row that contains "N/A" to a separate workbook. Any guidance would be most appreciated.

    Thanks.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,001

    Re: Formula needed to identify unique string then capture the entire row it appears i

    Use Autofilter to filter for NA, select the visible rows and copy them to another sheet.

    You can record a macro while you do this manually to give you the basis for the code.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    08-17-2011
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Formula needed to identify unique string then capture the entire row it appears i

    Quote Originally Posted by TMShucks View Post
    Use Autofilter to filter for NA
    Thank you for the suggestion, makes perfect sense. I've never used Autofilter before but it seems straightforward enough.

    Just highlight an "#N/A", hit Autofilter, then bam! Only rows containing "#N/A" are displayed. Is that how its supposed to work? Almost seems too easy!

    Thanks again.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,001

    Re: Formula needed to identify unique string then capture the entire row it appears i

    Yep, that's it. Thanks for the rep.

    Regards

+ 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