Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default formula date range

I have dates in column A, codes in column B and amounts in column C on
spreadsheet 2 (data).

I want on sheet 1 to say that if the date falls in a certain range (ex. July
1-July 31,2009) and the code is a specific code (ex. AT) then sum the amounts
in column C.

This is the formula I was using but it's not working. I can't figure out
the date range piece of the formula.

=SUMPRODUCT(--(data!$B$2:$B$503="HP"),--(data!$A$2:$A$503="09/01/2009-09/30/2009"),data!$C$2:$C$503)


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,533
Default formula date range

Hi

Look at this:

=SUMPRODUCT(--(data!$B$2:$B$503="HP"),--(data!$A$2:$A$503=DateValue("09/01/2009")),--(data!$A$2:$A$503<=DateValue("09/30/2009")),data!$C$2:$C$503)

Regards,
Per

"Kalida Williams" skrev i
meddelelsen ...
I have dates in column A, codes in column B and amounts in column C on
spreadsheet 2 (data).

I want on sheet 1 to say that if the date falls in a certain range (ex.
July
1-July 31,2009) and the code is a specific code (ex. AT) then sum the
amounts
in column C.

This is the formula I was using but it's not working. I can't figure out
the date range piece of the formula.

=SUMPRODUCT(--(data!$B$2:$B$503="HP"),--(data!$A$2:$A$503="09/01/2009-09/30/2009"),data!$C$2:$C$503)



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default formula date range

Hi,

=SUMPRODUCT(--(data!$B$2:$B$503="HP"),--(data!$A$2:$A$503="09/01/2009"),--(data!$A$2:$A$503<="09/30/2009"),data!$C$2:$C$503)

if this helps please click yes thanks

"Kalida Williams" wrote:

I have dates in column A, codes in column B and amounts in column C on
spreadsheet 2 (data).

I want on sheet 1 to say that if the date falls in a certain range (ex. July
1-July 31,2009) and the code is a specific code (ex. AT) then sum the amounts
in column C.

This is the formula I was using but it's not working. I can't figure out
the date range piece of the formula.

=SUMPRODUCT(--(data!$B$2:$B$503="HP"),--(data!$A$2:$A$503="09/01/2009-09/30/2009"),data!$C$2:$C$503)


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default formula date range

Kalida Williams wrote:
I have dates in column A, codes in column B and amounts in column C on
spreadsheet 2 (data).

I want on sheet 1 to say that if the date falls in a certain range (ex. July
1-July 31,2009) and the code is a specific code (ex. AT) then sum the amounts
in column C.

This is the formula I was using but it's not working. I can't figure out
the date range piece of the formula.

=SUMPRODUCT(--(data!$B$2:$B$503="HP"),--(data!$A$2:$A$503="09/01/2009-09/30/2009"),data!$C$2:$C$503)




Try this for your date:


=SUMPRODUCT(--(data!$B$2:$B$503="HP"),(data!$A$2:$A$503=DATE(20 09,9,1)*
(data!$A$2:$A$503<=DATE(2009,9,30),data!$C$2:$C$50 3)
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default formula date range

If you're using Excel 2007:

Use cells to hold the criteria:

A1 = start date = 9/1/2009
B1 = end date = 9/30/2009
C1 = code = HP

=SUMIFS(Data!C2:C503,Data!A2:A503,"="&A1,Data!A2: A503,"<="&B1,Data!B2:B503,C1)

--
Biff
Microsoft Excel MVP


"Kalida Williams" wrote in
message ...
I have dates in column A, codes in column B and amounts in column C on
spreadsheet 2 (data).

I want on sheet 1 to say that if the date falls in a certain range (ex.
July
1-July 31,2009) and the code is a specific code (ex. AT) then sum the
amounts
in column C.

This is the formula I was using but it's not working. I can't figure out
the date range piece of the formula.

=SUMPRODUCT(--(data!$B$2:$B$503="HP"),--(data!$A$2:$A$503="09/01/2009-09/30/2009"),data!$C$2:$C$503)






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
Need a formula to determine if date falls within a date range then Corca Excel Worksheet Functions 2 September 19th 08 09:36 AM
Create a formula in a date range to locate a specific date - ecel util Excel Discussion (Misc queries) 0 February 19th 07 03:03 PM
IF Date range formula Phatbob Excel Worksheet Functions 4 May 12th 06 02:16 PM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Worksheet Functions 2 April 21st 06 02:50 AM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Discussion (Misc queries) 1 April 20th 06 10:03 PM


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