Formual help needed

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I did post this earler, but don't see it listed. Sorry, if it is a duplicate
post.
I'm using Excel 2003.

I need a formula to do the following:

If column A = "me" and
column B <> "green", "orange", "bean", "apple", "bananas" or corn" then
Sum column C.

TIA
 
=SUMPRODUCT(--(A2:A20="me"),C2:C20)-SUMPRODUCT((A2:A20="me")*(B2:B20={"green
","orange","bean","apple","bananas","corn"})*C2:C20)

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Another way...

=SUMPRODUCT(--(A1:A100="me"),--(ISNA(MATCH(B1:B100,{"green","orange","bea
n","apple","bananas","corn"},0))),C1:C100)

OR

=SUMPRODUCT(--(A1:A100="me"),--(ISNA(MATCH(B1:B100,D1:D6,0))),C1:C100)

....where D1:D6 contains your list of items to exclude, such as green,
orange, etc.

Hope this helps!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Formual help needed 1
CountIf Formula 1
Simple nested if and statement 2
help with making a function to filter lists 2
Categorizing Data Question 4
sumif 1
vlookup 3 sheets 1
Sorting data with a formula 4

Back
Top