#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Red Red is offline
external usenet poster
 
Posts: 48
Default Sumif date=date

I have two worksheets. First has values and dates when entered.
eg, 123 1/1/2008
234 15/1/2008
456 3/2/2008
654 7/2/2008
876 16/4/2008

Second has month headings:- January Febuary........

What i want to do is sumif(ws1!date column,ws2!column header,ws1!values)
Hope this is clear! i tried using MONTH with no luck

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sumif date=date

Try this...

Sheet2 A1:L1 = Jan, Feb, Mar, Apr, ....Dec

Enter this formula in Sheet2 A2 and copy across to L2:

=SUMPRODUCT(--(MONTH(Sheet1!$B1:$B10)=COLUMNS($A2:A2)),Sheet1!$A 1:$A10)

Assuming there are no empty cells in your date column. An empty cell will
evaluate as month 1.

--
Biff
Microsoft Excel MVP


"red" wrote in message
...
I have two worksheets. First has values and dates when entered.
eg, 123 1/1/2008
234 15/1/2008
456 3/2/2008
654 7/2/2008
876 16/4/2008

Second has month headings:- January Febuary........

What i want to do is sumif(ws1!date column,ws2!column header,ws1!values)
Hope this is clear! i tried using MONTH with no luck



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Red Red is offline
external usenet poster
 
Posts: 48
Default Sumif date=date

Many thanks, works a treat!!

"T. Valko" wrote:

Try this...

Sheet2 A1:L1 = Jan, Feb, Mar, Apr, ....Dec

Enter this formula in Sheet2 A2 and copy across to L2:

=SUMPRODUCT(--(MONTH(Sheet1!$B1:$B10)=COLUMNS($A2:A2)),Sheet1!$A 1:$A10)

Assuming there are no empty cells in your date column. An empty cell will
evaluate as month 1.

--
Biff
Microsoft Excel MVP


"red" wrote in message
...
I have two worksheets. First has values and dates when entered.
eg, 123 1/1/2008
234 15/1/2008
456 3/2/2008
654 7/2/2008
876 16/4/2008

Second has month headings:- January Febuary........

What i want to do is sumif(ws1!date column,ws2!column header,ws1!values)
Hope this is clear! i tried using MONTH with no luck




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sumif date=date

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"red" wrote in message
...
Many thanks, works a treat!!

"T. Valko" wrote:

Try this...

Sheet2 A1:L1 = Jan, Feb, Mar, Apr, ....Dec

Enter this formula in Sheet2 A2 and copy across to L2:

=SUMPRODUCT(--(MONTH(Sheet1!$B1:$B10)=COLUMNS($A2:A2)),Sheet1!$A 1:$A10)

Assuming there are no empty cells in your date column. An empty cell will
evaluate as month 1.

--
Biff
Microsoft Excel MVP


"red" wrote in message
...
I have two worksheets. First has values and dates when entered.
eg, 123 1/1/2008
234 15/1/2008
456 3/2/2008
654 7/2/2008
876 16/4/2008

Second has month headings:- January Febuary........

What i want to do is sumif(ws1!date column,ws2!column
header,ws1!values)
Hope this is clear! i tried using MONTH with no luck






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
sumif date is greater than or equal chosen date Gary Excel Discussion (Misc queries) 2 September 19th 08 09:51 AM
Sumif....date in table is greater than compared to date [email protected] Excel Discussion (Misc queries) 1 September 13th 08 05:44 PM
sumif < date David Excel Worksheet Functions 5 July 12th 08 10:43 PM
Report Date - Date Recv = Days Late, but how to rid completed date MS Questionnairess Excel Worksheet Functions 1 January 24th 07 11:05 PM
SUMIF within date range as a function of today()'s date irvine79 Excel Worksheet Functions 8 August 6th 06 05:55 PM


All times are GMT +1. The time now is 11:40 PM.

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

About Us

"It's about Microsoft Excel"