+ Reply to Thread
Results 1 to 25 of 25

Extract Data from large Column

  1. #1
    Registered User
    Join Date
    08-09-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2003
    Posts
    34

    Extract Data from large Column

    Hello,

    I had a quick question I hope someone can answer.

    I have a list of over 400 names. I am trying to extract any name that has a "0" assosciated with the name, and place them in a separate worksheet. Some names do not have 0, but just have a blank. I would not want them on this list.

    Example:

    John 0
    Cindy 1
    Steve 3
    Jason 4
    Gary 5
    Michelle
    Alex 0

    The other worksheet would then display:

    John 0
    Alex 0

    Any help?

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Extract Data from large Column

    Hi,

    Assuming your source data is in the range A2:B400 on Sheet1, enter this array formula (confirm with CTRL+SHIFT+ENTER, not just ENTER) in your other sheet and copy down until you start to get blanks:

    =IFERROR(INDEX(Sheet1!$A$2:$A$400,SMALL(IF(EXACT(Sheet1!$B$2:$B$400,0),ROW(Sheet1!$B$2:$B$400)-MIN(ROW(Sheet1!$B$2:$B$400))+1),ROWS($1:1))),"")

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Extract Data from large Column

    Here!

    See the file attached.

    Change it to whichever sheet you like..

    Deep
    Attached Files Attached Files
    Cheers!
    Deep Dave

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Extract Data from large Column

    I am unclear whether the word and number are in the same Cell or different cells.

    Here is a solution assuming it is in different cells -

    Move it to whichever sheet you want.

    Hope it helps.

    Deep
    Attached Files Attached Files

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Extract Data from large Column

    Please see attached file.

    List of names located on Sheet6 and extracted names on Sheet5Test_ExtractedNames.xlsx

    Formula needs to entered as an array (Ctrl+Shift+Enter)
    Last edited by AlKey; 08-12-2013 at 04:34 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Registered User
    Join Date
    08-09-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Extract Data from large Column

    Wow! I just came back to this, am about to leave for the night... but thank all of you so much for the help. That's great!

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Extract Data from large Column

    You're Welcome. Don't forget to thank those who helped by clicking on Add Reputation *

  8. #8
    Registered User
    Join Date
    08-09-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Extract Data from large Column

    Rep added to all.. thank you for the quick and helpful information.. Really appreciate it.

  9. #9
    Registered User
    Join Date
    08-09-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Extract Data from large Column

    Quick question on this... Msexcel, I am playing with your formula, one thing it is doing is pulling names that have no value (blank cell), when it really has to pull a cell that has "0.00%" in it. For yours I have "=IFERROR(INDEX(Sheet16!$A$9:$A$668,SMALL(IF(--(Sheet16!$I$9:$I$668=0)=1,ROW(Sheet16!$A$9:$A$668)-ROW(Sheet16!$A$9)+1),ROW(Sheet16!A12))),"")" and am playing around with the IF functionality to see if I can have it not pull blank cells.

    AlKey I am playing with yours because it seems to be built a little differently and might fix that, but I am having a hard time making it work. I will keep playing around. Thanks for all your help! This is what I had for yours: "=IFERROR(INDIRECT("Sheet16!A"&SMALL(IF(ISERROR(SEARCH("0%",Sheet16!$A$9:$A$668)),"",ROW(Sheet16!$A$9:$A$668)),ROW(A9))),"")" .. Ctrl shift enter just ends up being a blank.

    Thanks again!

  10. #10
    Registered User
    Join Date
    08-09-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Extract Data from large Column

    Ah, I see why with the 2nd function, the names are in Column A with the values I am needing to pull in Column I, which is why Msexcel's works.

  11. #11
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Extract Data from large Column

    I see that you have there "0%" instead of "0". Could that be a problem?. It would be easier if you upload a spreadsheet with a sample data.

  12. #12
    Registered User
    Join Date
    08-09-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Extract Data from large Column

    examples.xlsx
    Quote Originally Posted by AlKey View Post
    I see that you have there "0%" instead of "0". Could that be a problem?. It would be easier if you upload a spreadsheet with a sample data.
    So here would be an example of how this would look.

  13. #13
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Extract Data from large Column

    Ok, you want the names that have "0" on the end to be extracted but without "0"? Correct?

  14. #14
    Registered User
    Join Date
    08-09-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Extract Data from large Column

    Quote Originally Posted by AlKey View Post
    Ok, you want the names that have "0" on the end to be extracted but without "0"? Correct?
    That part doesn't really matter too much.. It's just that it cannot extract names that have a blank in the cell... So like cell I8 that is blank, would not extract.. but the value in cell I5 with 0.00% would.

  15. #15
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Extract Data from large Column

    Now I am totally confused. If the cell is blank this means that there is nothing in cell. Besides, this total contradicts the requirements that you provided in the original post. Unless, what describe as "blank" is space?

  16. #16
    Registered User
    Join Date
    08-09-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Extract Data from large Column

    Quote Originally Posted by AlKey View Post
    Now I am totally confused. If the cell is blank this means that there is nothing in cell. Besides, this total contradicts the requirements that you provided in the original post. Unless, what describe as "blank" is space?
    So in the original post, Michelle has no number next to her name. She would not be pulled into the extracted list. Anything other than 0.00%, including an empty cell, would not be pulled. Sorry if I did not explain that well.

  17. #17
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Extract Data from large Column

    Here!

    Try this in Sheet Zeros cell E2 -

    Use Ctrl+Shift+Enter

    Please Login or Register  to view this content.
    Deep
    Last edited by NeedForExcel; 08-13-2013 at 12:10 PM.

  18. #18
    Registered User
    Join Date
    08-09-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Extract Data from large Column

    It worked! You rock. Thanks so much for the help.

  19. #19
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Extract Data from large Column

    Glad it helps!

    Deep

  20. #20
    Registered User
    Join Date
    08-09-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Extract Data from large Column

    If you ever feel like taking a crack at this one, I could always use the help!

    http://www.excelforum.com/excel-form...html?p=3359359

  21. #21
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Extract Data from large Column

    ?? Why isn't that just an almost exact duplicate of the very first formula solution (ranges amended, of course) which I posted many hours ago (and for which I am yet to receive any feedback)?

    Regards

  22. #22
    Registered User
    Join Date
    08-09-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Extract Data from large Column

    Quote Originally Posted by XOR LX View Post
    ?? Why isn't that just an almost exact duplicate of the very first formula solution (ranges amended, of course) which I posted many hours ago (and for which I am yet to receive any feedback)?

    Regards

    Sorry I missed it, I believe I gave a rep for it but think I went straight to the workbooks and forgot. Apologies though, in looking at it, it looks great!

  23. #23
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Extract Data from large Column

    No worries. Just seems kind of strange that you could've had the solution about 10 posts and 10 hours ago!

  24. #24
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Extract Data from large Column

    Haha.. Thats Strange! How did everyone miss XOR LXs solution? Did it disappear for a while!!

    A 24 Post Thread, with a solution already there in the 2nd post..

  25. #25
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Extract Data from large Column

    Maybe that's some sort of record! Still, think of all the thinking that you guys got to do through not having seen it!

+ 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. Charts with large data inside one column and one date column
    By toplisek in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-05-2013, 06:45 PM
  2. [SOLVED] Extract data that meets specific condition from large raw data
    By tekobayashi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-27-2012, 03:50 AM
  3. extract specific data from large data set
    By skaizla in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 08-10-2012, 04:02 PM
  4. Extract data in large dagtabase
    By firsttobecool in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-09-2012, 03:05 PM
  5. Replies: 15
    Last Post: 07-15-2012, 02:27 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