+ Reply to Thread
Results 1 to 5 of 5

Get names from different cells

  1. #1
    Forum Contributor
    Join Date
    02-10-2007
    Location
    Manchester, England
    MS-Off Ver
    2013
    Posts
    133

    Get names from different cells

    I have a sheet with people names in cell b and in cell G, N, U, AT and BA i have other details and i want to list the people that have entries in only the above cells

    I have included a example example1.xlsx
    Last edited by Sheepkin_Coat; 11-21-2014 at 08:00 AM.

  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,791

    Re: Get names from different cells

    Put this formula in A1 of Sheet1:

    =IF(B1="","",IF(COUNTA(G1,N1,U1,AT1,BA1)>0,COUNTIF(B$1:B1,"?*"),""))

    then copy down to the bottom of your data (A9) or beyond. Then put this formula in A1 of Sheet2:

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

    and copy down as far as required.

    Hope this helps.

    Pete

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

    Re: Get names from different cells

    Actually, it would be better to insert a blank row at the top of Sheet1 so all the data moves down (you can use this for headings if you like), and then you can use this formula in A2:

    =IF(B2="","",IF(COUNTA(G2,N2,U2,AT2,BA2)>0,MAX(A$1:A1)+1,""))

    or this one:

    =IF(B2="","",IF(COUNTA(G2,N2,U2,AT2,BA2)>0,COUNTIF(A$1:A1,">0")+1,""))

    Copy down to the bottom of your data.

    The other formula remains the same.

    Hope this helps.

    Pete

  4. #4
    Forum Contributor
    Join Date
    02-10-2007
    Location
    Manchester, England
    MS-Off Ver
    2013
    Posts
    133

    Re: Get names from different cells

    Thanks Again, that great, just one more thing.

    what i really want is to only get the names that have something in G,N,U,AT & BA

    When i added another name to the list it still print it on the second sheet also i would like it to print like this

    Row A
    Name

    Row B
    contents of G

    Row C
    contents of N

    Row D
    contents of U

    Row E
    contents of AT

    Row F
    contents of BA
    Last edited by Sheepkin_Coat; 11-21-2014 at 08:00 AM. Reason: more questions

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

    Re: Get names from different cells

    I'm not really sure what you are looking for - can you attach another mock-up showing manually what you expect to get in the second sheet.

    Pete

+ 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: 1
    Last Post: 05-14-2012, 10:14 AM
  2. Replies: 3
    Last Post: 02-11-2012, 08:34 AM
  3. [SOLVED] cells and sheets, names
    By PH NEWS in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-20-2006, 11:40 AM
  4. Re: Sp[litting Names from Cells
    By Paul Sheppard in forum Excel General
    Replies: 1
    Last Post: 07-31-2005, 03:52 AM

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