Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Cam Cam is offline
external usenet poster
 
Posts: 165
Default Help with calculating time

Hello,

I have an Excel to track performance. Sheet1 is performance table where user
input their ID, date, part#, side, start sequence & stop sequence daily. Then
on a reference sheet2 with field: part#, side, sequence#, time (calculated).

What I would like to calculate is look at the start & stop sequence based on
the part# & side then calculate how long (time) the operator spend on the job
(part#). Thanks

Example:
Sheet1 - User input data
ID date part# side start seq stop seq
001 1/8/08 1360-1 1st 100 500
002 1/10/08 1560-3 2nd 600 1000

Sheet2 - Reference
part# side start seq time (min)
1360-1 1st 100 5
1360-1 1st 200 10
1360-1 1st 300 10
1360-1 1st 400 30
1360-1 1st 500 15
1360-1 1st 600 60
1560-3 2nd 100 10
...........

Result
Sheet3
ID date part# side start seq stop seq Total time
(calculated)
001 1/8/08 1360-1 1st 100 500 70

How should i go about linking the two sheets so it will calculate the time
based on when he start the sequence to when he stop the sequence? Thanks


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Help with calculating time

Try this:

With this data on Sheet2 in the range A2:D8

1360-1...1st...100...5
1360-1...1st...200...10
1360-1...1st...300...10
1360-1...1st...400...30
1360-1...1st...500...15
1360-1...1st...600...60
1560-3...2nd...100...10


With this data on Sheet3 in the range A2:F2

001...1/8/08...1360-1...1st...100...500


Enter this formula on Sheet3 G2:

=SUMPRODUCT(--(Sheet2!A$2:A$8=C2),--(Sheet2!B$2:B$8=D2),--(Sheet2!C$2:C$8=E2),--(Sheet2!C$2:C$8<=F2),Sheet2!D$2:D$8)


--
Biff
Microsoft Excel MVP


"Cam" wrote in message
...
Hello,

I have an Excel to track performance. Sheet1 is performance table where
user
input their ID, date, part#, side, start sequence & stop sequence daily.
Then
on a reference sheet2 with field: part#, side, sequence#, time
(calculated).

What I would like to calculate is look at the start & stop sequence based
on
the part# & side then calculate how long (time) the operator spend on the
job
(part#). Thanks

Example:
Sheet1 - User input data
ID date part# side start seq stop seq
001 1/8/08 1360-1 1st 100 500
002 1/10/08 1560-3 2nd 600 1000

Sheet2 - Reference
part# side start seq time (min)
1360-1 1st 100 5
1360-1 1st 200 10
1360-1 1st 300 10
1360-1 1st 400 30
1360-1 1st 500 15
1360-1 1st 600 60
1560-3 2nd 100 10
..........

Result
Sheet3
ID date part# side start seq stop seq Total time
(calculated)
001 1/8/08 1360-1 1st 100 500 70

How should i go about linking the two sheets so it will calculate the time
based on when he start the sequence to when he stop the sequence? Thanks




  #3   Report Post  
Posted to microsoft.public.excel.misc
Cam Cam is offline
external usenet poster
 
Posts: 165
Default Help with calculating time

Hi Valko,

I tried the formula you suggested, but it returns "0" where it shouldn't be.


"T. Valko" wrote:

Try this:

With this data on Sheet2 in the range A2:D8

1360-1...1st...100...5
1360-1...1st...200...10
1360-1...1st...300...10
1360-1...1st...400...30
1360-1...1st...500...15
1360-1...1st...600...60
1560-3...2nd...100...10


With this data on Sheet3 in the range A2:F2

001...1/8/08...1360-1...1st...100...500


Enter this formula on Sheet3 G2:

=SUMPRODUCT(--(Sheet2!A$2:A$8=C2),--(Sheet2!B$2:B$8=D2),--(Sheet2!C$2:C$8=E2),--(Sheet2!C$2:C$8<=F2),Sheet2!D$2:D$8)


--
Biff
Microsoft Excel MVP


"Cam" wrote in message
...
Hello,

I have an Excel to track performance. Sheet1 is performance table where
user
input their ID, date, part#, side, start sequence & stop sequence daily.
Then
on a reference sheet2 with field: part#, side, sequence#, time
(calculated).

What I would like to calculate is look at the start & stop sequence based
on
the part# & side then calculate how long (time) the operator spend on the
job
(part#). Thanks

Example:
Sheet1 - User input data
ID date part# side start seq stop seq
001 1/8/08 1360-1 1st 100 500
002 1/10/08 1560-3 2nd 600 1000

Sheet2 - Reference
part# side start seq time (min)
1360-1 1st 100 5
1360-1 1st 200 10
1360-1 1st 300 10
1360-1 1st 400 30
1360-1 1st 500 15
1360-1 1st 600 60
1560-3 2nd 100 10
..........

Result
Sheet3
ID date part# side start seq stop seq Total time
(calculated)
001 1/8/08 1360-1 1st 100 500 70

How should i go about linking the two sheets so it will calculate the time
based on when he start the sequence to when he stop the sequence? Thanks





  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Help with calculating time

You'll have to post a sample of data and show where the formula is returning
a 0.

--
Biff
Microsoft Excel MVP


"Cam" wrote in message
...
Hi Valko,

I tried the formula you suggested, but it returns "0" where it shouldn't
be.


"T. Valko" wrote:

Try this:

With this data on Sheet2 in the range A2:D8

1360-1...1st...100...5
1360-1...1st...200...10
1360-1...1st...300...10
1360-1...1st...400...30
1360-1...1st...500...15
1360-1...1st...600...60
1560-3...2nd...100...10


With this data on Sheet3 in the range A2:F2

001...1/8/08...1360-1...1st...100...500


Enter this formula on Sheet3 G2:

=SUMPRODUCT(--(Sheet2!A$2:A$8=C2),--(Sheet2!B$2:B$8=D2),--(Sheet2!C$2:C$8=E2),--(Sheet2!C$2:C$8<=F2),Sheet2!D$2:D$8)


--
Biff
Microsoft Excel MVP


"Cam" wrote in message
...
Hello,

I have an Excel to track performance. Sheet1 is performance table where
user
input their ID, date, part#, side, start sequence & stop sequence
daily.
Then
on a reference sheet2 with field: part#, side, sequence#, time
(calculated).

What I would like to calculate is look at the start & stop sequence
based
on
the part# & side then calculate how long (time) the operator spend on
the
job
(part#). Thanks

Example:
Sheet1 - User input data
ID date part# side start seq stop seq
001 1/8/08 1360-1 1st 100 500
002 1/10/08 1560-3 2nd 600 1000

Sheet2 - Reference
part# side start seq time (min)
1360-1 1st 100 5
1360-1 1st 200 10
1360-1 1st 300 10
1360-1 1st 400 30
1360-1 1st 500 15
1360-1 1st 600 60
1560-3 2nd 100 10
..........

Result
Sheet3
ID date part# side start seq stop seq Total
time
(calculated)
001 1/8/08 1360-1 1st 100 500 70

How should i go about linking the two sheets so it will calculate the
time
based on when he start the sequence to when he stop the sequence?
Thanks







  #5   Report Post  
Posted to microsoft.public.excel.misc
Cam Cam is offline
external usenet poster
 
Posts: 165
Default Help with calculating time

Valko,

I got the results, but the calculation is off little. The calculated cell
are in column G of sheet1. The last info is what it should be calculated
values. For example, sheet1 row 2 should be equal 55 cause it see start (seq)
to stop (seq) is 100 to 400 so it should sum all value from row 2 to 5
(5+10+10+30) in column D from Ref sheet.

Sheet1 - Data sheet
A B C D E F G
ID date part# side start stop Cal Time Should be:
1 1/8/08 1360-1 1st 100 400 50 55 (5+10+10+30)
2 1/10/08 1360-1 1st 300 500 125 65 (10+30+25)
3 1/10/08 1360-1 1st 100 600 135 140 (5+10+10+30+25+60)

Ref - Ref sheet
A B C D
part# side seq time
1360-1 1st 100 5
1360-1 1st 200 10
1360-1 1st 300 10
1360-1 1st 400 30
1360-1 1st 500 25
1360-1 1st 600 60
1560-3 2nd 100 10



"T. Valko" wrote:

You'll have to post a sample of data and show where the formula is returning
a 0.

--
Biff
Microsoft Excel MVP


"Cam" wrote in message
...
Hi Valko,

I tried the formula you suggested, but it returns "0" where it shouldn't
be.


"T. Valko" wrote:

Try this:

With this data on Sheet2 in the range A2:D8

1360-1...1st...100...5
1360-1...1st...200...10
1360-1...1st...300...10
1360-1...1st...400...30
1360-1...1st...500...15
1360-1...1st...600...60
1560-3...2nd...100...10

With this data on Sheet3 in the range A2:F2

001...1/8/08...1360-1...1st...100...500

Enter this formula on Sheet3 G2:

=SUMPRODUCT(--(Sheet2!A$2:A$8=C2),--(Sheet2!B$2:B$8=D2),--(Sheet2!C$2:C$8=E2),--(Sheet2!C$2:C$8<=F2),Sheet2!D$2:D$8)


--
Biff
Microsoft Excel MVP


"Cam" wrote in message
...
Hello,

I have an Excel to track performance. Sheet1 is performance table where
user
input their ID, date, part#, side, start sequence & stop sequence
daily.
Then
on a reference sheet2 with field: part#, side, sequence#, time
(calculated).

What I would like to calculate is look at the start & stop sequence
based
on
the part# & side then calculate how long (time) the operator spend on
the
job
(part#). Thanks

Example:
Sheet1 - User input data
ID date part# side start seq stop seq
001 1/8/08 1360-1 1st 100 500
002 1/10/08 1560-3 2nd 600 1000

Sheet2 - Reference
part# side start seq time (min)
1360-1 1st 100 5
1360-1 1st 200 10
1360-1 1st 300 10
1360-1 1st 400 30
1360-1 1st 500 15
1360-1 1st 600 60
1560-3 2nd 100 10
..........

Result
Sheet3
ID date part# side start seq stop seq Total
time
(calculated)
001 1/8/08 1360-1 1st 100 500 70

How should i go about linking the two sheets so it will calculate the
time
based on when he start the sequence to when he stop the sequence?
Thanks










  #6   Report Post  
Posted to microsoft.public.excel.misc
Cam Cam is offline
external usenet poster
 
Posts: 165
Default Help with calculating time

Valko,

Also forgot to mentioned that column G in sheet1 result is the calculated
values based on your sugguested formula. For cell G2 in sheet1.
=SUMPRODUCT(--(Ref!A$2:A$8=C2),--(Ref!B$2:B$8=D2),--(Ref!C$2:C$8=E2),--(Ref!C$2:C$8<=F2),Ref!D$2:D$8)


"Cam" wrote:

Valko,

I got the results, but the calculation is off little. The calculated cell
are in column G of sheet1. The last info is what it should be calculated
values. For example, sheet1 row 2 should be equal 55 cause it see start (seq)
to stop (seq) is 100 to 400 so it should sum all value from row 2 to 5
(5+10+10+30) in column D from Ref sheet.

Sheet1 - Data sheet
A B C D E F G
ID date part# side start stop Cal Time Should be:
1 1/8/08 1360-1 1st 100 400 50 55 (5+10+10+30)
2 1/10/08 1360-1 1st 300 500 125 65 (10+30+25)
3 1/10/08 1360-1 1st 100 600 135 140 (5+10+10+30+25+60)

Ref - Ref sheet
A B C D
part# side seq time
1360-1 1st 100 5
1360-1 1st 200 10
1360-1 1st 300 10
1360-1 1st 400 30
1360-1 1st 500 25
1360-1 1st 600 60
1560-3 2nd 100 10



"T. Valko" wrote:

You'll have to post a sample of data and show where the formula is returning
a 0.

--
Biff
Microsoft Excel MVP


"Cam" wrote in message
...
Hi Valko,

I tried the formula you suggested, but it returns "0" where it shouldn't
be.


"T. Valko" wrote:

Try this:

With this data on Sheet2 in the range A2:D8

1360-1...1st...100...5
1360-1...1st...200...10
1360-1...1st...300...10
1360-1...1st...400...30
1360-1...1st...500...15
1360-1...1st...600...60
1560-3...2nd...100...10

With this data on Sheet3 in the range A2:F2

001...1/8/08...1360-1...1st...100...500

Enter this formula on Sheet3 G2:

=SUMPRODUCT(--(Sheet2!A$2:A$8=C2),--(Sheet2!B$2:B$8=D2),--(Sheet2!C$2:C$8=E2),--(Sheet2!C$2:C$8<=F2),Sheet2!D$2:D$8)


--
Biff
Microsoft Excel MVP


"Cam" wrote in message
...
Hello,

I have an Excel to track performance. Sheet1 is performance table where
user
input their ID, date, part#, side, start sequence & stop sequence
daily.
Then
on a reference sheet2 with field: part#, side, sequence#, time
(calculated).

What I would like to calculate is look at the start & stop sequence
based
on
the part# & side then calculate how long (time) the operator spend on
the
job
(part#). Thanks

Example:
Sheet1 - User input data
ID date part# side start seq stop seq
001 1/8/08 1360-1 1st 100 500
002 1/10/08 1560-3 2nd 600 1000

Sheet2 - Reference
part# side start seq time (min)
1360-1 1st 100 5
1360-1 1st 200 10
1360-1 1st 300 10
1360-1 1st 400 30
1360-1 1st 500 15
1360-1 1st 600 60
1560-3 2nd 100 10
..........

Result
Sheet3
ID date part# side start seq stop seq Total
time
(calculated)
001 1/8/08 1360-1 1st 100 500 70

How should i go about linking the two sheets so it will calculate the
time
based on when he start the sequence to when he stop the sequence?
Thanks








  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Help with calculating time

See your other post where I included a screencap.

In my test file I'm getting the *correct* results:

Should be:
55 (5+10+10+30)
65 (10+30+25)
140 (5+10+10+30+25+60)



--
Biff
Microsoft Excel MVP


"Cam" wrote in message
...
Valko,

I got the results, but the calculation is off little. The calculated cell
are in column G of sheet1. The last info is what it should be calculated
values. For example, sheet1 row 2 should be equal 55 cause it see start
(seq)
to stop (seq) is 100 to 400 so it should sum all value from row 2 to 5
(5+10+10+30) in column D from Ref sheet.

Sheet1 - Data sheet
A B C D E F G
ID date part# side start stop Cal Time Should be:
1 1/8/08 1360-1 1st 100 400 50 55 (5+10+10+30)
2 1/10/08 1360-1 1st 300 500 125 65 (10+30+25)
3 1/10/08 1360-1 1st 100 600 135 140
(5+10+10+30+25+60)

Ref - Ref sheet
A B C D
part# side seq time
1360-1 1st 100 5
1360-1 1st 200 10
1360-1 1st 300 10
1360-1 1st 400 30
1360-1 1st 500 25
1360-1 1st 600 60
1560-3 2nd 100 10



"T. Valko" wrote:

You'll have to post a sample of data and show where the formula is
returning
a 0.

--
Biff
Microsoft Excel MVP


"Cam" wrote in message
...
Hi Valko,

I tried the formula you suggested, but it returns "0" where it
shouldn't
be.


"T. Valko" wrote:

Try this:

With this data on Sheet2 in the range A2:D8

1360-1...1st...100...5
1360-1...1st...200...10
1360-1...1st...300...10
1360-1...1st...400...30
1360-1...1st...500...15
1360-1...1st...600...60
1560-3...2nd...100...10

With this data on Sheet3 in the range A2:F2

001...1/8/08...1360-1...1st...100...500

Enter this formula on Sheet3 G2:

=SUMPRODUCT(--(Sheet2!A$2:A$8=C2),--(Sheet2!B$2:B$8=D2),--(Sheet2!C$2:C$8=E2),--(Sheet2!C$2:C$8<=F2),Sheet2!D$2:D$8)


--
Biff
Microsoft Excel MVP


"Cam" wrote in message
...
Hello,

I have an Excel to track performance. Sheet1 is performance table
where
user
input their ID, date, part#, side, start sequence & stop sequence
daily.
Then
on a reference sheet2 with field: part#, side, sequence#, time
(calculated).

What I would like to calculate is look at the start & stop sequence
based
on
the part# & side then calculate how long (time) the operator spend
on
the
job
(part#). Thanks

Example:
Sheet1 - User input data
ID date part# side start seq stop seq
001 1/8/08 1360-1 1st 100 500
002 1/10/08 1560-3 2nd 600 1000

Sheet2 - Reference
part# side start seq time (min)
1360-1 1st 100 5
1360-1 1st 200 10
1360-1 1st 300 10
1360-1 1st 400 30
1360-1 1st 500 15
1360-1 1st 600 60
1560-3 2nd 100 10
..........

Result
Sheet3
ID date part# side start seq stop seq Total
time
(calculated)
001 1/8/08 1360-1 1st 100 500 70

How should i go about linking the two sheets so it will calculate
the
time
based on when he start the sequence to when he stop the sequence?
Thanks










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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating Regular time, overtime and double time Brian Smith Excel Worksheet Functions 5 November 9th 07 10:32 PM
Calculating time and negative time Josh UK Excel Worksheet Functions 3 February 8th 07 04:48 PM
calculating timesheet, time-in/time-out = total hours & minutes, . Steve Lindsay Excel Worksheet Functions 13 November 8th 06 03:45 PM
Calculating days & time left from start date/time to end date/time marie Excel Worksheet Functions 7 December 7th 05 02:36 PM
Calculating effective time from start/end date+time Stefan Stridh Excel Worksheet Functions 8 November 27th 04 03:50 PM


All times are GMT +1. The time now is 06:39 PM.

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"