Thoughts on the best way to proceed to copy data to a table

Oberon70

Board Regular
Joined
Jan 21, 2022
Messages
160
Office Version
  1. 365
Platform
  1. Windows
This is part 2 to my previous post were I copied the invoice information to a table to list the invoices I receive. The next part is were I am going to only copy the columns I need from the data sheet on the statement.

The statements from different provides will have there data organised differently, which is fine. I likely will use case to ensure the correct process is selected.

The issue is it is not a 1 to 1 copy. I am only wanting specific columns. Below is a dummy Data Sheet. There is information above line 48, but I am only interested in the information from line 48.

DummyFileReference.JPG


The selected information would then be copied to the below table on another sheet/workbook.

DataTableforTransactions.JPG


I had written a code that would convert the above information into a table, but I didn't know if that would be the best way? where I copy each column I want into the above table?

The following columns I already have the information assigned in variables from a previous sub:
Provider, Portfolio Code, Invoice number and Invoice Date.

FileRef1 = claim number
Provider's Ref = FileCode
Amount = StrPaytAmt
ExCommission = Strcomamt
GST = STRGSTAMT

The above would be dynamic as different statements have different amount of transactions.

looking forward to any ideas?
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Have you considered transforming it in Power Query? This will allow you to rename columns, remove unneeded, filter, replace values etc. Fully incorporatable into macros, and the output is a new table.
 
Upvote 0
Have you considered transforming it in Power Query? This will allow you to rename columns, remove unneeded, filter, replace values etc. Fully incorporatable into macros, and the output is a new table.
No, I will have to google Power Query as it sounds like a good idea.
 
Upvote 0
I need yo add that this table will have new entries added to the first blank row as I receive them
 
Upvote 0
Are you wanting to set up this spreadsheet and then update manually, or automate the whole process?
This is going to be automated . I will have auserform will several options. A basic outline is:
1. New statement received. This will take the details of the statement and place into a table. This table will keep track if a batch report has been crested, a diary report, if the statement has been receipted. I have this info going into the table via a macro. It will also let me generate a weekly report on the status of receipting.
2. The transactions for the statement will go into the table_tranaactions. With this I will be able create a spreadsheet that it easier to manual receipt. Check if the statement has been receipted.

These are the two basic goals but there a a few smaller ones I will add on once the above is working.

Sorry, I hope that isn't confusing?
 
Upvote 0
This is going to be automated . I will have auserform will several options. A basic outline is:
1. New statement received. This will take the details of the statement and place into a table. This table will keep track if a batch report has been crested, a diary report, if the statement has been receipted. I have this info going into the table via a macro. It will also let me generate a weekly report on the status of receipting.
2. The transactions for the statement will go into the table_tranaactions. With this I will be able create a spreadsheet that it easier to manual receipt. Check if the statement has been receipted.

These are the two basic goals but there a a few smaller ones I will add on once the above is working.

Sorry, I hope that isn't confusing?
It sounds like the data entry will be automated? In which case no issue, Power Query outputs can be refreshed, applying the same steps to the entire table *as long as you don't add any columns*.
 
Upvote 0
So, would I be using power query to move the information I want from one sheet to a table?

I am googling power queries and I think this is a bit more advance that what I can currently work with. It sounds great.
 
Upvote 0
So, would I be using power query to move the information I want from one sheet to a table?

I am googling power queries and I think this is a bit more advance that what I can currently work with. It sounds great.
Power Query will automatically add the transformed data to a new table in a new worksheet, it does not change the original data. It's like taking a photo of the data and applying filters - the thing you took the photo of doesn't change, but the way you see it does.
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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