+ Reply to Thread
Results 1 to 15 of 15

Extract The Entire Row Based on One cell Value

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chandigarh
    MS-Off Ver
    Excel 2010
    Posts
    122

    Post Extract The Entire Row Based on One cell Value

    Hello To All
    Please let me know the excel formula of how to extract the entire row based on one single cell value. For eg: If B2 has "Yes" than entire row of 2 should be copied in another table. Please provide formula not VBA Code..

    This formula should be designed in such manner that it focus on entire column till bottom of the sheet as we don't know where till the sheet records will go and on how many places B row will have yes and need to copy the entire row will arise.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Extract The Entire Row Based on One cell Value

    This thread is very similar to what you want to do:

    https://www.excelforum.com/showthread.php?t=1141058

    Post #4
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chandigarh
    MS-Off Ver
    Excel 2010
    Posts
    122

    Re: Extract The Entire Row Based on One cell Value

    Quote Originally Posted by Tony Valko View Post
    This thread is very similar to what you want to do:

    https://www.excelforum.com/showthread.php?t=1141058

    Post #4
    Hi Tony,
    I have posted one image below could you please have a look to understand the situation I want to overcome..

  4. #4
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Extract The Entire Row Based on One cell Value

    If you mean to move the original then this isn't possible with a formula you would need VBA in order to move from one location to another. You can easily do this in VBA using filter function which I'm happy to explain if you decide you would actually like the code.

    If you mean to look up values based on yes criteria a sample table would be helpful

  5. #5
    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
    30,877

    Re: Extract The Entire Row Based on One cell Value

    One way

    =IFERROR(INDEX(Sheet1!A$2:A$1000,SMALL(IF(Sheet1!$B$2:$B$1000="yes",ROW($A$2:$A$1000)-ROW($A$2)+1,""),ROWS($1:1)),COLUMN($A:A)),"")

    Enter with Ctrl+Shift+Enter

    Copy across and down as far as required.

    Resource hungry!!!!

  6. #6
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chandigarh
    MS-Off Ver
    Excel 2010
    Posts
    122

    Re: Extract The Entire Row Based on One cell Value

    Quote Originally Posted by JohnTopley View Post
    One way

    =IFERROR(INDEX(Sheet1!A$2:A$1000,SMALL(IF(Sheet1!$B$2:$B$1000="yes",ROW($A$2:$A$1000)-ROW($A$2)+1,""),ROWS($1:1)),COLUMN($A:A)),"")

    Enter with Ctrl+Shift+Enter

    Copy across and down as far as required.

    Resource hungry!!!!
    Hi JohnTopley
    Could you please assist me in understanding in how to work on scenario posted by me below. I tried a lot to implement this formula but its not working.

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,436

    Re: Extract The Entire Row Based on One cell Value

    Must it be a formula? The easiest "off the shelf" solution that I see is to use Excel's filter tools. Advanced filter in particular can easily filter a list based on a value in one column and copy the filtered list into another range. https://support.office.com/en-us/art...8-3f16abdff32b
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  8. #8
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chandigarh
    MS-Off Ver
    Excel 2010
    Posts
    122

    Re: Extract The Entire Row Based on One cell Value

    Its getting complicated to apply
    Please check the attached file and provide solution in that. If in C column there is some employee who has left than how can I have the entire row in table two just based on one cell value.
    xl.png

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Extract The Entire Row Based on One cell Value

    Many members are unable to see images in the *.png format due to forum compatibility issues with some browsers.

    If you need to post an image post it in the *.jpg format.

    Even better than posting images... post a SMALL sample file. That way we can test solutions directly in the file with the relevant data.

  10. #10
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chandigarh
    MS-Off Ver
    Excel 2010
    Posts
    122

    Re: Extract The Entire Row Based on One cell Value

    xl.jpg

    Resubmitting image in jpeg

  11. #11
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chandigarh
    MS-Off Ver
    Excel 2010
    Posts
    122

    Re: Extract The Entire Row Based on One cell Value

    Quote Originally Posted by Tony Valko View Post
    Many members are unable to see images in the *.png format due to forum compatibility issues with some browsers.

    If you need to post an image post it in the *.jpg format.

    Even better than posting images... post a SMALL sample file. That way we can test solutions directly in the file with the relevant data.
    Hi Tony please have a look at the image once again

  12. #12
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Extract The Entire Row Based on One cell Value

    Try this array formula** entered in H3:

    =IFERROR(INDEX(A:A,SMALL(IF($C$3:$C$8="LEFT",ROW(A$3:A$8)),ROWS(H$3:H3))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy across to M3 then down until you get a row full of blanks.

  13. #13
    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
    30,877

    Re: Extract The Entire Row Based on One cell Value

    Put this in H3


    =IFERROR(INDEX(Sheet1!A$3:A$100,SMALL(IF(Sheet1!$C$3:$C$100="LEFT",ROW($A$3:$A$100)-ROW($A$3)+1,""),ROWS($1:1)),COLUMN($A:A)),"")

    Enter with Ctrl+Shift+Enter

    Copy (drag) across to M

    then down

    OR

    =IFERROR(INDEX(Sheet1!$A$3:$F$100,SMALL(IF(Sheet1!$C$3:$C$100="LEFT",ROW($A$3:$A$100)-ROW($A$3)+1,""),ROWS($1:1)),COLUMNS($A:A)),"")

    As above
    Last edited by JohnTopley; 05-26-2016 at 04:47 PM.

+ 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] Underline entire row based on first cell
    By JBR9999 in forum Excel General
    Replies: 5
    Last Post: 12-23-2015, 05:27 PM
  2. cut and copy an entire row based on value in a cell
    By michaelcouch87 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-27-2013, 05:43 AM
  3. Copying Entire row based off cell value or conditional cell colour
    By jpl4412 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-01-2013, 10:03 AM
  4. [SOLVED] Cut entire row to another sheet based on cell value
    By uncleslinky in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-20-2013, 06:10 AM
  5. [SOLVED] Extract entire rows from list based on criteria
    By Test123Test in forum Excel General
    Replies: 5
    Last Post: 04-29-2013, 09:28 AM
  6. Highlight entire row based on cell value
    By clwrs in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 08-14-2009, 06:51 PM
  7. [SOLVED] Formatting an entire row based on one cell
    By colettey29 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-07-2005, 10:06 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