Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Need help with a formula

I have a table with dates (01-01-07) in A, and then hours and minutes (01:30)
in the column B. Not every day there are entries. What i need is to know how
many hours i did in every month.
Thanks a lot for your help!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default Need help with a formula

Not clear, but consider a sumif function. You can say if col a data is 0
then add up column b data
"diamond" wrote:

I have a table with dates (01-01-07) in A, and then hours and minutes (01:30)
in the column B. Not every day there are entries. What i need is to know how
many hours i did in every month.
Thanks a lot for your help!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 196
Default Need help with a formula

Hi Diamond

Possibly:

=SUMPRODUCT(--(Month(A2:A100)=1),--(YEAR(A2:A100)=2007),B2:B100)

which will sum all the cells in B2:B100 which correspond to a month of
January and a year of 2007 (the criteria can be cell references
holding these values) - you can change the ranges as required.

Hope this helps!

Richard

On 28 Jan, 18:24, diamond wrote:
I have a table with dates (01-01-07) in A, and then hours and minutes (01:30)
in the column B. Not every day there are entries. What i need is to know how
many hours i did in every month.
Thanks a lot for your help!


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Need help with a formula

=SUMPRODUCT((TEXT(A2:A100,"mmm-yy")="Jan-07")*(B2:B100))


"diamond" wrote:

I have a table with dates (01-01-07) in A, and then hours and minutes (01:30)
in the column B. Not every day there are entries. What i need is to know how
many hours i did in every month.
Thanks a lot for your help!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Need help with a formula

=SUMPRODUCT(--(A1:A100-DAY(A1:A100)+1 =--"2007-01-01"),B1:B100)

Note that SP cannot use whole columns, the range must be defined.

--
HTH

Bob Phillips

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"diamond" wrote in message
...
I have a table with dates (01-01-07) in A, and then hours and minutes

(01:30)
in the column B. Not every day there are entries. What i need is to know

how
many hours i did in every month.
Thanks a lot for your help!





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Need help with a formula

One more...
=SUMPRODUCT(--(TEXT(A2:A100,"yyyymm")="200701"),(B2:B100))

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

And format the result as:
[hh]:mm

To see the results in hours and minutes.

diamond wrote:

I have a table with dates (01-01-07) in A, and then hours and minutes (01:30)
in the column B. Not every day there are entries. What i need is to know how
many hours i did in every month.
Thanks a lot for your help!


--

Dave Peterson
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
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 04:34 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 09:02 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 06:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 06:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 04:28 AM


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