+ Reply to Thread
Results 1 to 8 of 8

Extract whole row by vba

  1. #1
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,238

    Extract whole row by vba

    Hi,

    I want to extract a list of rows that fulfills both the condition.

    If any row suppose N2="No" and BQ2="Yes",then extract whole row,
    or,
    If any row suppose N2="Yes" and BQ2="No",then extract whole row,

    Similarly,likewise other rows as well.

  2. #2
    Forum Contributor banaanas's Avatar
    Join Date
    08-26-2014
    Location
    Finland
    MS-Off Ver
    2016
    Posts
    199

    Re: Extract whole row by vba

    Hi!

    Could you attach your excel file.
    One sheet with the raw data and another with the desired output.

  3. #3
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,238

    Re: Extract whole row by vba

    Pls find in attachment.
    Attached Files Attached Files

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,737

    Re: Extract whole row by vba

    Put into A2 on 'Exp Desired result':

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    drag right and down as You need.

    IMHO works fine.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,513

    Re: Extract whole row by vba

    Try this code
    Please Login or Register  to view this content.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Forum Contributor banaanas's Avatar
    Join Date
    08-26-2014
    Location
    Finland
    MS-Off Ver
    2016
    Posts
    199

    Re: Extract whole row by vba

    Thank you.
    This macro will work as you described and add the data to a "Result" sheet. See attachment.

    Code below (also in the attached workbook)

    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: Extract whole row by vba

    try
    Please Login or Register  to view this content.
    Regards,
    MohanS


    "Perfection is not attainable, but if we chase perfection we can catch excellence." - Vince Lombardi

    You can simply say thanks by clicking "*Add Reputation" icon

  8. #8
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2021 / 365
    Posts
    1,238

    Re: Extract whole row by vba

    Thanx all of you.It worked.Additional query mentioned here earlier in post#8 has been removed by me as it seems to be complicated.
    Last edited by paradise2sr; 02-03-2019 at 06:57 AM.

+ 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] How to Extract Extract on userform
    By tariqjahangir in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-05-2016, 04:28 PM
  2. Replies: 3
    Last Post: 12-18-2014, 10:27 AM
  3. Extract all data to new workbook then filter and extract to new worksheets
    By graphicgoose in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-04-2014, 08:18 PM
  4. [SOLVED] Extract 16:30 value each day
    By censura in forum Excel General
    Replies: 4
    Last Post: 12-12-2013, 05:31 AM
  5. extract from web
    By anilg0001 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 05-08-2013, 12:14 AM
  6. Extract Unique Values, Then Extract Again to Remove Suffixes
    By Karl Burrows in forum Excel General
    Replies: 23
    Last Post: 06-25-2005, 08: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