Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default absolute time calculation - struggling

Okay, excel gurus Im wondering if theres any way for excel 02 to return
conditional min and max values and then calculate the difference -- heres
what I have (a small sample of a much larger table imported from a SQL
database):

IRB delivered verdict difference
15781 ?? 26-Jan-06 38743
16746 18-Jan-06 18-Jan-06 0
17127 6-Feb-06 23-Feb-06 17
17127 9-Mar-06 7-Apr-06 29
17127 17-Apr-06 18-Apr-06 1
17692 28-Mar-06 2-May-06 35
18240 15-Feb-06 23-Feb-06 8
18240 13-Mar-06 30-Mar-06 17
18468 8-Feb-06 23-Feb-06 15
18468 4-Oct-06 24-Oct-06 20

Im trying to come up with a way to extract the earliest date in the
delivered column and the latest date in the verdict column for any given
IRB number. If the same number has multiple entries (rows), I then need to
know the absolute earliest and latest dates (and the absolute difference)
over all relevant rows.

From there, I think i can calculate all sorts of useful things, and make
pretty charts and graphs.

Any ideas?

There can be an unlimited number of rows with the same IRB number, if it
matters.

Also, I will eventually be sorting the difference into 15-day sections,
which I'm currently doing with the following kludgy formula and a series of
"countif"s:
=IF(C:C<=15,"<15",(IF(C:C<=30,"<30",(IF(C:C<=45,"< 45",(IF(C:C<=60,"<60","60")))))))

elegant, it's not; suggestions for this part would be most helpful, too....

thanks in advance.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 329
Default absolute time calculation - struggling

Hi Trevor,

Assuming your data are in columns A2:C11, try the following array formula in
D2:
=MAX(IF(A$2:A$11=A2,C$2:C$11))-MIN(IF(A$2:A$11=A2,B$2:B$11))
and copy down as far as needed. Adjust to suit your actual ranges.

Note that, for a repeated IRB#, the same result will appear on all rows for
that IRB#.

Cheers

--
macropod
[MVP - Microsoft Word]
PS: For a large worksheet, expect a severe performance hit.

"trevoryx" wrote in message
...
Okay, excel gurus Im wondering if theres any way for excel 02 to

return
conditional min and max values and then calculate the difference --

heres
what I have (a small sample of a much larger table imported from a SQL
database):

IRB delivered verdict difference
15781 ?? 26-Jan-06 38743
16746 18-Jan-06 18-Jan-06 0
17127 6-Feb-06 23-Feb-06 17
17127 9-Mar-06 7-Apr-06 29
17127 17-Apr-06 18-Apr-06 1
17692 28-Mar-06 2-May-06 35
18240 15-Feb-06 23-Feb-06 8
18240 13-Mar-06 30-Mar-06 17
18468 8-Feb-06 23-Feb-06 15
18468 4-Oct-06 24-Oct-06 20

Im trying to come up with a way to extract the earliest date in the
delivered column and the latest date in the verdict column for

any given
IRB number. If the same number has multiple entries (rows), I then need

to
know the absolute earliest and latest dates (and the absolute difference)
over all relevant rows.

From there, I think i can calculate all sorts of useful things, and make
pretty charts and graphs.

Any ideas?

There can be an unlimited number of rows with the same IRB number, if it
matters.

Also, I will eventually be sorting the difference into 15-day sections,
which I'm currently doing with the following kludgy formula and a series

of
"countif"s:

