Excel VBA to Copy and Paste Rows if multiple Conditions is Met

Поделиться
HTML-код
  • Опубликовано: 17 июн 2019
  • Watch the Part 2 video too
    • VBA Copy and Paste R...
    Watch the Part 3 video too
    • Part 3 - Filter using ...
    🙂 Attn: Accountant, Finance Analyst, Business Analyst, Training Manager
    ✔️ Do you want to help your staff to reduce there time to prepare Business Report, HR salary report, Cost Center Medical Fee Report, Profit & Loss report?
    (from 2 hours to less than 2 min.)
    ✔️Do you look for an experienced online Excel coach?
    hi, my name is Kent Lau, I offer online Excel course, e-book, downloadable videos, and online support (for member only).
    👍 Malaysia government-approved PSMB Certified Trainer.
    👍 15 Years track record.
    👍 Microsoft Excel Macro/VBA Expert
    I also do one-to-one online private coaching.
    Please email me at cylau.kent@gmail.com, Thank you.❤️❤️❤️
    ⁣Want to sponsor me to do a better video?
    www.paypal.com/cgi-bin/webscr...
    Join AmazingExcel school:
    amazingexcel.teachable.com/

Комментарии • 60

  • @borisvainrub6341
    @borisvainrub6341 3 года назад +1

    Thank you for the information, four month searching how to do this and finally done. thanks!

  • @alwyalvarez
    @alwyalvarez 3 года назад +1

    Hooo man, finally something works!!!. Thank you very much!

  • @davecks3042
    @davecks3042 4 года назад +1

    Well explained and easily understood. Thanks

  • @urquix96
    @urquix96 3 года назад +1

    You save me a LOT of time THANKS!!!

  • @prinzessinmadonna
    @prinzessinmadonna 3 года назад

    Hi Kent, Thank you so much for this video! Really easy to follow! Quick question, what if I want to paste the data into a new workbook and not on a different sheet within the same workbook?

  • @viddongmalualruot7909
    @viddongmalualruot7909 4 года назад

    you guys are going on well

  • @owls1981
    @owls1981 4 года назад

    Thank you for the information. What if I want to move Categories A and B from the "data" sheet to the "report" sheet and then delete those rows from the "data" sheet? How is that done? Thank you.

  • @querrythis
    @querrythis 2 месяца назад

    Thanks for the tip

  • @gerardvaneggermond9967
    @gerardvaneggermond9967 4 года назад

    Hello, maybe you can help me, I want to use the "Indirect" function, how do I do that, can you give an example?

  • @LongNguyen-kz2oe
    @LongNguyen-kz2oe Год назад

    I did it, thank you so much

  • @jusephwinclic165
    @jusephwinclic165 3 года назад

    amazing thank you alot but still need more when this data edtied like change a to b updated it's not work
    can you please tell us how we will solve that !

  • @doriaaa19
    @doriaaa19 2 года назад

    Hi Kent, Thank you for the amazing tutorial, my VBA coding is working fine but the button is not working. Could you please advise? Thank you!

  • @joerivandenabeele6707
    @joerivandenabeele6707 Год назад

    Thx!

  • @michaelhillier8853
    @michaelhillier8853 2 года назад

    Thank you Sir -

  • @hashanwch
    @hashanwch 2 года назад

    Hi Kent Good morning. Thanks for your valuable video. But When I try to run 1st code, its open MACRO window. Can you help me?

  • @binayyadav1987
    @binayyadav1987 2 года назад

    Amazing

  • @jssj16
    @jssj16 3 года назад

    Hii. When I test this, only the last row in the range which meets the condition is being copied to the new sheet. Do you know why?

  • @jhynvalle496
    @jhynvalle496 4 года назад +1

    Hi, is it possible to copy and paste it with another workbook? instead of worksheet? thank you

  • @Gudha_Ismintis
    @Gudha_Ismintis Год назад

    Hi Kent - how do you do this BUT with different workbooks (Instead of Different Tabs)?

  • @dkpatel4470
    @dkpatel4470 4 года назад

    How to copy past specific value filtered data to another sheets

  • @kirannikil
    @kirannikil 3 года назад +1

    Excellent can also include to send email on this selected data.

    • @centurychallenger
      @centurychallenger  3 года назад

      excellent idea, sir Kiran Kumar

    • @kirannikil
      @kirannikil 3 года назад

      @@centurychallenger
      I am trying am not able to get. If you get this please tell me.

  • @Joda-es5xd
    @Joda-es5xd 4 года назад

    Hi Amazing Ken, Hi, I created a VBA that will copy and paste entire rows if the if statements are met and copied to a specific tab. I created the command button to assign the macros. The data gets copied to the new tabs as designed. However, each time I click on the button it duplicates the data in the desire tabs. How can I create or add to my VBA not to duplicate the same data? Thanks

    • @centurychallenger
      @centurychallenger  4 года назад

      Perhaps removing your previous data once you copied it?

    • @gokulrajrajan5052
      @gokulrajrajan5052 2 года назад

      @@centurychallenger How can we do it by keeping the original data as it is ?

  • @ludovicab8804
    @ludovicab8804 4 года назад +1

    Hello. I have an urgent question.
    1. Why when selecting the column to copy you use "" for A, ":" for B and "," for E and not "" for all?
    2. I have a ComboBox. I would like that my criteria is the selected value of the Combolist. I can do it with the same program? Thanks :)

    • @jevan2196
      @jevan2196 4 года назад

      Me too. I want to add another range or column what code should i use?

    • @ludovicab8804
      @ludovicab8804 4 года назад +1

      @@jevan2196 i found the way. follow the simbols that you see in the video and I mention. If you want to add column D for example use ",D" as you dif for the third one. Don't ask me why, but it works

    • @centurychallenger
      @centurychallenger  4 года назад +1

      hi there, this may answer your question 2. ruclips.net/video/s8zERVbmUXI/видео.html

  • @Noob-vl3dk
    @Noob-vl3dk 4 года назад

    Hi Sir. How can I do, if I want to see paste result starting at the Row 3 or Row 4 on Report Sheet.You Know What I means? Now Your paste Result is show starting at the Row 2. Please help me Sir.I will waiting your reply Sir.

  • @jonnavithulasandeepya8363
    @jonnavithulasandeepya8363 3 года назад

    When I am following this code. only the first column is getting pasted. The code is not going through the sheet

  • @SuperNukki
    @SuperNukki 5 лет назад

    Nice tutorial sir, now how to copy selected conditions to a new workbook?

    • @centurychallenger
      @centurychallenger  4 года назад

      hi nuki sutomo, this may help ... ruclips.net/video/AEmSvDOQ41w/видео.html

  • @ashimagupta9494
    @ashimagupta9494 4 года назад

    Hi, I prepare the same code in My Excel to copy paste data, it is working fine but whenever I run this code it shows duplicate data. Can we overwrite it on old data whenever we run the code

    • @vivekr4690
      @vivekr4690 4 года назад

      Use clearcontents method to clear all the contents in the sheet where results are to be saved

  • @jordancopetkovski2646
    @jordancopetkovski2646 4 года назад

    When I click makes duplicate all times. how to stop that? Thanks

  • @jevan2196
    @jevan2196 4 года назад

    What if its for continues use? For example I have a new entry. Then I want it to copy on the other sheet but dont copy the old entries? I tried it but the old entries also copied. Please help

    • @centurychallenger
      @centurychallenger  4 года назад

      Please engage my professional service, a paid service. Thank you.

    • @jevan2196
      @jevan2196 4 года назад

      @@centurychallenger how

    • @centurychallenger
      @centurychallenger  4 года назад

      @@jevan2196 please write an email to me at cylau.kent (a) gmail dot com, attach your excel file too. Thank you

  • @ashrafhossain8911
    @ashrafhossain8911 3 года назад

    If I select report button on exel sheet multiple times same data is copied multiple times. How to get rid of it

  • @jayeshgaikwad7471
    @jayeshgaikwad7471 3 года назад

    how to fix paste destination in one file sheet1?

  • @abdulsafwan1840
    @abdulsafwan1840 4 года назад

    can i we sample file sir

  • @moosa2363
    @moosa2363 3 года назад

    what to change in this code when need to copy the row at a specific time like at 11:00:00 am

  • @usharaniyatish3879
    @usharaniyatish3879 2 года назад

    sir i have an request resolve this query , i m using input box to get the details only specifc date format .. it i enter any format else

  • @christopherroxas23
    @christopherroxas23 4 года назад

    Hi! Is it possible to get the value = "A" OR "B" AND value = "X"? Thank you

    • @centurychallenger
      @centurychallenger  4 года назад

      hi Christopher Roxas, it is possible... change to this - If (Worksheets("data").Range("C" & r).Value = "A" Or Worksheets("data").Range("C" & r).Value = "B") And _
      Worksheets("data").Range("D" & r).Value = "X" Then
      but if you have PowerQuery, this job can easily done with it, no longer need VBA coding.

    • @christopherroxas23
      @christopherroxas23 4 года назад +1

      @@centurychallenger Thank you Sir Kent!

    • @centurychallenger
      @centurychallenger  4 года назад +1

      I am glad can help,@@christopherroxas23

  • @redhaakhund1271
    @redhaakhund1271 3 года назад

    👍⭐️⭐️⭐️

  • @ngothanhtung8095
    @ngothanhtung8095 2 года назад

    help me code plesae! thanks

  • @qamruddinmohammedi7665
    @qamruddinmohammedi7665 3 года назад

    Dear Sir,
    Want transfer data from one workbook to another.
    Workbook - A
    1. Receipt No.
    2. Date
    3. Name
    4. Amount
    To Workbook - B in two different Sheets
    can you please help to write correct VBA code.

  • @saifurrahman1166
    @saifurrahman1166 3 года назад +1

    sir provide the code please

    • @centurychallenger
      @centurychallenger  3 года назад +1

      you can download the code here ^_^ 1drv.ms/x/s!AkMLI0B-DHbthcFzYJdCS4M8hp1CIw?e=WdgZlW Jesus love you

  • @cristianfeliciano5758
    @cristianfeliciano5758 3 года назад

    This does not work when you're searching for numbers.

  • @jackjuck7306
    @jackjuck7306 3 года назад

    1.25 - 1.5x speed ftw