+ Reply to Thread
Results 1 to 5 of 5

Lookup Value from List, Copy and Paste Under header

Hybrid View

  1. #1
    Registered User
    Join Date
    12-18-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    36

    Lookup Value from List, Copy and Paste Under header

    Hey guys,

    I was hoping that someone could help me out with this.

    In Column A, I have a list of words.

    In C1, I have the header with the word that I am trying to find in Column A and make a list of it underneith, same with D1.

    I am having trouble as to how to formulate some way to do this. I have been doing it in the past by doing a Filter, and then going "Contains" a word, and then copying and pasting, but when I am making lots of lists it is really time consuming. I was wondering if someone could lend a hand.

    Thanks!!
    Attached Files Attached Files
    Last edited by Neil4Speed; 05-02-2010 at 05:06 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Simple(?) Lookup Copy and Paste Problem

    Try in C2:

    =IF(ROWS($A$1:$A1)>COUNTIF($A$1:$A$44,"*"&C$1&"*"),"",INDEX($A$1:$A$44,SMALL(IF(ISNUMBER(SEARCH(C$1,$A$1:$A$44)),ROW($A$1:$A$44)-ROW($A$1)+1),ROWS($A$1:$A1))))
    adjust ranges to suit, and confirm with CTRL+SHIFT+ENTER not just ENTER and copy down as far as you want and over to next column


    Note: If you have a lot of data or are copying formula to a vast number of cells, performance may begin to suffer...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Simple(?) Lookup Copy and Paste Problem

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    12-18-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    36

    Re: Simple(?) Lookup Value from List Copy and Paste Under header Problem

    Quote Originally Posted by NBVC View Post
    Try in C2:

    =IF(ROWS($A$1:$A1)>COUNTIF($A$1:$A$44,"*"&C$1&"*"),"",INDEX($A$1:$A$44,SMALL(IF(ISNUMBER(SEARCH(C$1,$A$1:$A$44)),ROW($A$1:$A$44)-ROW($A$1)+1),ROWS($A$1:$A1))))
    adjust ranges to suit, and confirm with CTRL+SHIFT+ENTER not just ENTER and copy down as far as you want and over to next column


    Note: If you have a lot of data or are copying formula to a vast number of cells, performance may begin to suffer...
    Thanks so much NBVC, works like a charm, you are really incredible with this stuff.

    Quote Originally Posted by royUK View Post
    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Thanks for letting me know, I modified the title - hopefully its good!

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Lookup Value from List, Copy and Paste Under header

    Thanks for taking the time to read and comply with the rule .

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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