A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Time formula



 
 
Thread Tools Display Modes
  #1  
Old May 18th, 2010, 04:41 PM posted to microsoft.public.excel.worksheet.functions
dottie
external usenet poster
 
Posts: 61
Default Time formula

Working with a spreadsheet (Excel 2007) that has a start time, end time and
time
Start Stop time
14:00 15:18 1:18
Would like to convert time to minutes and add 15 minutes to the answer. I
have set up a custom format for minutes [m] but can't get the +15. Any help
you can give me will be appreaciated.

  #2  
Old May 18th, 2010, 04:57 PM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
Default Time formula

Hi,

Try this

=(B2-A2)+TIME(0,15,0)
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Dottie" wrote:

Working with a spreadsheet (Excel 2007) that has a start time, end time and
time
Start Stop time
14:00 15:18 1:18
Would like to convert time to minutes and add 15 minutes to the answer. I
have set up a custom format for minutes [m] but can't get the +15. Any help
you can give me will be appreaciated.

  #3  
Old May 18th, 2010, 05:21 PM posted to microsoft.public.excel.worksheet.functions
dgnamu
external usenet poster
 
Posts: 1
Default Questions


hi,

can someone helps me to solve this problem?

name no books read month
nasir 1 12-jan-2010
adam 2 12-jan-2010
fatima 3 14-jan-2010
nasir 2 2-feb-2010
adam 1 2-feb-2010
fatima 1 3-feb-2010
nasir 1 7-mar-2010
adam 4 16-mar-2010
fatima 1 21-mar-2010
nasir 1 17-apr-2010
adam 4 18-apr-2010
fatima 1 24-apr-2010

now, what i'm doing is i'm just selecting the specific month and do the
counting. The formula is Sum(B2:B4) for january. this come to a problem if
the array is not sort accordingly.

what i want is, i'm trying to get the total no of book read in a specific
month like jan or mar. but the formula should cover from jan-apr. please
someone helps me to generate the formula.


  #4  
Old May 18th, 2010, 06:02 PM posted to microsoft.public.excel.worksheet.functions
Luke M[_4_]
external usenet poster
 
Posts: 451
Default Questions

=SUMPRODUCT(--(MONTH(C2:C100)=1),--(MONTH(C2:C100=2),B2:B100)

Where 1 represents Jan, and 2 represents February. If you want only 1 months
data, change btoh of these numbers to the same value.

--
Best Regards,

Luke M
"dgnamu" wrote in message
...

hi,

can someone helps me to solve this problem?

name no books read month
nasir 1 12-jan-2010
adam 2 12-jan-2010
fatima 3 14-jan-2010
nasir 2 2-feb-2010
adam 1 2-feb-2010
fatima 1 3-feb-2010
nasir 1 7-mar-2010
adam 4 16-mar-2010
fatima 1 21-mar-2010
nasir 1 17-apr-2010
adam 4 18-apr-2010
fatima 1 24-apr-2010

now, what i'm doing is i'm just selecting the specific month and do the
counting. The formula is Sum(B2:B4) for january. this come to a problem if
the array is not sort accordingly.

what i want is, i'm trying to get the total no of book read in a specific
month like jan or mar. but the formula should cover from jan-apr. please
someone helps me to generate the formula.




  #5  
Old May 18th, 2010, 07:06 PM posted to microsoft.public.excel.worksheet.functions
dottie
external usenet poster
 
Posts: 61
Default Time formula

Mike, thank you it works great. Now they want to convert the answer to
minutes. I tried add [m] to formatting but get a really weird answer.

Again, thank you in advance for your help.

"Mike H" wrote:

Hi,

Try this

=(B2-A2)+TIME(0,15,0)
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Dottie" wrote:

Working with a spreadsheet (Excel 2007) that has a start time, end time and
time
Start Stop time
14:00 15:18 1:18
Would like to convert time to minutes and add 15 minutes to the answer. I
have set up a custom format for minutes [m] but can't get the +15. Any help
you can give me will be appreaciated.

  #6  
Old May 18th, 2010, 07:12 PM posted to microsoft.public.excel.worksheet.functions
Luke M[_4_]
external usenet poster
 
Posts: 451
Default Time formula

If you really just want a single digit answer:
=(B2-H2)*24*60+15

Will convert the normal decimal value of time into a integer representing
minutes.

--
Best Regards,

Luke M
"Dottie" wrote in message
...
Mike, thank you it works great. Now they want to convert the answer to
minutes. I tried add [m] to formatting but get a really weird answer.

Again, thank you in advance for your help.

"Mike H" wrote:

Hi,

Try this

=(B2-A2)+TIME(0,15,0)
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Dottie" wrote:

Working with a spreadsheet (Excel 2007) that has a start time, end time
and
time
Start Stop time
14:00 15:18 1:18
Would like to convert time to minutes and add 15 minutes to the answer.
I
have set up a custom format for minutes [m] but can't get the +15. Any
help
you can give me will be appreaciated.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.