LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jeremy Ellison
 
Posts: n/a
Default value of #'s in column if between dates

Here's what I have been trying:

=SUMPRODUCT((CaseData!C2:C1000=DATE(2005,10,1))*( CaseData!C2:C1000<=DATE(200,12,31))*(CaseData!AT2: AT1000="Heroin")*CaseData!AU2:AU1000)



for the follwoing data


C AT AU
1 Date DRUG Amount
2 10/1/5 Heroin 2.2
3 1/2/6 Heroin 5.5

I get a "VALUE" error when I run this...I want it to return 2.2 because row
2 is between the dates specified.


Any one know how to get it to work correctly? I/m lost!


IF I do come up with the answer for this... I will want it to then look at 2
more columkns with the same data... Example:

C AT AU AV
AW
1 Date DRUG Amount Drug2
Amount2
2 1/1/6 Heroin 2.2 Grams Meth
2.5
3 1/2/7 Heroin 5.5 Grams MJ
1.1

The formula will need to add AU & AW together, if C is between dates and
AT=a certain drug....

THanks!
 
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
How to count dates within a certain range in a column with mutiple date range entries Krisjhn Excel Worksheet Functions 2 September 1st 05 01:59 PM
Lookup Table Dilemma Karen Excel Worksheet Functions 2 June 10th 05 08:22 PM
I need a formula to sum column b if column a is between two dates Pam Excel Discussion (Misc queries) 0 April 18th 05 05:33 PM
How to dates column with values in next column Carlton A. Barlow Excel Discussion (Misc queries) 1 April 18th 05 04:28 AM
Can I change a column of dates from USA to UK format? Michelle, Mencap Excel Discussion (Misc queries) 3 March 2nd 05 04:02 PM


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