#1   Report Post  
Micos3
 
Posts: n/a
Default Count time table

What i want to do is dificult to explain so i'll try making a scheme.

A B C D M N
1 9:30 12:00 Ponta 2:30 8:00 16:00
2 21:00 0:00 Cheias 0:00
3 07:00 09:30 Cheias 1:30
4 0:00 07:00 Vazias 0:00

I table ABC i count many periods of the day in wich i call in cell C the
name i want to other mission, in cell D i count the hours that period M:N
shows that are in period A:B.
I've made this formula but isn't working well, and also i'm having trouble
in counting 0:00 (24:00), example of line 1.

=IF($A1N1;0;IF(AND($A1$M1;$N$1=$B1);B1-A1;IF(AND($A1$M1;$N$1=<$B1;$A1$M1);N1-A1;IF(AND($A1<$M1;$N$1=$B1;B1M1);B1-M1;IF(B1<M1);0;)))))

Understand what i a'm trying to do?
tks
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Not exhaustively tested, but try this

=MAX(MIN(B1,$N$1)-MAX(A1,$M$1),0)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Micos3" wrote in message
...
What i want to do is dificult to explain so i'll try making a scheme.

A B C D M N
1 9:30 12:00 Ponta 2:30 8:00 16:00
2 21:00 0:00 Cheias 0:00
3 07:00 09:30 Cheias 1:30
4 0:00 07:00 Vazias 0:00

I table ABC i count many periods of the day in wich i call in cell C the
name i want to other mission, in cell D i count the hours that period M:N
shows that are in period A:B.
I've made this formula but isn't working well, and also i'm having trouble
in counting 0:00 (24:00), example of line 1.


=IF($A1N1;0;IF(AND($A1$M1;$N$1=$B1);B1-A1;IF(AND($A1$M1;$N$1=<$B1;$A1$M
1);N1-A1;IF(AND($A1<$M1;$N$1=$B1;B1M1);B1-M1;IF(B1<M1);0;)))))

Understand what i a'm trying to do?
tks



  #3   Report Post  
Micos3
 
Posts: n/a
Default

Now it detects the count but only some, i dont understand why...
And if i copy that formula to other cell changing to M2:N2 all cells become
####### and.........
It doesn't recognize 24h too because if i put 24: it appears inside that
cell this "01-01-1900 0:00:00"

since i've started to do this program this last error appeared allways but i
thought because of my newbieness, and it is.... but how to solve it? And the
rest?
tks

"Bob Phillips" escreveu:

Not exhaustively tested, but try this

=MAX(MIN(B1,$N$1)-MAX(A1,$M$1),0)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Micos3" wrote in message
...
What i want to do is dificult to explain so i'll try making a scheme.

A B C D M N
1 9:30 12:00 Ponta 2:30 8:00 16:00
2 21:00 0:00 Cheias 0:00
3 07:00 09:30 Cheias 1:30
4 0:00 07:00 Vazias 0:00

I table ABC i count many periods of the day in wich i call in cell C the
name i want to other mission, in cell D i count the hours that period M:N
shows that are in period A:B.
I've made this formula but isn't working well, and also i'm having trouble
in counting 0:00 (24:00), example of line 1.


=IF($A1N1;0;IF(AND($A1$M1;$N$1=$B1);B1-A1;IF(AND($A1$M1;$N$1=<$B1;$A1$M
1);N1-A1;IF(AND($A1<$M1;$N$1=$B1;B1M1);B1-M1;IF(B1<M1);0;)))))

Understand what i a'm trying to do?
tks




  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

give me an example that returns ####### , and one of the 24:00

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Micos3" wrote in message
...
Now it detects the count but only some, i dont understand why...
And if i copy that formula to other cell changing to M2:N2 all cells

become
####### and.........
It doesn't recognize 24h too because if i put 24: it appears inside that
cell this "01-01-1900 0:00:00"

since i've started to do this program this last error appeared allways but

i
thought because of my newbieness, and it is.... but how to solve it? And

the
rest?
tks

"Bob Phillips" escreveu:

Not exhaustively tested, but try this

