Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default SUMIF/SUMPRODUCT Between Dates

Here's what I'm trying to do and not sure how to achieve it.

Sheet1
Col A = Project Number (5 digit text)
Col B = Date of Spending (Display format is MMM-YY)
Col C = Spending Amount (Accounting format)

Sheet2
Col A = Project Number (5 digit text)
Col B = where I need formula

The formula in sheet2 should be if Proj Sheet 1=Proj Sheet 2 and Date Sheet1
ColB = jan-06 then sum Sheet1 Spend

I think part of my problem is that the date is stored as MM/DD/YYYY so the
date could be any number of days within the month.

Here's what i've got so far and it's giving me an error of #NAME?

=SUMPRODUCT(--('Sheet1'!A2:A9999='Sheet2'!A2),--('Sheet1'!B2:B9999="Jan-06"),'Sheet2'!C2:C9999)

Thanks in advance for assistance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default SUMIF/SUMPRODUCT Between Dates

"Marlo" wrote...
Here's what I'm trying to do and not sure how to achieve it.

Sheet1
Col A = Project Number (5 digit text)
Col B = Date of Spending (Display format is MMM-YY)
Col C = Spending Amount (Accounting format)

Sheet2
Col A = Project Number (5 digit text)
Col B = where I need formula

The formula in sheet2 should be if Proj Sheet 1=Proj Sheet 2 and Date
Sheet1
ColB = jan-06 then sum Sheet1 Spend

I think part of my problem is that the date is stored as MM/DD/YYYY so the
date could be any number of days within the month.

Here's what i've got so far and it's giving me an error of #NAME?

=SUMPRODUCT(--('Sheet1'!A2:A9999='Sheet2'!A2),--('Sheet1'!B2:B9999="Jan-06"),'Sheet2'!C2:C9999)

Thanks in advance for assistance.


Hi!

Try this:

=SUMPRODUCT(--(Sheet1!A2:A9999=Sheet2!A2),--(TEXT(Sheet1!B2:B9999,"mmm-yy")="Jan-06"),Sheet2!C2:C9999)

Biff



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
Dates showing are not what I type Mick New Users to Excel 5 July 6th 06 04:19 AM
Dates and Intervals Dave_Lee Excel Worksheet Functions 8 May 26th 06 01:34 PM
formula to add dates. S S Excel Worksheet Functions 8 April 5th 06 07:53 PM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM
Calculating number of days between two dates that fall between two other dates [email protected] Excel Discussion (Misc queries) 5 October 26th 05 06:18 PM


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