+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Copy from sheet1 to sheet2 if column y

  1. #1
    Registered User
    Join Date
    02-27-2009
    Location
    saco
    MS-Off Ver
    Google Docs
    Posts
    57

    Copy from sheet1 to sheet2 if column y

    i want to have it so that info from sheet a copies to sheet b if a column is checked... so like this

    A | B | C | D |
    ----------------------------------------------------------------------------------------------------
    Jane Does | cc# | Phone | yes |
    ----------------------------------------------------------------------------------------------------
    Jane Does | cc# | Phone | No |
    ----------------------------------------------------------------------------------------------------

    Sheet 2 i would like to contain any NO in column D

    So SHEET2 should look like so.....

    A | B | C | D | Notes |
    ----------------------------------------------------------------------------------------------------------------------
    Jane Does | cc# | Phone | NO | my notes |
    ----------------------------------------------------------------------------------------------------------------------
    Attached Files Attached Files
    Last edited by DAVIDJMORIN; 12-08-2010 at 04:57 PM. Reason: added workbook

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

    Re: Copy from sheet1 to sheet2 if column y

    If you want to do with formulas, you can't add comments to Sheet2, unless you are only adding to the bottom of sheet1 and not changing any existing YES's to NO's.... if you are, then better to add the comments to Sheet1 and pull with the rest of the information....

    To extract the relevante info,
    In a free column in Sheet1, say at E2 enter formula:

    =IF(D2="NO",COUNT(E$1:E1)+1,"")

    copied down

    then in F2:

    =MAX(E:E)

    In Sheet2, A2:

    =IF(ROWS($A$1:$A1)>Sheet1!$F$2,"",INDEX(Sheet1!A:A,MATCH(ROWS($A$1:$A1),Sheet1!$E:$E)))

    copied across the 4 columns and down as far as you want.
    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
    Registered User
    Join Date
    02-27-2009
    Location
    saco
    MS-Off Ver
    Google Docs
    Posts
    57

    Re: Copy from sheet1 to sheet2 if column y

    I did as you had posted but i am not able to get it to work........

    I Posted what I did
    Attached Files Attached Files

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

    Re: Copy from sheet1 to sheet2 if column y

    The NO in Sheet1!D3 has a space after the word NO... eliminate it.

    Also, the formula in Column E should start with =IF(D3="NO",COUNT(E$1:E1)+1,"") at E2... you were off 1 row.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-27-2009
    Location
    saco
    MS-Off Ver
    Google Docs
    Posts
    57

    Re: Copy from sheet1 to sheet2 if column y

    Ahh the simple things haha.

    Thanks for the help

+ 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