Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 259
Default Need help with please..

Hi all

I have 20k rows representing a whole year of activity of delivering into
5 DC's. What I need to do is get a figure of how many of these DC's got
there delivery's on time.

Now, drivers may visit the same DC more than once a day, and may have
multiple customer's goods per visit. This translates as thus.

Month | Driver | Customer | DC | Time Due | Time In
Jul Jack ABC HDC 10:00 09:30
Jul Jack DEF HDC 10:00 09:30
Jul Jack XYZ HDC 10:00 09:30

The Customer information is not important, what I need is to compress
these 3 lines of data into 1 row so that I can determine if Jack
delivered into the DC on time which would register a 1, else it's a zero.

The columns in question are this.

Set wksTarget = Sheets("Jan")
Set rngMonth = Sheets("Data").Range("$A$2:$A$20000")
Set rngDC = Sheets("Data").Range("$H$2:$H$20000")
Set rngDriver = Sheets("Data").Range("$L$2:$L$20000")
Set rngDCD = Sheets("Data").Range("$N$2:$N$20000")
Set rngDCI = Sheets("Data").Range("$O$2:$O$20000")

The target sheet listed above is set to "Jan" as I am not sure whether
or no to break the entire 20K rows into individual months, then graph
them from their respective sheets.

Essentially, a driver can have as many as 5 deliveries a day, of which
he may visit up to 3 DC's so there will be multiple sets of data to add
to the multiple rows ( representing the non-important individual
customers goods they carry into the DC ).

So, the end result I am hoping to achieve is this:

Month | DC | Total Deliveries | On Time | %
Jul HDC 250 200 80.00
Jul LDC 200 100 50.00
Jul NDC 750 700 93.33
Jul RDC 150 145 96.67

So the whole thing would be 12 individual months of this result.

Any assistance is appreciated.

TIA
Mick.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Need help with please..

Mick
I think you just need to add an additional column headed by, "on time". That would contain a formula, =if(time due<time in, 1, 0). Copy that formula down fro all 20k rows of data, then make a pivot table. You will be able to to exactly what you want, and a whole lot more by simple manipulating the pivot table.
I hope this helps.
Ken


On Monday, July 23, 2012 5:45:25 AM UTC-4, Vacuum Sealed wrote:
Hi all

I have 20k rows representing a whole year of activity of delivering into
5 DC's. What I need to do is get a figure of how many of these DC's got
there delivery's on time.

Now, drivers may visit the same DC more than once a day, and may have
multiple customer's goods per visit. This translates as thus.

Month | Driver | Customer | DC | Time Due | Time In
Jul Jack ABC HDC 10:00 09:30
Jul Jack DEF HDC 10:00 09:30
Jul Jack XYZ HDC 10:00 09:30

The Customer information is not important, what I need is to compress
these 3 lines of data into 1 row so that I can determine if Jack
delivered into the DC on time which would register a 1, else it's a zero.

The columns in question are this.

Set wksTarget = Sheets(&quot;Jan&quot;)
Set rngMonth = Sheets(&quot;Data&quot;).Range(&quot;$A$2:$A$20000 &quot;)
Set rngDC = Sheets(&quot;Data&quot;).Range(&quot;$H$2:$H$20000 &quot;)
Set rngDriver = Sheets(&quot;Data&quot;).Range(&quot;$L$2:$L$20000 &quot;)
Set rngDCD = Sheets(&quot;Data&quot;).Range(&quot;$N$2:$N$20000 &quot;)
Set rngDCI = Sheets(&quot;Data&quot;).Range(&quot;$O$2:$O$20000 &quot;)

The target sheet listed above is set to &quot;Jan&quot; as I am not sure whether
or no to break the entire 20K rows into individual months, then graph
them from their respective sheets.

Essentially, a driver can have as many as 5 deliveries a day, of which
he may visit up to 3 DC's so there will be multiple sets of data to add
to the multiple rows ( representing the non-important individual
customers goods they carry into the DC ).

So, the end result I am hoping to achieve is this:

Month | DC | Total Deliveries | On Time | %
Jul HDC 250 200 80.00
Jul LDC 200 100 50.00
Jul NDC 750 700 93.33
Jul RDC 150 145 96.67

So the whole thing would be 12 individual months of this result.

Any assistance is appreciated.

TIA
Mick.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 259
Default Need help with please..

On 24/07/2012 12:23 PM, wrote:
Mick
I think you just need to add an additional column headed by, "on time". That would contain a formula, =if(time due<time in, 1, 0). Copy that formula down fro all 20k rows of data, then make a pivot table. You will be able to to exactly what you want, and a whole lot more by simple manipulating the pivot table.
I hope this helps.
Ken


On Monday, July 23, 2012 5:45:25 AM UTC-4, Vacuum Sealed wrote:
Hi all

I have 20k rows representing a whole year of activity of delivering into
5 DC's. What I need to do is get a figure of how many of these DC's got
there delivery's on time.

Now, drivers may visit the same DC more than once a day, and may have
multiple customer's goods per visit. This translates as thus.

Month | Driver | Customer | DC | Time Due | Time In
Jul Jack ABC HDC 10:00 09:30
Jul Jack DEF HDC 10:00 09:30
Jul Jack XYZ HDC 10:00 09:30

The Customer information is not important, what I need is to compress
these 3 lines of data into 1 row so that I can determine if Jack
delivered into the DC on time which would register a 1, else it's a zero.

The columns in question are this.

Set wksTarget = Sheets(&quot;Jan&quot;)
Set rngMonth = Sheets(&quot;Data&quot;).Range(&quot;$A$2:$A$20000 &quot;)
Set rngDC = Sheets(&quot;Data&quot;).Range(&quot;$H$2:$H$20000 &quot;)
Set rngDriver = Sheets(&quot;Data&quot;).Range(&quot;$L$2:$L$20000 &quot;)
Set rngDCD = Sheets(&quot;Data&quot;).Range(&quot;$N$2:$N$20000 &quot;)
Set rngDCI = Sheets(&quot;Data&quot;).Range(&quot;$O$2:$O$20000 &quot;)

The target sheet listed above is set to &quot;Jan&quot; as I am not sure whether
or no to break the entire 20K rows into individual months, then graph
them from their respective sheets.

Essentially, a driver can have as many as 5 deliveries a day, of which
he may visit up to 3 DC's so there will be multiple sets of data to add
to the multiple rows ( representing the non-important individual
customers goods they carry into the DC ).

So, the end result I am hoping to achieve is this:

Month | DC | Total Deliveries | On Time | %
Jul HDC 250 200 80.00
Jul LDC 200 100 50.00
Jul NDC 750 700 93.33
Jul RDC 150 145 96.67

So the whole thing would be 12 individual months of this result.

Any assistance is appreciated.

TIA
Mick.


Hi Ken

I had originally done this but it gives me incorrect % figures as it
counts the multiple instances ( by that I mean multiple customers ) of a
driver who is delivering into the DC

I may have to look at a multiple level filtering on the main data page
and copy those rows into the individual months whereby using these as
helper sheets, then copy/condensce each month back into a summary page.

I will keep chipping away at it.

Thanks again.

Cheers
Mick.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"