+ Reply to Thread
Results 1 to 7 of 7

copying data from one sheet to another if value in another cell changes

  1. #1
    Registered User
    Join Date
    05-08-2012
    Location
    Florida, US
    MS-Off Ver
    Excel 2007
    Posts
    4

    copying data from one sheet to another if value in another cell changes

    Hello-
    I am pretty new to excel (2007) and was trying to figure out if this could be done.

    I need to be able to have the file numbers in column A copy over to the sheet titled "numbers" if i add a 1 in to column B.

    test.xlsx


    Hopefully I've explained what I needed well enough!

    Thank you in advance for any help.

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: copying data from one sheet to another if value in another cell changes

    do you want it to move as soon as a 1 is choosen, or would you like to enter a bunch of 1's and then move them all over with the push of a button?
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    05-08-2012
    Location
    Florida, US
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: copying data from one sheet to another if value in another cell changes

    I would prefer that it copied as soon as i added the number.

  4. #4
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: copying data from one sheet to another if value in another cell changes

    k, think this is what you want. this will immediately move the file off the "Production" sheet and onto the "numbers" sheet when you make a selection of 1 in the B column (after you finish the entry). to test it enter ones and watch them dissapear.

    If you just wanted to copy them and leave them on both sheets, then you probably just need a pivot table to view the tested files...i would think.


    btw..the code to do this is a worksheet event (placed in the Production sheet code module):

    Please Login or Register  to view this content.

    Also, to get your sum formula to work when i was deleting rows...(broke your formula)... i reauthored that formula to be =SUM(INDEX(myTable,,2))

    myTable is a named formula (you can view in the name manager) which is defined as: =Production!$A$2:INDEX(Production!$2:$1048576,COUNTA(Production!$A$2:$A$1048576),2)
    Attached Files Attached Files
    Last edited by GeneralDisarray; 05-10-2012 at 11:40 AM.

  5. #5
    Registered User
    Join Date
    05-08-2012
    Location
    Florida, US
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: copying data from one sheet to another if value in another cell changes

    thank you. I do need to just copy it-not move it. But I don't really know what a pivot table is.

  6. #6
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: copying data from one sheet to another if value in another cell changes

    Ok, the new attachment here demo's a pivot table solution. It will auto-update when you select the numbers sheet and will show you the file numbers with a 1 in the "tested" column
    Attached Files Attached Files
    Last edited by GeneralDisarray; 05-10-2012 at 01:50 PM.

  7. #7
    Registered User
    Join Date
    05-08-2012
    Location
    Florida, US
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: copying data from one sheet to another if value in another cell changes

    That was excellent-thank you!

+ 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