#1   Report Post  
Posted to microsoft.public.excel.misc
arslan
 
Posts: n/a
Default time formulate

correction for my problem...

A B C D
E
1 date working hours work.hors yor work.hours for work.hours
last 7 days last 30 days
for last year
2 12.20.05 08:15
3 01.01.06 08:00
4 03.25.06 07:55
5 04.15.06 08:45
How can i formulate each cell on column C,D, and E?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Domenic
 
Posts: n/a
Default time formulate

For the total hours in the last 7 days, try...

=SUMPRODUCT(--(SUBSTITUTE(A2:A5,".","/")+0TODAY()-7),B2:B5)

....and format the cell as follows...

Format Cells Number Custom Type: [h]:mm

If you change the format so that Column A contains true dates, for
example...

12/20/05
4/11/06
4/25/06
4/15/06

....you could use the following formula instead...

=SUMPRODUCT(--(A2:A5TODAY()-7),B2:B5)

Hope this helps!

In article ,
arslan wrote:

correction for my problem...

A B C D
E
1 date working hours work.hors yor work.hours for work.hours
last 7 days last 30 days
for last year
2 12.20.05 08:15
3 01.01.06 08:00
4 03.25.06 07:55
5 04.15.06 08:45
How can i formulate each cell on column C,D, and E?

  #3   Report Post  
Posted to microsoft.public.excel.misc
arslan
 
Posts: n/a
Default time formulate

:) thanks, Domenic...

"Domenic":

For the total hours in the last 7 days, try...

=SUMPRODUCT(--(SUBSTITUTE(A2:A5,".","/")+0TODAY()-7),B2:B5)

....and format the cell as follows...

Format Cells Number Custom Type: [h]:mm

If you change the format so that Column A contains true dates, for
example...

12/20/05
4/11/06
4/25/06
4/15/06

....you could use the following formula instead...

=SUMPRODUCT(--(A2:A5TODAY()-7),B2:B5)

Hope this helps!

In article ,
arslan wrote:

correction for my problem...

A B C D
E
1 date working hours work.hors yor work.hours for work.hours
last 7 days last 30 days
for last year
2 12.20.05 08:15
3 01.01.06 08:00
4 03.25.06 07:55
5 04.15.06 08:45
How can i formulate each cell on column C,D, and E?


  #4   Report Post  
Posted to microsoft.public.excel.misc
Domenic
 
Posts: n/a
Default time formulate

In article ,
arslan wrote:

:) thanks, Domenic...


You're very welcome! Actually, if Column A contains true dates, you
could simply use...

=SUMIF(A2:A5,""&TODAY()-7,B2:B5)

Hope this helps!
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
Hot key for time? Dave in Des Moines Excel Worksheet Functions 2 March 24th 06 04:15 PM
time sheet drop down lists Steve Excel Discussion (Misc queries) 12 March 18th 06 10:30 PM
time entry with am/pm and no colons Cyrus Excel Discussion (Misc queries) 9 March 3rd 06 11:42 AM
Entering Times Denise Excel Discussion (Misc queries) 9 November 15th 05 04:57 PM
time differences in a column 68magnolia71 Excel Worksheet Functions 3 May 9th 05 09:46 PM


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