Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Formula for calculation


What formula could I use to calculate total minutes then populate it
in a column for a value in column like 11:40pm -- 12:20am

the sheet may look

A B (total minutes)
11:40pm -- 12:20am {auto cal and population}

I can re-arrange data to make it easier for Excel to look like this
(using 24hour schema)

A B C (total
minutes)
R1 11:40 12:20 {auto cal and population}

The calculation formula or expression in C1 would have to be something
like ((The first element of B1, that is, 12) - (the first element of
A1, that is, 11);
then, * 60) - (the second element of A1 - the second element of B1,
that is, 20)
= 40

I'm not Excel guru, can you parse/extract partial data set from a cell
like above?

TIA.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Formula for calculation

=MOD(B1-A1,1)*24*60

should work for any period less than 24 hours. format the cell as general
to get the correct answer.

--
Regards,
Tom Ogilvy




" wrote:


What formula could I use to calculate total minutes then populate it
in a column for a value in column like 11:40pm -- 12:20am

the sheet may look

A B (total minutes)
11:40pm -- 12:20am {auto cal and population}

I can re-arrange data to make it easier for Excel to look like this
(using 24hour schema)

A B C (total
minutes)
R1 11:40 12:20 {auto cal and population}

The calculation formula or expression in C1 would have to be something
like ((The first element of B1, that is, 12) - (the first element of
A1, that is, 11);
then, * 60) - (the second element of A1 - the second element of B1,
that is, 20)
= 40

I'm not Excel guru, can you parse/extract partial data set from a cell
like above?

TIA.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Formula for calculation

Try this in C1,

=((HOUR(A1)+HOUR(B1))*60)+(MINUTE(A1)+MINUTE(B1))

Format as general.

Mike

" wrote:


What formula could I use to calculate total minutes then populate it
in a column for a value in column like 11:40pm -- 12:20am

the sheet may look

A B (total minutes)
11:40pm -- 12:20am {auto cal and population}

I can re-arrange data to make it easier for Excel to look like this
(using 24hour schema)

A B C (total
minutes)
R1 11:40 12:20 {auto cal and population}

The calculation formula or expression in C1 would have to be something
like ((The first element of B1, that is, 12) - (the first element of
A1, that is, 11);
then, * 60) - (the second element of A1 - the second element of B1,
that is, 20)
= 40

I'm not Excel guru, can you parse/extract partial data set from a cell
like above?

TIA.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Formula for calculation

On Jun 13, 12:36 pm, Mike H wrote:
Try this in C1,

=((HOUR(A1)+HOUR(B1))*60)+(MINUTE(A1)+MINUTE(B1))

Format as general.

Mike



" wrote:

What formula could I use to calculate total minutes then populate it
in a column for a value in column like 11:40pm -- 12:20am


the sheet may look


A B (total minutes)
11:40pm -- 12:20am {auto cal and population}


I can re-arrange data to make it easier for Excel to look like this
(using 24hour schema)


A B C (total
minutes)
R1 11:40 12:20 {auto cal and population}


The calculation formula or expression in C1 would have to be something
like ((The first element of B1, that is, 12) - (the first element of
A1, that is, 11);
then, * 60) - (the second element of A1 - the second element of B1,
that is, 20)
= 40


I'm not Excel guru, can you parse/extract partial data set from a cell
like above?


TIA.- Hide quoted text -


- Show quoted text -


Mike, sorry, yours doesn't, maybe I did not do something right (I
followed your suggested format as well).

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Formula for calculation

On Jun 13, 12:15 pm, wrote:
What formula could I use to calculate total minutes then populate it
in a column for a value in column like 11:40pm -- 12:20am

the sheet may look

A B (total minutes)
11:40pm -- 12:20am {auto cal and population}

I can re-arrange data to make it easier for Excel to look like this
(using 24hour schema)

A B C (total
minutes)
R1 11:40 12:20 {auto cal and population}

The calculation formula or expression in C1 would have to be something
like ((The first element of B1, that is, 12) - (the first element of
A1, that is, 11);
then, * 60) - (the second element of A1 - the second element of B1,
that is, 20)
= 40

I'm not Excel guru, can you parse/extract partial data set from a cell
like above?

TIA.


Many thanks, your solution works like a cham.



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
Formula Calculation Harvey Gersin New Users to Excel 1 September 16th 08 09:29 PM
formula calculation Excel GuRu Excel Discussion (Misc queries) 4 March 21st 06 01:56 PM
calculation in an if formula Sharon L. Excel Worksheet Functions 2 January 21st 06 06:17 PM
base formula calculation on whether different cell has formula Bill Kuunders Excel Programming 0 June 21st 05 09:36 PM
base formula calculation on whether different cell has formula rcmodelr Excel Programming 3 June 19th 05 11:35 PM


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