+ Reply to Thread
Results 1 to 7 of 7

Paste values based on a condition to next availble row in different sheet

  1. #1
    Registered User
    Join Date
    06-04-2014
    Posts
    4

    Post Paste values based on a condition to next availble row in different sheet

    Hello,

    I'm fairly new to code but can usually problem solve my way to getting it to do what I need it to.
    I have been trying for days and have not had any success modifying scripts to get them work. HELP! This is what I'm trying to accomplish:

    1. Copy "A4" and "B4" in sheet "DataEntry"
    2. Paste them in next available row, in their respective columns into sheet "All"
    3. Copy "A12" in sheet "DataEntry"
    4. Special Paste Value in next available row, in column C on sheet "All"
    5. Search column "D" in sheet "DataEntry" for the value "1"
    6. When it finds "1", copy that row from "F" to "AY"
    7. Paste Values (since they are currently formulas) into next available row from "E" to "AX" in sheet "All"

    I also noticed one more thing that would be very useful. Is there a way to make it that:
    - if "1" is found in row 4, then make the next available row if column "D" on sheet "All" "0"
    - if "1" is found in row 8, then make the next available row if column "D" on sheet "All" "1"
    - if "1" is found in row 12, then make the next available row if column "D" on sheet "All" "2"
    - if "1" is found in row 15, then make the next available row if column "D" on sheet "All" "3"

    Those are the only rows that "1" can be found in "DataEntry"

    Any help would be greatly appreciated!

    Glenn

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,085

    Re: Paste values based on a condition to next availble row in different sheet

    OK not so difficult, but it would be easier if there was a sample Excel file.
    Can you see it?
    - Battle without fear gives no glory - Just try

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

    Re: Paste values based on a condition to next availble row in different sheet

    Welcome too the Forum. See if this helps.

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,085

    Re: Paste values based on a condition to next availble row in different sheet

    Duplicate answer
    Last edited by PCI; 06-28-2016 at 03:20 PM.

  5. #5
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,085

    Re: Paste values based on a condition to next availble row in different sheet

    Is next code answer the first need ??

    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,085

    Re: Paste values based on a condition to next availble row in different sheet

    - if "1" is found in row 4, then make the next available row if column "D" on sheet "All" "0"
    - if "1" is found in row 8, then make the next available row if column "D" on sheet "All" "1"
    - if "1" is found in row 12, then make the next available row if column "D" on sheet "All" "2"
    - if "1" is found in row 15, then make the next available row if column "D" on sheet "All" "3
    We may suppose it is not possible to have "1" in row 4 and 8 and ....
    If Yes then
    Please Login or Register  to view this content.
    Last edited by PCI; 06-28-2016 at 03:37 PM.

  7. #7
    Registered User
    Join Date
    06-04-2014
    Posts
    4

    Re: Paste values based on a condition to next availble row in different sheet

    Amazing! Works perfectly! Thank you so much for your quick help!!

+ 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. VBA to paste data in next availble blank row within a range.
    By Zimmerman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-17-2016, 05:34 PM
  2. [SOLVED] copy and paste values to another sheet if value in one column matches condition
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-05-2013, 11:36 AM
  3. [SOLVED] Copy and paste (values) to another sheet based on condition
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-09-2013, 10:25 PM
  4. Cut and Paste row range based on active cell condition to another sheet
    By hugh72 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-07-2013, 12:21 PM
  5. [SOLVED] Cut A Row Paste It On First Empty Row In Another Sheet Based on Condition DropDown
    By Bookstr in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-23-2013, 11:08 PM
  6. Copy/Paste from one sheet to another based on condition
    By TheTempest in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-16-2010, 01:13 PM
  7. based on Cell/Column content ,cut one sheet's values and paste it in other sheet?
    By mindpeace in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-25-2006, 08:33 AM

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.6.0 RC 1