Data extraction

Shrek1972

New Member
Joined
Jan 13, 2014
Messages
2
Dear All

I'm new to VBA and can't seem to crack how it all comes together. I have a database of raw data from which I need to extrapolate different dates & times from several columns and average the values into a new column in a KPI report. This I need to do for about 300,000 records since the data contains dates & times for different business units. Is there anyone that can help me with a code for this sort of thing? Below is an example of what it should look like as the end result

REGIONAL LOGISTICS KPI REPORT
Northern RegionRegional Score88%
19-Dec-13
BUSINESS UNIT PERFORMANCE
Business UnitNorth WestLimpopo EastLimpopo WestMpumalangaRekopaneDGMTAD
Overall Score90%83%88%76%85%95%97%
Super Group Score93%90%96%78%88%102%99%
TAT "In Lab" (Hrs)49 56 49 576955100
TAT "Referrals" (Hrs)112 126 112 1389600
Number of Routes272526322339
Last SLA meeting15-Oct-1315-Oct-1315-Oct-1315-Oct-1315-Oct-1315-Oct-1315-Oct-13
ReferralIn Lab
Target (Hrs)Target (Hrs)AverageAverageAverageAverageAverageAverageAverage
TAT REPORT292380%67%76%52%70%91%94%
Collection Performance
(From sample readyness)12127.4614.2912.2811.939.638.266.65
(From Collection to Delivery)331.841.781.962.652.021.381.97
Pre-analytical Performance
(From Delivery to capture)3.513.513.3810.756.706.264.307.095.39
(From capture to Referal)117.385.092.277.023.601 1
Referral Performance
(From Referral to receiving)12511.9111.996.6516.3910.9212 12
Delivery Performance
(From Report Print to Report Collect)12530.5744.4640.3636.7933.2426.9166.13
(Delivery of Reports)333.122.262.155.544.101.901.81
SERVICE PROVIDER PERFORMANCE100%100%100%100%100%100%100%
Number of Vehicles202525212325
Vehicle Compliance100%100%100%100%100%100%100%100%
Driver compliance100%100%100%100%100%100%100%95%
Trip Sheet Compliance100%100%100%100%95%100%100%100%
Scanning Compliance100%100%100%100%100%100%100%100%
Tracking Compliance100%100%100%100%100%100%100%100%

<colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Not enough detail to really help. I would like to suggest that if you are already able to get the information from the database, if possible use an SQL statement to accomplish this.
If not then are you able to import to excel using the actual table data? rather than the report that you posted.
 
Upvote 0

Forum statistics

Threads
1,202,966
Messages
6,052,839
Members
444,603
Latest member
dustinjmangum

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