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

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ม.ค. 2025

ความคิดเห็น • 60

  • @alwyalvarez
    @alwyalvarez 3 ปีที่แล้ว +1

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

  • @borisvainrub6341
    @borisvainrub6341 4 ปีที่แล้ว +1

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

  • @urquix96
    @urquix96 4 ปีที่แล้ว +1

    You save me a LOT of time THANKS!!!

  • @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.

  • @querrythis
    @querrythis 8 หลายเดือนก่อน

    Thanks for the tip

  • @LongNguyen-kz2oe
    @LongNguyen-kz2oe 2 ปีที่แล้ว

    I did it, thank you so much

  • @jhynvalle496
    @jhynvalle496 4 ปีที่แล้ว +1

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

  • @binayyadav1987
    @binayyadav1987 2 ปีที่แล้ว

    Amazing

  • @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

  • @hashanwch
    @hashanwch 3 ปีที่แล้ว

    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?

  • @Gudha_Ismintis
    @Gudha_Ismintis 2 ปีที่แล้ว

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

  • @davecks3042
    @davecks3042 4 ปีที่แล้ว +1

    Well explained and easily understood. Thanks

  • @jonnavithulasandeepya8363
    @jonnavithulasandeepya8363 4 ปีที่แล้ว

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

  • @jssj16
    @jssj16 4 ปีที่แล้ว

    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?

  • @michaelhillier8853
    @michaelhillier8853 2 ปีที่แล้ว

    Thank you Sir -

  • @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. th-cam.com/video/s8zERVbmUXI/w-d-xo.html

  • @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

    • @centurychallenger
      @centurychallenger  3 ปีที่แล้ว

      Use Microsoft Power Automate to schedule this task.

  • @jusephwinclic165
    @jusephwinclic165 4 ปีที่แล้ว

    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 3 ปีที่แล้ว

    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 2 ปีที่แล้ว

    Thx!

  • @ashrafhossain8911
    @ashrafhossain8911 4 ปีที่แล้ว

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

  • @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.

  • @prinzessinmadonna
    @prinzessinmadonna 4 ปีที่แล้ว

    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?

  • @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 3 ปีที่แล้ว

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

  • @jayeshgaikwad7471
    @jayeshgaikwad7471 4 ปีที่แล้ว

    how to fix paste destination in one file sheet1?

  • @gerardvaneggermond9967
    @gerardvaneggermond9967 5 ปีที่แล้ว

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

  • @viddongmalualruot7909
    @viddongmalualruot7909 5 ปีที่แล้ว

    you guys are going on well

  • @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

  • @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

  • @dkpatel4470
    @dkpatel4470 5 ปีที่แล้ว

    How to copy past specific value filtered data to another sheets

  • @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.

  • @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

  • @jordancopetkovski2646
    @jordancopetkovski2646 4 ปีที่แล้ว

    When I click makes duplicate all times. how to stop that? 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.

  • @ashimagupta9494
    @ashimagupta9494 5 ปีที่แล้ว

    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 5 ปีที่แล้ว

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

  • @ngothanhtung8095
    @ngothanhtung8095 3 ปีที่แล้ว

    help me code plesae! thanks

  • @cristianfeliciano5758
    @cristianfeliciano5758 4 ปีที่แล้ว

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

  • @abdulsafwan1840
    @abdulsafwan1840 4 ปีที่แล้ว

    can i we sample file sir

  • @redhaakhund1271
    @redhaakhund1271 3 ปีที่แล้ว

    👍⭐️⭐️⭐️

  • @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 ... th-cam.com/video/AEmSvDOQ41w/w-d-xo.html

  • @jackjuck7306
    @jackjuck7306 4 ปีที่แล้ว

    1.25 - 1.5x speed ftw