Formula to sum data from a data range

G

Guest

Ok here's what I need to do.
My sheet contains list of transactions by date and tx number spread over
several years. I am trying to automatically pull subtotals for each fiscal
year out of this LONG list of data.

Example:
ID Date IssueAmt Sold Date
1380 12/1/1998 $66.00 12/1/1998
1381 12/1/1998 $66.00 12/1/1998

I need a formula that will sum the "Issue Amounts" if the "Date" falls
within a particular range, ie. 11/25/1998-11/28/1999.

Any help you all can give me I am extremely greatful for. I've been pulling
my hair out all day today with IF, AND, and OR statements that keep returning
garbage.

Thanks,
Mike
 
B

Bob Phillips

=SUMPRODUCT(--(B2:B200>=--"1998-11-25"),--(B2:B200<=--"1999-11-28"),C2:C200)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
G

Guest

Bob you RULE!!!!
Thank you SO MUCH for the help!!!!
(My boss is gonna think I'm a genious when she sees this.) Don't worry,
I'll give you credit... : )
 
B

Bob Phillips

If you have many date ranges, it is probably best to put the start and end
dates in cells and test against those, and then lock the test range with
absolute values so that it is easily copyable. Like this

=SUMPRODUCT(--($B$2:$B$200>=M1),--($B$2:$B$200<=N1),$C$2:$C$200)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top