How Move Row to Multiple Worksheets From One Worksheet Based on Cell Value or Dropdown List In Excel

Поделиться
HTML-код
  • Опубликовано: 20 фев 2022
  • How Move Row to Multiple Worksheets from One Worksheet Based On Cell Value or Dropdown List in Excel
    Moving data from one worksheet to multiple worksheets is one of the most tiresome clerical tasks ever existed. There are tons of scenarios where you'll need to move data from one sheet to several others based on different conditions. Suppose you create a task manager where you aggregate all the projects in a master worksheet and then distribute them to different sheets based on different situations. Or you have to transfer each completed project to the completed worksheet, pending projects to the pending worksheet, and ongoing projects to the ongoing worksheets. If you want to do it manually, you can do that, but that will not be suitable if you want to be efficient in your workspace. You need an automation service where you'll be able to transfer data in a blink of an eye.
    In this tutorial, I'll show you how to do that. I'll be using VBA here, and I've done several tutorials like this, but this one shows how to automate the whole process. Let's follow the steps below to move rows to different worksheets based on different cell values without further ado.
    Step 1: Click on the developer tab (If you don't have the developer tab on your ribbon, please check this tutorial: msexceltutorial.com/post/How-...)
    Step 2: Now click on "Visual Basics."
    Step 3: Select "Insert."
    Step 4: Click "Module."
    Step 5: Compose the code (Check this link to get the code: / 62331567 )
    Now repeat steps 1 to 5 based on how many destination worksheets you have. In the video, I had three destination worksheets; that's why I had created three modules.
    Step 6: Change the code in each module based on your worksheet name and specific text.
    Step 7: Close the VBE.
    Step 8: Right-Click on the source worksheet name and paste the automation code. (Check this link to get the code: / 62331567 )
    Step 9: Change the automation part based on how many macro names you need to call and the column name where you have your specific text.
    Step 10: Save the workbook in .xlsm format.
    Done. Now, if you select a value from the dropdown list, it will move that entire to another worksheet you specified earlier.
    Thanks for watching.
    ----------------------------------------------------------------------------------------
    Support the channel with as low as $5
    / excel10tutorial
    ----------------------------------------------------------------------------------------
    Please subscribe to #excel10tutorial
    goo.gl/uL8fqQ
    Here goes the most recent video of the channel:
    bit.ly/2UngIwS
    Playlists:
    Advance Excel Tutorial: goo.gl/ExYy7v
    Excel Tutorial for Beginners: goo.gl/UDrDcA
    Excel Case: goo.gl/xiP3tv
    Combine Workbook & Worksheets: bit.ly/2Tpf7DB
    All About Comments in Excel: bit.ly/excelcomments
    Excel VBA Programming Course: bit.ly/excelvbacourse
    Social media:
    Facebook: / excel10tutorial
    Twitter: / excel10tutorial
    Blogger: excel10tutorial.blogspot.com
    Tumblr: / excel10tutorial
    Instagram: / excel_10_tutorial
    Hubpages: hubpages.com/@excel10tutorial
    Quora: bit.ly/3bxB8JG
    Website: msexceltutorial.com/

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

  • @yurivillela9745
    @yurivillela9745 10 месяцев назад

    Thank you very much!! It helped me a lot!

  • @dOnellaization
    @dOnellaization Год назад +1

    Thank You!! I'm still looking through your videos, but what if you want to move from multiple source sheets to one destination worksheet for "completed" items?

  • @pamelahamilton9668
    @pamelahamilton9668 Год назад +6

    This is awesome. However, I want to COPY the data and not move it. How would I change the code to do this?

  • @user-vc7fz5qy2l
    @user-vc7fz5qy2l 6 месяцев назад +1

    This awesome tutorial, could you please make a video about copy instead of moving?

    • @Excel10tutorial
      @Excel10tutorial  6 месяцев назад

      I have a lot of videos regarding that. Please check on the channel.

  • @nancyray969
    @nancyray969 6 месяцев назад

    Thanks!

  • @lucianaragone5260
    @lucianaragone5260 Год назад +1

    This is a great video. Quick question.. when I put complete in my drop down it moves over to the complete sheet however it deletes a previous row in that sheet. How do I fix this?

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

    You gain a new subscriber for this one. This is a very helpful. Just a question though, what if from pending status I need to change it complete status or cancelled status, should I just copy the automation code to the pending sheet?

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

      If you do full automation then it will be problem. If you use button to activate the code you can do that in that way.

  • @ivettemartinez2505
    @ivettemartinez2505 Год назад +2

    Would I apply the same code in the master tab to the other tabs if I want to move a pending to complete? Right now my worksheet only automatically moves them from the master tab, but not the other tabs when I update the status

  • @matthewporter3048
    @matthewporter3048 5 месяцев назад

    hi, thanks very much for this tutorial its great, question I have is, if I delete data from the destination worksheets and then move a row from the master sheet, it doesn't paste the data to the top/first available blank cell in column A. how can I ensure the data moves to the first available empty row on the destination sheet?

    • @Excel10tutorial
      @Excel10tutorial  5 месяцев назад

      Select the in-between empty row, rightclick and delete. Now it will work fine.

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

    As well, will this work if I add a new row and select one of the 3 options from the drop down list?

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

    Thank you for making this Video. There is small problem with your code. lets say there are 10 rows of information, if i type Completed on the last row in this case the 10th row it won't move it to Completed sheet. Can you fix this please.

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

      It will work unless you're making a mistake. Remember the specific text here is case sensitive. Make sure its same as your code.

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

    Hi, what if I have sheets CompanyA, CompanyB, CompanyC, CompanyD, CompanyE and Master. How can I automatically move from master to their respective sheet once I type in Completed? By the way, very nice tutorial. Hope you can help me. Thank you.

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

      You'll have to setup multiple condition. One for company name and another for conpleted.

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

      @@Excel10tutorial Sorry but im totally noob about this. Can you kindly give me a sample code that I can just copy and edit? Appreciate your help. Thanks a lot.

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

      Send me an email with your workbook. I'll take a look at it. Email address is in the channel about section.

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

    This has been useful, but I'm a true novice. Do I change range in all areas you have 'C'?

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

      Not everywhere. Just a the lines listed below.
      If Intersect(Target, Range("C:C")) Is Nothing Then Exit Sub
      Set xRg = Worksheets("Master").Range("C1:C" & A)

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

    How can we make the row not disappear from the master sheet? I still want to keep it there?

    • @Excel10tutorial
      @Excel10tutorial  2 года назад +1

      You need to check this video: ruclips.net/video/MNckj0Em--k/видео.html

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

    Hi and thank you for this information! Can you please send me the VB code so I can set it up? :-)

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

    My code is not appearing in the completed worksheet for some reason. The code look right to me. What is it that I could have done wrong?

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

      Try again. Follow the video carefully. If you still have problem, send me an email.

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

    I get error with the following code?
    Private Sub Worksheet_Change(ByVal Target As Range)
    Dim Z As Long
    Dim xVal As String
    On Error Resume Next
    If Intersect(Target, Range("H:H")) Is Nothing Then Exit Sub
    Application.EnableEvents = False
    For Z = 1 To Target.Count
    If Target(Z).Value > 0 Then
    Call MoveBasedOnValue
    End If
    Next
    Application.EnableEvents = True
    End Sub