+ Reply to Thread
Results 1 to 17 of 17

Copying from one sheet to another if there is a value in a specific cell.

  1. #1
    Registered User
    Join Date
    06-27-2014
    Location
    Las Vegas, NV
    MS-Off Ver
    2010
    Posts
    19

    Copying from one sheet to another if there is a value in a specific cell.

    I need to copy Column D4,E4, and F4 down (if there is a value in Column F) from the 5th worksheet. To the last worksheet into column A4, B4, C4 and down.

    Could someone help with this please?

    This is actually step one. But it will get me started.

    Thanks.
    Last edited by rdelosh74; 07-01-2014 at 09:44 AM. Reason: Solved. Great Job!!

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copying from one sheet to another if there is a value in a specific cell.

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-27-2014
    Location
    Las Vegas, NV
    MS-Off Ver
    2010
    Posts
    19

    Re: Copying from one sheet to another if there is a value in a specific cell.

    That copied everything from Sheet 5 Column D to Sheet 5 column A.

  4. #4
    Registered User
    Join Date
    06-27-2014
    Location
    Las Vegas, NV
    MS-Off Ver
    2010
    Posts
    19

    Re: Copying from one sheet to another if there is a value in a specific cell.

    Correction. To every Sheet after that as well.

  5. #5
    Registered User
    Join Date
    06-27-2014
    Location
    Las Vegas, NV
    MS-Off Ver
    2010
    Posts
    19

    Re: Copying from one sheet to another if there is a value in a specific cell.

    I think this was my fault with the explanation.

    I need to copy Column D4,E4, and F4 down (if there is a value in Column F) from just the 5th worksheet. And then, just on the last worksheet paste into column A4, B4, C4 and down.

    Sorry about the confusion.

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copying from one sheet to another if there is a value in a specific cell.

    Try:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    06-27-2014
    Location
    Las Vegas, NV
    MS-Off Ver
    2010
    Posts
    19

    Re: Copying from one sheet to another if there is a value in a specific cell.

    Ok, works perfect. Except for one thing. In this example, there is a value in cells 4 through 249. And 323. In this application there will always be the bulk ones at the top together, then a bunch with no value, and maybe some with value in F at the bottom.

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copying from one sheet to another if there is a value in a specific cell.

    Are you refering too the destination sheet. Can you provide a sample of the 5th Sheet and the Last Sheet after the macro is run?

  9. #9
    Registered User
    Join Date
    06-27-2014
    Location
    Las Vegas, NV
    MS-Off Ver
    2010
    Posts
    19

    Re: Copying from one sheet to another if there is a value in a specific cell.

    test3.xlsx

    Let's see if this works.

  10. #10
    Registered User
    Join Date
    06-27-2014
    Location
    Las Vegas, NV
    MS-Off Ver
    2010
    Posts
    19

    Re: Copying from one sheet to another if there is a value in a specific cell.

    So as you see, there are values in Sheet5 from 4-249 and 323. But it only copies over to Last sheet. 4-249.

  11. #11
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copying from one sheet to another if there is a value in a specific cell.

    OK. Maybe:

    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    06-27-2014
    Location
    Las Vegas, NV
    MS-Off Ver
    2010
    Posts
    19

    Re: Copying from one sheet to another if there is a value in a specific cell.

    Sorry, still the same output.

  13. #13
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copying from one sheet to another if there is a value in a specific cell.

    Please explain your requirements "I need to copy Column D4,E4, and F4 down (if there is a value in Column F) from the 5th worksheet". If you check your row 323 there should be a value there?

  14. #14
    Registered User
    Join Date
    06-27-2014
    Location
    Las Vegas, NV
    MS-Off Ver
    2010
    Posts
    19

    Re: Copying from one sheet to another if there is a value in a specific cell.

    Ahh. Yes, you are right, didn't see that down there, So then I just need to add to my macro to delete the blank rows to get 323 up with the rest of the cells. Thank you.

  15. #15
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copying from one sheet to another if there is a value in a specific cell.

    Does this give you the output you want??

    Please Login or Register  to view this content.

  16. #16
    Registered User
    Join Date
    06-27-2014
    Location
    Las Vegas, NV
    MS-Off Ver
    2010
    Posts
    19

    Re: Copying from one sheet to another if there is a value in a specific cell.

    Perfect. Thank you very much.

  17. #17
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copying from one sheet to another if there is a value in a specific cell.

    You're welcome. Glad to help out and thanks for the feedback. Please comply with Forum Rule No. 9.


    9. Acknowledge the responses you receive, good or bad. If your problem is solved, please say so clearly, and mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved". Or click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Dropdown option or Edit button will not appear -- ask a moderator to mark it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 19
    Last Post: 08-18-2021, 11:23 PM
  2. [SOLVED] Copying a specific Row from another sheet depending on a cell value
    By OAKLEY in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-19-2013, 03:52 AM
  3. Macro problem - copying specific cell's from one sheet to another
    By Mrgud in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-12-2012, 02:27 PM
  4. Copying specific cell ranges from a worksheet multiple times to a new sheet
    By kaz8772 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-10-2009, 03:54 PM
  5. copying cell values to specific area in sheet
    By Reinder in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-12-2007, 09:55 AM

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