Hi Andy,
Am Tue, 18 Jun 2013 16:10:49 +0100 schrieb Andy Roberts:
> I has 2 sheets, one with all my data and a second which summaries it.
>
> In my data sheet I have the following columns
>
> Date Name Status Price
> 01/01/11 Mr Smith A 10.00
> 01/02/12 Mr Jones A 15.00
> 01/03/12 Mr Tims B 12.00
> 01/04/13 Mr Roberts C 14.00
> 01/05/13 Mr Davis C 10.00
>
> (Cell A2) No of People where status = A
> (Cell A3) Total Price =
your data sheet is Sheet1, then for people with status A:
=SUMPRODUCT(--(YEAR(Sheet1!A2:A100)=A1),--(Sheet1!C2:C100="A"))
and for total price of the year:
=SUMPRODUCT(--(YEAR(Sheet1!A2:A100)=A1),Sheet1!D2:D100)
Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2