+ Reply to Thread
Results 1 to 9 of 9

extract all occurrences of one name and display the data on a new sheet

  1. #1
    Registered User
    Join Date
    03-26-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    extract all occurrences of one name and display the data on a new sheet

    Hi

    I would like to extract from a massive list of names, all occurrences of one name and display the data on a new sheet.

    for example;

    Name Date Location
    James 23/04 edinburgh
    Jimmy 28/04 london
    David 03/05 Belfast
    Sarah 08/07 Glasgow
    David 12/09 Birmingham
    James 13/01 Manchester

    So the output on the new sheet would be;

    Name Date Location
    James 23/04 edinburgh
    James 13/01 Machester


    I basically want to find where James has been and on which dates without having to scroll through 1000's of names.

    Thank you for any help

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: extract all occurrences of one name and display the data on a new sheet

    Use the autofilter tool.

  3. #3
    Registered User
    Join Date
    03-26-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: extract all occurrences of one name and display the data on a new sheet

    thanks for the reply. I'm familiar with the auto-filter, but i was hoping for a solution that would automatically update sheet2 when i add new data to sheet1. I have about 100 names and it is very time consuming having to copy and paste the updated data into all sheets in order to auto-filter. I was hoping a formula could extract the information from sheet1 and display it on sheet2.

    Please note for the number of names, I have a seperate sheet. 100 names = 100 sheets

  4. #4
    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 all occurrences of one name and display the data on a new sheet

    Use this array formula
    in E2
    and pull formula down and across

    =IFERROR(INDEX(A:A,SMALL(IF($A$2:$A$7=$D$2,ROW($A$2:$A$7)),ROWS($A$2:A2))),"")





    A
    B
    C
    D
    E
    F
    G
    1
    Name Date Location Name Date Location
    2
    James 23/04 edinburgh James James 23/04 edinburgh
    3
    Jimmy 28/04 london James 13/01 Manchester
    4
    David 03/05 Belfast
    5
    Sarah 08/07 Glasgow
    6
    David 12/09 Birmingham
    7
    James 13/01 Manchester
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    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

  5. #5
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: extract all occurrences of one name and display the data on a new sheet

    Hi - have a look at the attachment as an example. I've made the assumption that the dates are all unique in order to make the formula a bit simpler.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-26-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: extract all occurrences of one name and display the data on a new sheet

    i'm off to try it now and will update you on my success. Thanks heaps for your help.

  7. #7
    Registered User
    Join Date
    03-26-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: extract all occurrences of one name and display the data on a new sheet

    Iv'e tried it and it works. Thanks Ragulduy and Alkey for your expert help. This forum worked out better than what i thought it would after hours of trying various formulas

  8. #8
    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 all occurrences of one name and display the data on a new sheet

    You're welcome. Don't forget to thank those who helped by clicking on Add Reputation * and please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

  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 all occurrences of one name and display the data on a new sheet

    Something to consider...

    You already know that you're extracting the data related to "name" so why extract "name" with each record?

    Maybe do it like this:

    Data Range
    A
    B
    C
    1
    Data For
    Date
    Location
    2
    James
    23/04
    edinburgh
    3
    13/01
    Machester


    Where James in A2 is either manually entered or selected from a drop down list.

    That's one less column of formulas that you'll need.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Replies: 3
    Last Post: 12-18-2014, 10:27 AM
  2. Replies: 13
    Last Post: 08-28-2014, 08:00 PM
  3. Replies: 1
    Last Post: 02-25-2014, 10:45 AM
  4. [SOLVED] Not Display of Occurrences, After SortUniq UDF Added
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2014, 12:49 PM
  5. [SOLVED] Compare 2 columns, extract duplicates and number of occurrences
    By vin1602 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-04-2013, 02:51 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