pull data from a list/table and put it in another table based on a code

Dalton324

New Member
Joined
Jul 18, 2014
Messages
9
Hey everyone!

So I am trying to write a formula that will extract/pull data from a list/table and sort it based on a company code. What I am trying to do is copy data from a downloaded report (saves as a CSV) and then paste it into a workbook that will automatically sort the data. The data that I am downloading is all the hours we (co-workers and I) have worked for each on of our clients. This data is used to make our invoices that we send to our clients. I already made a workbook that takes all the data and makes the invoice but I find myself spending a lot of time sorting by company then copying and pasting by person. I run this reports each month and there is usually 1700-2000 line items. We have 12 clients and 18 employees so its time consuming to do this each month. Since I can almost guarantee non of that made senses on what I am trying to accomplish, an example is below:

Below is how the data looks from the downloaded report:

CompanyPersonDateHoursRate
AJoe06/01/141100
BJoe06/05/143120
ADan06/07/144140
AJohn06/01/142120
CJim06/10/146100
DDan06/12/145100
AJoe06/10/142110
CDan06/12/143120
DJohn06/07/144140

<tbody>
</tbody>


This is the table I copy and paste the report into (and how it usually looks):

ABCD
PersonDateHoursRatePersonDateHourRatePersonDateHourRatePersonDateHourRate
Joe06/01/141100Joe06/05/143120Jim06/10/146100Dan06/12/145100
Joe06/10/142110Dan06/12/143120John06/07/144140
Dan06/07/144140
John06/01/142120

<tbody>
</tbody>


I don't care if it is any order or not because after I put it in the table I have another spreadsheet that takes this data and puts it into a calendar with the amount of hours worked by person by company and then calculates the amount of hours worked at there rate. Then the invoice spreadsheets uses the data from the calendar spreadsheets to generate the invoices.

All the way I have tried haven't worked out there is like 50000000 rows in-between one row and the next. Also, vlookup does not like the company name and will work for some companies and not others. Index&match works great but I run into the 500000 rows in-between one row and the next problem.

Let me know if you need more info or have questions.

Thanks!

Dalton
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Forum statistics

Threads
1,215,917
Messages
6,127,703
Members
449,399
Latest member
VEVE4014

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