It's hard for me to understand the syntax, but it works.
Does that refer to my formula? With regard to the typo, I just picked up the first value field ... missed the reference to column F.
It's essentially the same formula as Richard's. However, you can separate the components using commas, instead of asterisks. If you use commas, you need to coerce the TRUE/FALSE values to 1/0 ... which is what the double negative (--) does. The LOWER ensures that the comparison with the entries in column B matches lower case with lower case "buy". Shouldn't be an issue but some comparisons can be case sensitive ... so, belt and braces
You would do well to define your data in terms of Named Ranges to make the references more straightforward and avoid the necessity to edit them. Oh, and beware, you cannot use whole column references in SUMPRODUCT formulae in Excel 2003 ... and you shouldn't in any other version.
Regards, TMS
Bookmarks