=MAX(MIN(B1,$N$1)-MAX(A1,$M$1),0)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Micos3" wrote in message
...
What i want to do is dificult to explain so i'll try making a scheme.

A B C D M

N
1 9:30 12:00 Ponta 2:30 8:00 16:00
2 21:00 0:00 Cheias 0:00
3 07:00 09:30 Cheias 1:30
4 0:00 07:00 Vazias 0:00

I table ABC i count many periods of the day in wich i call in cell C

the
name i want to other mission, in cell D i count the hours that period

M:N
shows that are in period A:B.
I've made this formula but isn't working well, and also i'm having

trouble
in counting 0:00 (24:00), example of line 1.



=IF($A1N1;0;IF(AND($A1$M1;$N$1=$B1);B1-A1;IF(AND($A1$M1;$N$1=<$B1;$A1$M
1);N1-A1;IF(AND($A1<$M1;$N$1=$B1;B1M1);B1-M1;IF(B1<M1);0;)))))

Understand what i a'm trying to do?
tks






  #5   Report Post  
Micos3
 
Posts: n/a
Default

E F G
35 9:30 12:00 Ponta
36 18:30 21:00 Ponta
37 7:00 9:30 Cheias

Entrada SaÃ*da
Turno 1 8:00 16:00
Turno 2 16:00 0:00

2:30
################################################## ################################################## ################################################## ################################################## ################################################## #####
1:30

The fórmula that maked ### that u see is in a cell and is:
=max(min($F36;$N$22)-max(max($E36;$M$22);0)) and gives the upper aspect :O.


The next doubt, is better to say step by step, what hapenned:
I tested right now the cell that contains 0:00:00, the " means start" and
Enter", ok?
If i put in that cell "0:" it writes like "0:00:00", but if i write "24:"
or"24"
it writes 0:00 in cell but if u go to cell it is exactly like "01-01-1900
0:00:00", and the cell in program that needs that values doesn't recognize
anymore.

Weird no?

"Bob Phillips" escreveu:

give me an example that returns ####### , and one of the 24:00

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Micos3" wrote in message
...
Now it detects the count but only some, i dont understand why...
And if i copy that formula to other cell changing to M2:N2 all cells

become
####### and.........
It doesn't recognize 24h too because if i put 24: it appears inside that
cell this "01-01-1900 0:00:00"

since i've started to do this program this last error appeared allways but

i
thought because of my newbieness, and it is.... but how to solve it? And

the
rest?
tks

"Bob Phillips" escreveu:

Not exhaustively tested, but try this

=MAX(MIN(B1,$N$1)-MAX(A1,$M$1),0)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Micos3" wrote in message
...
What i want to do is dificult to explain so i'll try making a scheme.

A B C D M

N
1 9:30 12:00 Ponta 2:30 8:00 16:00
2 21:00 0:00 Cheias 0:00
3 07:00 09:30 Cheias 1:30
4 0:00 07:00 Vazias 0:00

I table ABC i count many periods of the day in wich i call in cell C

the
name i want to other mission, in cell D i count the hours that period

M:N
shows that are in period A:B.
I've made this formula but isn't working well, and also i'm having

trouble
in counting 0:00 (24:00), example of line 1.



=IF($A1N1;0;IF(AND($A1$M1;$N$1=$B1);B1-A1;IF(AND($A1$M1;$N$1=<$B1;$A1$M
1);N1-A1;IF(AND($A1<$M1;$N$1=$B1;B1M1);B1-M1;IF(B1<M1);0;)))))

Understand what i a'm trying to do?
tks








  #6   Report Post  
Micos3
 
Posts: n/a
Default

I noted a detail, when i write "24" it appears diferent "24-01-1900 0:00:00";
if i write "24:", it appears "01-01-1900 0:00:00";
In the 1º i'm changing the date?!?!?

I notest other detail, in previous post of mine:
i had 0:00 in the N22 and 8:00 in M22, they all ###################.



"Bob Phillips" escreveu:

give me an example that returns ####### , and one of the 24:00

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Micos3" wrote in message
...
Now it detects the count but only some, i dont understand why...
And if i copy that formula to other cell changing to M2:N2 all cells

