LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Dean
 
Posts: n/a
Default

Ron,

I'll recripicate your reciprocal apology as I'm now on holiday. Looks sound
though. Will give it a go when I get back but until then, Thanks
Dean



"Ron Coderre" wrote:

A reciprocal apology for the delay in responding: I was away on vacation for
a week.

OK...Here goes:
I set up a worksheet with a range named rngPickTimes.
That range has 4 columns:
A1: UserID
B1: OrderID
C1: StartTime
D1: EndTime

Under those column headings I created fictitious picker names, order IDs,
and pick start/end times. To test satisfaction of your request, I entered the
same pickers for the same order IDs for varying start and end times.

I then saved the workbook as PickTime.XLS and closed it.

In a new workbook I selected
DataImport External DataNew Database Query
Data Source: Excel Files (I navigated to the PickTime.xls and selected the
rngPickTimes range name)

Then I selected all columns, accepted all defaults, and opted for "View data
or edit query in Microsoft Query".

I clicked the [SQL] button to view the SQL code and edited it to be the
following:
SELECT
TheData.UserID,
TheData.OrderID,
sum(EndTime-StartTime) AS 'Duration'
FROM
`C:\Analysis\ForumHelp\PickTime`.rngPickTimes TheData
GROUP BY TheData.OrderID, TheData.UserID
ORDER BY TheData.OrderID, TheData.UserID

That returned Total Pick Time by UserID for each Order

Does that help?
------
Regards,
Ron



 
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Query cannot be edited by the Query Wizard" PancakeBatter Excel Discussion (Misc queries) 0 April 25th 05 05:59 PM
Database Query -- Data Type Mismatch StephenP Excel Discussion (Misc queries) 0 April 14th 05 07:05 PM
Excel2000 ODBC query oddity Arvi Laanemets Excel Discussion (Misc queries) 0 March 10th 05 06:35 AM
Query of External Data Excel GuRu Excel Discussion (Misc queries) 2 January 3rd 05 07:43 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM


All times are GMT +1. The time now is 03:22 PM.

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

About Us

"It's about Microsoft Excel"