On a spreadsheet that I am working on I have four columns: Bid, Category (which has four possible categories - B, N, E & I), Type (Which has three fixed categories down the column such - Op, Dep & Cap), and Value (a dollar amount that will correspond to the categories under 'Type' where applicable). Each Bid will fall under only 1 category, but may have dollar value for each Type i.e. each Bid will have four columns associated with it (Bid, Category, Type, and Value), and up to three rows (Op, Dep, and Cap). I have attempted to produce an example below (sorry have had to use underscore to get the columns correct as i cant download the HTML maker):

__Bid /__

__Category /__

__Type /__

__Value__

1______ B______Op______5

_______ B______Dep_____2

_______ B______Cap_____10

2_______N______Op______10

________N______Dep______0

________N______Cap______0

(In Bid 2 above, the Dep and Cap rows would be deleted as they contain no values)

Currently i have three SUMIF formulae at the bottom of the sheet which sums only those values that correspond to each category of the column 'Type' E.g.: =SUMIF($C$2:$C$7,"Op",D2:D7) will only pick up those figures in the value column if they correspond to "Op". So based on the above example, my total will be 10.

What I would like to do now is put a further condition on this formula so that it will discriminate the result further based on a Category. For example given the above formula, I would now like to sum those "op" values that correspond to the category 'B', which will give me a total of 5.

Confused yet?

As you can see, I am an Excel novice so any help would be greatly appreciated!

k-man