+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    08-18-2009
    Location
    Rochester, NY
    MS-Off Ver
    Excel 2007
    Posts
    24

    Copying cells with certain data next to it.

    I have two columns. I want to select everything in one column that has a certain value in the adjacent column.

    Allow me to exemplify:

    Code:
    Col1  Col2
    A     tree
    B     eraser
    B     bush
    A     garden
    A     tool
    B     mesh
    A     ball
    Let's say I want to select all cells in Col2 which correspond to an A in Col1. Therefore, I want to select: tree, garden, tool, and ball. I want to copy these cells into a third column.

    How would I do this?
    I'm sure this is simple for experienced users. I am bested by my inexperience.

    Thanks,
    Multi
    Need a website or other media? Visit Amalgam Web and Media (http://www.amalgamweb.com) today for a free quote on any custom project.

  2. #2
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,163

    Re: Copying cells with certain data next to it.

    =if(A1="A",B1,"") copied down

    where A1 and B1 are first cells to look at.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Forum Guru
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2003
    Posts
    2,286

    Re: Copying cells with certain data next to it.

    lol @ exemplify - what?

    anyway, select the headers of columns 1 & 2, then press Alt+d, then F, then F again
    now click the arrow next to the top of column 1 and select "A" from the drop down.
    Copy all of column B, it will only take the bits you need, and paste onto column C, now go back to column A and select "show all"

    It's called autofilter and it's very handy...

    HTH

  4. #4
    Registered User
    Join Date
    08-18-2009
    Location
    Rochester, NY
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Copying cells with certain data next to it.

    MAN you guys are FAST!!!
    Geez, I barely had time to reload my browser before I got an answer.

    Thanks a lot!
    Need a website or other media? Visit Amalgam Web and Media (http://www.amalgamweb.com) today for a free quote on any custom project.

  5. #5
    Registered User
    Join Date
    08-18-2009
    Location
    Rochester, NY
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Copying cells with certain data next to it.

    And in the time it took to write that last response, I got ANOTHER response. Thanks!
    Need a website or other media? Visit Amalgam Web and Media (http://www.amalgamweb.com) today for a free quote on any custom project.

  6. #6
    Registered User
    Join Date
    08-18-2009
    Location
    Rochester, NY
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Copying cells with certain data next to it.

    lol @ exemplify - what?
    In consultation of Merriam-Webster:
    Exemplify - to show or illustrate by example <anecdotes exemplifying those virtues>

    Sorry, I felt the need to tread the infrequently visited areas of my lexicon.
    Need a website or other media? Visit Amalgam Web and Media (http://www.amalgamweb.com) today for a free quote on any custom project.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0