HELP with function, possibly code!

G

Guest

I have this column AU5 through AU35 which contain time values. What I'd like
to do is add these values together. Is this possible? I also need to acount
for cells which may or may not contain any value at all. Is this possible?
ALL THE RESULTING VALUES I'VE GOTTEN THUS FAR ARE THE WRONG ONES! 00:00 is
really 12 mid-night, I'm not sure if we take those as 12 mid-night or just a
value. Anyway, can anyone out there assist? Thanks,

02:00
00:20
02:05
00:20
00:25
00:00
00:30
01:38

01:57
01:45
00:20

00:40
00:20
01:05
03:00
00:05
00:00
00:00
01:00
00:45
 
F

Fredrik Wahlgren

Jay said:
I have this column AU5 through AU35 which contain time values. What I'd like
to do is add these values together. Is this possible? I also need to acount
for cells which may or may not contain any value at all. Is this possible?
ALL THE RESULTING VALUES I'VE GOTTEN THUS FAR ARE THE WRONG ONES! 00:00 is
really 12 mid-night, I'm not sure if we take those as 12 mid-night or just a
value. Anyway, can anyone out there assist? Thanks,

02:00
00:20
02:05
00:20
00:25
00:00
00:30
01:38

01:57
01:45
00:20

00:40
00:20
01:05
03:00
00:05
00:00
00:00
01:00
00:45

Can you explain the rules you want to use. You mst tell what you expect and
how you came up with this value.If the list consisted of a single value like
00:00, would you expect the sum to be 12? What about the sum of 00:00 and
00:00 or 00:00 and 00:20 ?

/Fredrik
 
R

Ron Rosenfeld

I have this column AU5 through AU35 which contain time values. What I'd like
to do is add these values together. Is this possible? I also need to acount
for cells which may or may not contain any value at all. Is this possible?
ALL THE RESULTING VALUES I'VE GOTTEN THUS FAR ARE THE WRONG ONES! 00:00 is
really 12 mid-night, I'm not sure if we take those as 12 mid-night or just a
value. Anyway, can anyone out there assist? Thanks,

02:00
00:20
02:05
00:20
00:25
00:00
00:30
01:38

01:57
01:45
00:20

00:40
00:20
01:05
03:00
00:05
00:00
00:00
01:00
00:45

=SUM(AU5:AU35)

Format the result as

Format/Cells/Number/Custom Type: [h]:mm

I get 18:15 for your values above.
--ron
 
G

Guest

Fredrik:

Yes, the 00:00 would be 12 and the 00:20 would be 12:20 (12 hrs and 20
mmins). Hope this helps. Looking forward to your solution.

Thanks,
 
R

Ron Rosenfeld

Yes, the 00:00 would be 12 and the 00:20 would be 12:20 (12 hrs and 20
mmins). Hope this helps. Looking forward to your solution.

Thanks,

If 00:00 = 12; what does 12:00 equal?


--ron
 
G

Guest

It also equals 12. These are periods of time (durations from one to another,
Beginning to End) for a production process. They folks I work for decided to
use Excel and Excel does not seem to like these time values much. HELP!

Thanks again.
 
F

Fredrik Wahlgren

Jay said:
Fredrik:

Yes, the 00:00 would be 12 and the 00:20 would be 12:20 (12 hrs and 20
mmins). Hope this helps. Looking forward to your solution.

Thanks,

What is the total for the time values that you have provided? I can make a
UDF but I want something to compare with.
/Fredrik
 
R

Ron Rosenfeld

It also equals 12. These are periods of time (durations from one to another,
Beginning to End) for a production process. They folks I work for decided to
use Excel and Excel does not seem to like these time values much. HELP!

Thanks again.

I think we need to know how these time periods are being entered and computed.

What you want to do seems simple enough, but if 00:00 represents a period of
time in Excel, it would ordinarily represent a multiple of 24 hours (including
0). If, in your template, it is representative of only 12 hours, there is
something going on that I don't understand.

How do you represent a production process that lasts more than 12 hours?

If you are entering start and stop times, or start and stop dates and times, to
compute and sum up a set of time periods is simple. I suspect you are having a
problem with either formatting, or with data entry.



--ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top