become
####### and.........
It doesn't recognize 24h too because if i put 24: it appears inside that
cell this "01-01-1900 0:00:00"

since i've started to do this program this last error appeared allways but

i
thought because of my newbieness, and it is.... but how to solve it? And

the
rest?
tks

"Bob Phillips" escreveu:

Not exhaustively tested, but try this

=MAX(MIN(B1,$N$1)-MAX(A1,$M$1),0)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Micos3" wrote in message
...
What i want to do is dificult to explain so i'll try making a scheme.

A B C D M

N
1 9:30 12:00 Ponta 2:30 8:00 16:00
2 21:00 0:00 Cheias 0:00
3 07:00 09:30 Cheias 1:30
4 0:00 07:00 Vazias 0:00

I table ABC i count many periods of the day in wich i call in cell C

the
name i want to other mission, in cell D i count the hours that period

M:N
shows that are in period A:B.
I've made this formula but isn't working well, and also i'm having

trouble
in counting 0:00 (24:00), example of line 1.



=IF($A1N1;0;IF(AND($A1$M1;$N$1=$B1);B1-A1;IF(AND($A1$M1;$N$1=<$B1;$A1$M
1);N1-A1;IF(AND($A1<$M1;$N$1=$B1;B1M1);B1-M1;IF(B1<M1);0;)))))

Understand what i a'm trying to do?
tks






  #7   Report Post  
Micos3
 
Posts: n/a
Default

The ###### was solved, cos was one parentisis that was blowing all.
The problem of 24 or 0h i don't see solution for it.

tks

"Micos3" escreveu:

I noted a detail, when i write "24" it appears diferent "24-01-1900 0:00:00";
if i write "24:", it appears "01-01-1900 0:00:00";
In the 1º i'm changing the date?!?!?

I notest other detail, in previous post of mine:
i had 0:00 in the N22 and 8:00 in M22, they all ###################.



"Bob Phillips" escreveu:

give me an example that returns ####### , and one of the 24:00

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Micos3" wrote in message
...
Now it detects the count but only some, i dont understand why...
And if i copy that formula to other cell changing to M2:N2 all cells

become
####### and.........
It doesn't recognize 24h too because if i put 24: it appears inside that
cell this "01-01-1900 0:00:00"

since i've started to do this program this last error appeared allways but

i
thought because of my newbieness, and it is.... but how to solve it? And

the
rest?
tks

"Bob Phillips" escreveu:

Not exhaustively tested, but try this

=MAX(MIN(B1,$N$1)-MAX(A1,$M$1),0)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Micos3" wrote in message
...
What i want to do is dificult to explain so i'll try making a scheme.

A B C D M

N
1 9:30 12:00 Ponta 2:30 8:00 16:00
2 21:00 0:00 Cheias 0:00
3 07:00 09:30 Cheias 1:30
4 0:00 07:00 Vazias 0:00

I table ABC i count many periods of the day in wich i call in cell C

the
name i want to other mission, in cell D i count the hours that period

M:N
shows that are in period A:B.
I've made this formula but isn't working well, and also i'm having

trouble
in counting 0:00 (24:00), example of line 1.



=IF($A1N1;0;IF(AND($A1$M1;$N$1=$B1);B1-A1;IF(AND($A1$M1;$N$1=<$B1;$A1$M
1);N1-A1;IF(AND($A1<$M1;$N$1=$B1;B1M1);B1-M1;IF(B1<M1);0;)))))

Understand what i a'm trying to do?
tks






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
how can i secuire Sheet Same time Update the Pivot Table Michael H.M.Mikhail Excel Worksheet Functions 0 July 25th 05 08:18 AM
Change Data In Pivot Table John Calder New Users to Excel 1 July 7th 05 10:41 PM
Lookup Table Dilemma Karen Excel Worksheet Functions 2 June 10th 05 08:22 PM
unmet challenge boris Excel Worksheet Functions 2 March 16th 05 02:13 PM
Count Distinct Values by Group Using Pivot Table (NM) MCP Excel Worksheet Functions 3 February 11th 05 09:22 PM


All times are GMT +1. The time now is 09: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"