+ Reply to Thread
Results 1 to 4 of 4

Extracting names from a column to another sheet, based on criteria

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

    Extracting names from a column to another sheet, based on criteria

    Hi there,

    I have a column containing names, blank spaces, numbers, a bunch of miscellaneous things. However all I want to do is extract only names, into another sheet, and not the numbers, blank spaces, etc. Youi'll see what I mean when you open the attachment. Offset isn't an option because the names don't appear in the column in an organized fashion. Please help!

    Dummy workbook.xlsx

    A fast response would be greatly appreciated. Thank you!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Extracting names from a column to another sheet, based on criteria

    First of all you need to correct the entries in cells A13 and A58, where you have a space immediately before the word PAY (to make it consistent with the other entries). Then you can put this formula in B2:

    =IF(AND(A2<>"",A5="Travel/inc.Pay:",NOT(ISNUMBER(A2))),MAX(B$1:B1)+1,"-")

    and copy this down beyond your entries (e.g. to B70). Then you can use this formula in F1 (I put it there to compare with your results in column E):

    =IFERROR(INDEX(A:A,MATCH(ROWS($1:1),B:B,0)),"")

    and copy this down as far as you need to.

    Hope this helps.

    Pete

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Extracting names from a column to another sheet, based on criteria

    Hi and welcome to the forum

    You can do this with a helper column (which you can hide). In B2, copy this down...
    =IF(AND(A2<>"",A1<>""),MAX($B$1:B1)+1,"")

    Then to pull the names...
    =IFERROR(INDEX(A:A,MATCH(ROW(A1),B:B,0)),"")
    copied down

    edit: haha is there an echo in here, Pete?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,367

    Re: Extracting names from a column to another sheet, based on criteria

    If you interested with alternative solution, using Array Formula (press CTRL-SHIFT-ENTER button together), and you can add everything that you need to remove from list including blanks

    Sorry for Pete and Ford, you have simple solution there

+ 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. Extracting entire row to new sheet based on criteria
    By yukkiwong in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 04-16-2015, 05:59 AM
  2. Extracting entire row to new sheet based on criteria, and then deleting empty row
    By phase321 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-25-2013, 05:01 PM
  3. Extracting Unique Records and Copying into Another Sheet Based on Various Criteria
    By abutler911 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-10-2013, 11:09 AM
  4. Extracting data from column based on specific criteria and pasting into new column
    By vanvalkenburg in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-14-2012, 10:26 PM
  5. Replies: 5
    Last Post: 01-13-2012, 03:20 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