+ Reply to Thread
Results 1 to 7 of 7

Find and copy specific data from one sheet to another

  1. #1
    Registered User
    Join Date
    04-02-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    97

    Find and copy specific data from one sheet to another

    I have two sheets. The first sheet contains a bunch of statuses in various columns and the second sheet will be the report output that I am looking for.

    In more detail:

    Column A contains unique numbers, Column L,O and R contains various statuses. What I would like in Sheet 2, I setup a Data Validation in List view a list of statuses in C1. If I select let say Status: Open I would like the formula to pull the Unique number from Column A (Sheet 1) and paste it in Column A (Sheet 2) and along with the Status from Column L, O or R and paste the status I selected in Column B (Sheet 2) The tricky part that I can't get working is having Excel look for the statuses in three different columns and have it pasted it in the second sheet. A unique number can have the same status in Column L, O and R, therefore there should be three rows in Sheet2 with the same unique number.

    Is this possible?
    Thank you

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Find and copy specific data from one sheet to another

    Yes, it's possible. On each row, will there be a single status either in L, R or O? or might there be different statuses in each one, or some blank and other's non-blank?
    If there are, let's say, an "Open" in L5 and R5, do you want it returned twice? or just once? or does that never happen?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    04-02-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Find and copy specific data from one sheet to another

    Hi,

    Thanks for your response:

    Heres an example:

    Sheet 1:

    Col A|L|O|R

    123|OPEN|NOT SUBMIT|LATE
    234|ONTIME|OPEN|OPEN|
    345|LATE|OPEN|LATE
    456|LATE|CANCELLED|ONTIME


    Sheet 2

    C1: Contains a list of statuses

    Lets Say in C1: OPEN is selected

    Then I would like to list the COL A Numbers along with the status OPEN: (if its possible to only list a row once when there are duplicated status eg. 234, that would be great)

    Number that would be listed are
    COL A|B
    123|OPEN
    234|OPEN
    345|OPEN


    Thank you!

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Find and copy specific data from one sheet to another

    In an open column in sheet1, (I picked O). You can hide this column later if you like

    In O2 copied down
    =IF(COUNTIF(L2:N2,Sheet2!$C$1)>0,O1+1,O1)

    In Sheet2, A2 copied down
    =IFERROR(INDEX(Sheet1!$A$2:$A$50, MATCH(Row(A1), Sheet1!$O$2:$O$50,0)),"")
    Does that work for you?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-02-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Find and copy specific data from one sheet to another

    Quote Originally Posted by ChemistB View Post
    In an open column in sheet1, (I picked O). You can hide this column later if you like

    In O2 copied down
    =IF(COUNTIF(L2:N2,Sheet2!$C$1)>0,O1+1,O1)

    In Sheet2, A2 copied down
    =IFERROR(INDEX(Sheet1!$A$2:$A$50, MATCH(Row(A1), Sheet1!$O$2:$O$50,0)),"")
    Does that work for you?
    Hi There,

    First off, thank's so much. The formula works great.

    Something is off slightly and not sure why. Its miss counting On-Time status, There are four in the range I Provided. Its missing (Row 11). Any Ideas?

    Thanks

    Jonathan
    Last edited by antexity; 04-24-2013 at 02:05 PM.

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Find and copy specific data from one sheet to another

    In A5 of your summary report, you want to MATCH(ROW(A1) You want to match "1" and ROW(A1) = 1. You have ROW(B2) which = 2.
    Does that help?

  7. #7
    Registered User
    Join Date
    04-02-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Find and copy specific data from one sheet to another

    Perfect, Thanks so much! Really appreciate your time you spent to help me out

+ 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