> > im sorry.. but how in the hell are pivot tables TOO COMPLEX?
> >
[quoted text clipped - 12 lines]
> If I can write a formula, I won't have to refresh the pivot table
> everytime something changes.
Well, I'm trying to avoid using a PivotTable if I can. I know a
PivotTable would work, but I'd like to be able to write a formula
(something similar to SUMIF, DSUM, or something like that). This is
what I am looking at:
Month Dollars
Apr-04 500
Jul-04 100
Oct-04 400
Oct-07 700
Apr-04 300
What I want is a formula that will look through that table and tell me
how many dollars were spent in Apr-04. Some of the functions I've
tried look close, but there is always something preventing it from
working.
I've seen some ingenious solutions on this site, so I was hoping
someone would have a trick or know of a formula I don't. Otherwise,
I'll put in a pivot table, but I'd prefer the auto-updating formula.
Martin Fishlock - 23 Jan 2007 01:42 GMT
Hi,
The question for the test is how is the date formated. So one of the easiest
ways is to convert the text date to a string and compare that.
=SUMPRODUCT(--(TEXT(A2:A6,"Mmm-yy")="Apr-04"),B2:B6)
This has problems in none english versions as Mmm is not always Apr forthe
fourth month.

Signature
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.
> Well, I'm trying to avoid using a PivotTable if I can. I know a
> PivotTable would work, but I'd like to be able to write a formula
[quoted text clipped - 16 lines]
> someone would have a trick or know of a formula I don't. Otherwise,
> I'll put in a pivot table, but I'd prefer the auto-updating formula.