=IF(C:C<=15,"<15",(IF(C:C<=30,"<30",(IF(C:C<=45,"< 45",(IF(C:C<=60,"<60","60
")))))))

elegant, it's not; suggestions for this part would be most helpful,

too....

thanks in advance.




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default absolute time calculation - struggling

Thank you - that seems to work to get the numbers, but do you know of any way
to clean up the repeated values?

"macropod" wrote:

Hi Trevor,

Assuming your data are in columns A2:C11, try the following array formula in
D2:
=MAX(IF(A$2:A$11=A2,C$2:C$11))-MIN(IF(A$2:A$11=A2,B$2:B$11))
and copy down as far as needed. Adjust to suit your actual ranges.

Note that, for a repeated IRB#, the same result will appear on all rows for
that IRB#.

Cheers

--
macropod
[MVP - Microsoft Word]
PS: For a large worksheet, expect a severe performance hit.

"trevoryx" wrote in message
...
Okay, excel gurus â Iâm wondering if thereâs any way for excel 02 to

return
conditional min and max values and then calculate the difference --

hereâs
what I have (a small sample of a much larger table imported from a SQL
database):

IRB delivered verdict difference
15781 ?? 26-Jan-06 38743
16746 18-Jan-06 18-Jan-06 0
17127 6-Feb-06 23-Feb-06 17
17127 9-Mar-06 7-Apr-06 29
17127 17-Apr-06 18-Apr-06 1
17692 28-Mar-06 2-May-06 35
18240 15-Feb-06 23-Feb-06 8
18240 13-Mar-06 30-Mar-06 17
18468 8-Feb-06 23-Feb-06 15
18468 4-Oct-06 24-Oct-06 20

Iâm trying to come up with a way to extract the earliest date in the
âœdelivered❠column and the latest date in the âœverdict❠column for

any given
IRB number. If the same number has multiple entries (rows), I then need

to
know the absolute earliest and latest dates (and the absolute difference)
over all relevant rows.

From there, I think i can calculate all sorts of useful things, and make
pretty charts and graphs.

Any ideas?

There can be an unlimited number of rows with the same IRB number, if it
matters.

Also, I will eventually be sorting the difference into 15-day sections,
which I'm currently doing with the following kludgy formula and a series

of
"countif"s:

=IF(C:C<=15,"<15",(IF(C:C<=30,"<30",(IF(C:C<=45,"< 45",(IF(C:C<=60,"<60","60
")))))))

elegant, it's not; suggestions for this part would be most helpful,

too....

thanks in advance.





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 329
Default absolute time calculation - struggling

Hi Trevor,

To do that, you could use the following modification of the array formula :

=IF(COUNTIF(A$1:A2,A2)1,"",MAX(IF(A$2:A$11=A2,C$2 :C$11))-MIN(IF(A$2:A$11=A2
,B$2:B$11)))

With this, the result will appear against the the first IRB# row only.

Cheers

--
macropod
[MVP - Microsoft Word]


"trevoryx" wrote in message
...
Thank you - that seems to work to get the numbers, but do you know of any

way
to clean up the repeated values?

"macropod" wrote:

Hi Trevor,

Assuming your data are in columns A2:C11, try the following array

formula in
D2:
=MAX(IF(A$2:A$11=A2,C$2:C$11))-MIN(IF(A$2:A$11=A2,B$2:B$11))
and copy down as far as needed. Adjust to suit your actual ranges.

Note that, for a repeated IRB#, the same result will appear on all rows

for
that IRB#.

Cheers

--
macropod
[MVP - Microsoft Word]
PS: For a large worksheet, expect a severe performance hit.

"trevoryx" wrote in message
...
Okay, excel gurus â Iâm wondering if thereâs any

way for excel 02 to
return
conditional min and max values and then calculate the difference --

hereâs
what I have (a small sample of a much larger table imported from a SQL
database):

IRB delivered verdict difference
15781 ?? 26-Jan-06 38743
16746 18-Jan-06 18-Jan-06 0
17127 6-Feb-06 23-Feb-06 17
17127 9-Mar-06 7-Apr-06 29
17127 17-Apr-06 18-Apr-06 1
17692 28-Mar-06 2-May-06 35
18240 15-Feb-06 23-Feb-06 8
18240 13-Mar-06 30-Mar-06 17
18468 8-Feb-06 23-Feb-06 15
18468 4-Oct-06 24-Oct-06 20

Iâm trying to come up with a way to extract the earliest date

in the
âœdelivered❠column and the latest date in the â

verdict❠column for
any given
IRB number. If the same number has multiple entries (rows), I then

need
to
know the absolute earliest and latest dates (and the absolute

difference)
over all relevant rows.

From there, I think i can calculate all sorts of useful things, and

make
pretty charts and graphs.

Any ideas?

There can be an unlimited number of rows with the same IRB number, if

it
matters.

Also, I will eventually be sorting the difference into 15-day

sections,
which I'm currently doing with the following kludgy formula and a

series
of
"countif"s:


=IF(C:C<=15,"<15",(IF(C:C<=30,"<30",(IF(C:C<=45,"< 45",(IF(C:C<=60,"<60","60
")))))))

elegant, it's not; suggestions for this part would be most helpful,

too....

thanks in advance.







  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 329
Default absolute time calculation - struggling

Hi Trevor,

Following on from the modified formula, you could use something like:
=IF(D2="","",IF(D2=60,"=60","<"&INT(D2/15+1)*15))
for the 15-day segmentation.

Cheers
--
macropod
[MVP - Microsoft Word]


"macropod" wrote in message
...
Hi Trevor,

To do that, you could use the following modification of the array formula

:


=IF(COUNTIF(A$1:A2,A2)1,"",MAX(IF(A$2:A$11=A2,C$2 :C$11))-MIN(IF(A$2:A$11=A2
,B$2:B$11)))

With this, the result will appear against the the first IRB# row only.

Cheers

--
macropod
[MVP - Microsoft Word]


"trevoryx" wrote in message
...
Thank you - that seems to work to get the numbers, but do you know of

any
way
to clean up the repeated values?

"macropod" wrote:

Hi Trevor,

Assuming your data are in columns A2:C11, try the following array

formula in
D2:
=MAX(IF(A$2:A$11=A2,C$2:C$11))-MIN(IF(A$2:A$11=A2,B$2:B$11))
and copy down as far as needed. Adjust to suit your actual ranges.

Note that, for a repeated IRB#, the same result will appear on all

rows
for
that IRB#.

Cheers

--
macropod
[MVP - Microsoft Word]
PS: For a large worksheet, expect a severe performance hit.

"trevoryx" wrote in message
...
Okay, excel gurus â Iâm wondering if thereâs

any
way for excel 02 to
return
conditional min and max values and then calculate the difference --
hereâs
what I have (a small sample of a much larger table imported from a

SQL
database):

IRB delivered verdict difference
15781 ?? 26-Jan-06 38743
16746 18-Jan-06 18-Jan-06 0
17127 6-Feb-06 23-Feb-06 17
17127 9-Mar-06 7-Apr-06 29
17127 17-Apr-06 18-Apr-06 1
17692 28-Mar-06 2-May-06 35
18240 15-Feb-06 23-Feb-06 8
18240 13-Mar-06 30-Mar-06 17
18468 8-Feb-06 23-Feb-06 15
18468 4-Oct-06 24-Oct-06 20

Iâm trying to come up with a way to extract the earliest date

in the
âœdelivered❠column and the latest date in the â

verdict❠column for
any given
IRB number. If the same number has multiple entries (rows), I then

need
to
know the absolute earliest and latest dates (and the absolute

difference)
over all relevant rows.

From there, I think i can calculate all sorts of useful things, and

make
pretty charts and graphs.

Any ideas?

There can be an unlimited number of rows with the same IRB number,

if
it
matters.

Also, I will eventually be sorting the difference into 15-day

sections,
which I'm currently doing with the following kludgy formula and a

series
of
"countif"s:



=IF(C:C<=15,"<15",(IF(C:C<=30,"<30",(IF(C:C<=45,"< 45",(IF(C:C<=60,"<60","60
")))))))

elegant, it's not; suggestions for this part would be most helpful,
too....

thanks in advance.











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
Time format - problems with calculation Kathrine Excel Discussion (Misc queries) 1 December 5th 06 02:20 PM
time calculation using IF function Polly Excel Worksheet Functions 4 December 1st 06 05:08 AM
Time calculation for attendance, tardy/late to work? Hanr3 Excel Discussion (Misc queries) 6 May 12th 06 10:07 PM
How do I calculation time in excel in 24 hour method Lloyd Excel Discussion (Misc queries) 7 July 18th 05 08:43 AM
Time calculation. shital shah Excel Worksheet Functions 2 January 20th 05 11:25 AM


All times are GMT +1. The time now is 10:57 AM.

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"