Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trouble getting formula to work

Status
Not open for further replies.

bbenaway

Instructor
Sep 19, 2002
18
Am wanting to sum a row by looking at certain criteria list in columns A and B. For this example, am looking in row 105,column A for the entry of "12a" and row 105, column B for the entry "Toner". Both criteria MUST exist, and if so, then sum the numbers in column C.

Last, I want to subtract the value in column D from that total.

In the attachent, I have a value of 34+50=84-10=74.

74 would be the final value.

I have used the following formula: =SUMPRODUCT(((B104:B112="12a")+(C104:C112="toner"))*D104:D112). I think the way the formula is set, it is looking at either or criteria instead of looking at both criteria together before summing up the values.

Thanks in advance for any and all help.
 
change the plus to a *.
(True equates to 1, False equates to 0)

Gavin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top