Need help creating a multiple tab invoice from a raw data file

sreed39

New Member
Joined
Nov 2, 2017
Messages
25
Office Version
  1. 365
Platform
  1. Windows
We have raw data with employee hours and dates that we need to convert to a specific format for billing. When we do it the old-fashioned way, it is a lot of copy/paste and then double verification that we copied and pasted correctly. One project alone takes at least 8 hours to get organized properly.

I have an example raw data file and an example finished file. I know that some look-up formulas with pre-named tabs might be one solution, but looking for maybe a VBA script that will do this automatically.

The raw data looks like this:
Trans DateEmployee NameReg TimeOvt Time
5/1/2023​
Lucero,Adam B
8​
0​
5/1/2023​
Leiding,Monte J
4​
0​
5/1/2023​
Banks,TaCanunpa W
8​
0​
5/1/2023​
Jaramillo,Zackary H
7​
0​
5/1/2023​
Guzman,Steven M
8​
0​
5/1/2023​
Rodriguez,Jose R
4​
0​
5/1/2023​
Serna,Ryan S
8​
0​
5/1/2023​
Quintana,Anthony Ray
7.5​
0​
5/1/2023​
Sisneros,Joshua R
7.5​
0​
5/1/2023​
Sisneros,William R
8​
0​
5/1/2023​
Mancha,Martin M
5.5​
0​
5/1/2023​
Chavez,Fernando
7.5​
0​
5/1/2023​
Calderon,Luis C
7.5​
0​
5/1/2023​
Montez,Omar I
3​
0​
5/1/2023​
Dennison,Joshua A
4​
0​
5/1/2023​
Grajeda Herrera,Pedro A
4​
0​
5/1/2023​
Trotter,John W
8​
0​
5/1/2023​
Teupell,Ralph
6.5​
0​
5/1/2023​
Salazar,Phillip W
2.75​
0​
5/1/2023​
Davis,Harry J
7.5​
0​
5/1/2023​
Favela-Legarda,Alvaro
3​
0​
5/1/2023​
Perez,Eric J
3​
0​
5/1/2023​
Jim,Myron B
7.5​
0​
5/1/2023​
Gurule,Adrian J
7.5​
0​
5/2/2023​
Lucero,Adam B
8​
0​
5/2/2023​
Leiding,Monte J
3​
0​
5/2/2023​
Banks,TaCanunpa W
6.5​
0​
5/2/2023​
Jaramillo,Zackary H
6​
0​
5/2/2023​
Guzman,Steven M
8​
0​
5/2/2023​
Rodriguez,Jose R
7​
0​
5/2/2023​
Serna,Ryan S
7​
0​
5/2/2023​
Quintana,Anthony Ray
6.5​
0​
5/2/2023​
Sisneros,Joshua R
6.5​
0​
5/2/2023​
Sisneros,William R
8​
0​

And the finished product looks like this:

ROUSH
PROJECT TITLETORC Robotics, Inc.INVOICE PERIOD
DTNA REF#STARTEND
PURCHASE ORDER#5/1/20235/31/2023
ROUSH REF#130437
EXPENSE DESCRIPTIONRATEQTYTOTAL
Vehicle
NO IDTYPEDATE
REG Hours
5/1/2023​
Banks
$48.60​
8.00​
$388.80​
REG Hours
5/2/2023​
Banks
$48.60​
6.50​
$315.90​
REG Hours
5/3/2023​
Banks
$48.60​
7.50​
$364.50​
REG Hours
5/4/2023​
Banks
$48.60​
7.50​
$364.50​
REG Hours
5/5/2023​
Banks
$48.60​
3.50​
$170.10​
REG Hours
5/6/2023​
Banks
$48.60​
7.00​
$340.20​
REG Hours
5/8/2023​
Banks
$48.60​
6.50​
$315.90​
REG Hours
5/8/2023​
Banks
$48.60​
3.50​
$170.10​
REG Hours
5/9/2023​
Banks
$48.60​
7.50​
$364.50​
REG Hours
5/10/2023​
Banks
$48.60​
7.50​
$364.50​
REG Hours
5/11/2023​
Banks
$48.60​
7.50​
$364.50​
REG Hours
5/12/2023​
Banks
$48.60​
7.50​
$364.50​
REG Hours
5/15/2023​
Banks
$48.60​
3.50​
$170.10​
REG Hours
5/15/2023​
Banks
$48.60​
2.00​
$97.20​
REG Hours
5/16/2023​
Banks
$48.60​
7.50​
$364.50​
REG Hours
5/17/2023​
Banks
$48.60​
7.00​
$340.20​
REG Hours
5/18/2023​
Banks
$48.60​
3.00​
$145.80​
REG Hours
5/18/2023​
Banks
$48.60​
7.00​
$340.20​
REG Hours
5/19/2023​
Banks
$48.60​
2.00​
$97.20​
REG Hours
5/19/2023​
Banks
$48.60​
8.00​
$388.80​
REG Hours
5/22/2023​
Banks
$48.60​
4.00​
$194.40​
REG Hours
5/22/2023​
Banks
$48.60​
3.00​
$145.80​
REG Hours
5/23/2023​
Banks
$48.60​
7.00​
$340.20​
REG Hours
5/24/2023​
Banks
$48.60​
7.50​
$364.50​
REG Hours
5/26/2023​
Banks
$48.60​
10.50​
$510.30​
REG Hours
5/31/2023​
Banks
$48.60​
3.00​
$145.80​
TOTAL
$7,533.00​
EXPENSE DESCRIPTIONRATEQTYTOTAL
Vehicle
NO IDTYPEDATE
OT Hours
5/7/2023​
Banks
$72.90​
10.00​
$729.00​
OT Hours
5/13/2023​
Banks
$72.90​
10.00​
$729.00​
OT Hours
5/15/2023​
Banks
$72.90​
10.00​
$729.00​
TOTAL
$2,187.00​
MONTH TOTAL$9,720.00
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
In the example of the picture below there is a tab for each individual driver - 22 tabs total all starting from the raw data file.

Here is a picture of the output format:
 

Attachments

  • Screenshot 2023-06-06 123624.jpg
    Screenshot 2023-06-06 123624.jpg
    95.2 KB · Views: 3
Upvote 0

Forum statistics

Threads
1,215,168
Messages
6,123,402
Members
449,098
Latest member
ArturS75

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