Move 'completed' information from one table to another table.

Ev1lZer0

New Member
Joined
Sep 26, 2022
Messages
34
Office Version
  1. 365
Platform
  1. Windows
Without using a macro, I am wanting to completely move, not filter, information from table 2 located on the sheet called '2022 trial calendar' to a NEW table with the exact same headers if column w on table 2 has one of 10 words in it. This new table (table 5) would be on a new sheet (sheet1).

the 10 words are:
Plea
Dismissed W/O Prej
Dismissed W/Prej
Jury
Bench
Mistrial
Plea/Sentence
Sentencing
Civil Commitment
FTA

These words are located on the 'data validation' sheet and listed in cells b2-b11 if this helps shorten a formula.

Is this possible?

If so how? I can upload the document if I must, but I'd prefer if I don't have to.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Try to use power query.
Copy the code below into Power Query.
Note:
1. your data table must be named "table2".
2. your column w title must be named "Column w".
3. Or you can amend the code below by replacing "table2", "Column w" with what you exactly have.
4. Since the result is a Table, you should refresh manually the Table while you update your "table2".

Step1. selection the table 2, press Alt A P T in sequence to use PQ.
Step2. press Alt H Q in sequence to edit the M code.
Step3. replace all the code with my code below.
Step4. close the PQ.
Done.

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="table2"]}[Content],
    SelectRows = Table.SelectRows(Source , each ([Column w] = "Bench" or [Column w] = "Civil Commitment" or [Column w] = "Dismissed W/O Prej" or [Column w] = "Dismissed W/Prej" or [Column w] = "FTA" or [Column w] = "Jury" or [Column w] = "Mistrial" or [Column w] = "Plea" or [Column w] = "Plea/Sentence" or [Column w] = "Sentencing"))
in
    SelectRows
 
Upvote 0
Solution
Okay, this works. And I understand how to re-run the query by going to data and clicking "refresh all."

But now, is there a way to, once the data has moved to the new table, remove the data from the original table?
 
Upvote 0
Okay, this works. And I understand how to re-run the query by going to data and clicking "refresh all."

But now, is there a way to, once the data has moved to the new table, remove the data from the original table?
I don't know is there any way?
Maybe you can only do it manually.
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top