#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 51
Default Sumproduct by date

I have a data sheet that get entered with date and hours for the year.
Some days we might have several entries or just one, it depends on how much
work is done.
I have a table numbered 1 to 31(col A). They corespond to the days in a
month. What I need is a formula down col B (1 to 31 days) to sum the total
for each day for the selected month.
--
WH99
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Sumproduct by date

=sumproduct(--(YEAR(Sheet2!$A$2:$A$200)=2008),--(MONTH(Sheet2!$A$2:$A$200)=A2),Sheet2!$B$2:$B$200)

--
---
HTH

Bob


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



"WH99" wrote in message
...
I have a data sheet that get entered with date and hours for the year.
Some days we might have several entries or just one, it depends on how
much
work is done.
I have a table numbered 1 to 31(col A). They corespond to the days in a
month. What I need is a formula down col B (1 to 31 days) to sum the total
for each day for the selected month.
--
WH99



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 51
Default Sumproduct by date

Thanks Bob,
No luck with your formula!
But I am playing with the following formula:
=IF(MONTH(A11)=MONTH(A10),B11+C10,B11)
(Col C being the total for that particular day).
Tried to change the MONTH to DATE or DAY but with no luck.
Any ideas?
--
WH99


"Bob Phillips" wrote:

=sumproduct(--(YEAR(Sheet2!$A$2:$A$200)=2008),--(MONTH(Sheet2!$A$2:$A$200)=A2),Sheet2!$B$2:$B$200)

--
---
HTH

Bob


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



"WH99" wrote in message
...
I have a data sheet that get entered with date and hours for the year.
Some days we might have several entries or just one, it depends on how
much
work is done.
I have a table numbered 1 to 31(col A). They corespond to the days in a
month. What I need is a formula down col B (1 to 31 days) to sum the total
for each day for the selected month.
--
WH99




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 51
Default Sumproduct by date

Got it to work with:
=IF(DAY(A11)=DAY(A10),B11+C10,B11)
many thanks
--
WH99


"WH99" wrote:

Thanks Bob,
No luck with your formula!
But I am playing with the following formula:
=IF(MONTH(A11)=MONTH(A10),B11+C10,B11)
(Col C being the total for that particular day).
Tried to change the MONTH to DATE or DAY but with no luck.
Any ideas?
--
WH99


"Bob Phillips" wrote:

=sumproduct(--(YEAR(Sheet2!$A$2:$A$200)=2008),--(MONTH(Sheet2!$A$2:$A$200)=A2),Sheet2!$B$2:$B$200)

--
---
HTH

Bob


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



"WH99" wrote in message
...
I have a data sheet that get entered with date and hours for the year.
Some days we might have several entries or just one, it depends on how
much
work is done.
I have a table numbered 1 to 31(col A). They corespond to the days in a
month. What I need is a formula down col B (1 to 31 days) to sum the total
for each day for the selected month.
--
WH99




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
Sumproduct by date heater Excel Discussion (Misc queries) 4 March 22nd 06 08:10 PM
Use SUMPRODUCT with a Date msbutton27 Excel Discussion (Misc queries) 1 January 26th 06 04:30 AM
if, sumproduct, help by date Jim Excel Worksheet Functions 0 January 20th 06 07:37 PM
SUMPRODUCT + DATE = 0 nfbelo Excel Worksheet Functions 5 May 24th 05 02:10 PM
SUMPRODUCT + DATE = 0 nfbelo Excel Worksheet Functions 0 May 24th 05 09:38 AM


All times are GMT +1. The time now is 08:04 AM.

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"