+ Reply to Thread
Results 1 to 8 of 8

Copy paste of data if condition matches

  1. #1
    Forum Contributor
    Join Date
    05-10-2020
    Location
    india
    MS-Off Ver
    2013
    Posts
    221

    Copy paste of data if condition matches

    Hi,

    I am looking for a macro that will do the things mentioned below


    Match column B(all cell data) of book1.xlsx with sheet2 of column A(all cell data) of book2.xlsx & If it matches then copy paste the data of column C of book2.xlsx to column I of book1.xlsx & if not matches then put 3 in column I


    vba code macro will be placed in a seperate file macro.xlsm & sheet name can be anything

    Thnx Alot
    Attached Files Attached Files

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Copy paste of data if condition matches

    Please Login or Register  to view this content.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Forum Contributor
    Join Date
    05-10-2020
    Location
    india
    MS-Off Ver
    2013
    Posts
    221

    Re: Copy paste of data if condition matches

    U forgot to mentioned 3 if it doesn't matches Sir

  4. #4
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Copy paste of data if condition matches

    Did not forget. If it does not match, it does not copy. If it does not copy, you know it did not match.

  5. #5
    Forum Contributor
    Join Date
    05-10-2020
    Location
    india
    MS-Off Ver
    2013
    Posts
    221

    Re: Copy paste of data if condition matches

    Ya it does not copy but we have to put 3 in column I of book1.xlsx

  6. #6
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Copy paste of data if condition matches

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    05-10-2020
    Location
    india
    MS-Off Ver
    2013
    Posts
    221

    Re: Copy paste of data if condition matches

    Thnx Alot JLGWhiz Sir for helping me in solving this problem Sir
    Have a Awesome Day Sir

  8. #8
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Copy paste of data if condition matches

    Quote Originally Posted by dumdumbum View Post
    Thnx Alot JLGWhiz Sir for helping me in solving this problem Sir
    Have a Awesome Day Sir
    You're welcome,
    regards, JLG

+ 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. [SOLVED] VBA If Then Else. Find matches then copy paste to overwrite data
    By nordxnortheast in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-18-2020, 08:20 AM
  2. [SOLVED] copy paste the data if condition matches with dragging macro
    By dumdumbum in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-03-2020, 02:00 AM
  3. [SOLVED] Conditionally calculate the data and paste it, if condition Matches
    By dumdumbum in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-02-2020, 11:33 PM
  4. [SOLVED] Copy & paste of the data if matches
    By MoldyBread in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-23-2020, 08:13 AM
  5. [SOLVED] VBA Simple Check if 2 cells matches and if that is true it will copy and paste data .
    By Desotronics in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-10-2019, 01:04 PM
  6. If condition matches copy data from one sheet to another
    By ravindra2k13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-14-2018, 06:14 AM
  7. [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

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