need help with a function in excel

Associate
Joined
5 Apr 2004
Posts
495
Location
London
I'll try my best to describe what I want to do:

I want to calculate a number in my budget table but only if other conditions elsewhere in the worksheet are true.

So in column A1 to A6 I have 3 potential values: gp1, gp2, gp3 eg.,

A
gp1
gp2
gp1
gp3
gp1
gp2

Then in column B1 to B6 I also have 3 potential values: act, comm & est eg.,

B
act
comm
est
act
comm
act

Then in colum C1 to C6 I have prices e.g.,

C
£150
£120
£80
£90
£110
£170

Now what I want to do is return a value in D1, which is the sum of the prices in C1:C6 only if certain conditions are met. So my question is how do I sum the price in C1:C6 if A1:A6 equals "gp1" AND IF B1:B6 equals "act"?!?!?

Please, please help this is driving me crazy!

Note: this is not homework, this is real work - trying to make a spreadsheet for budget data.
 
Back
Top Bottom