Compound Functions

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

Guest

=IF(AND($F$8:$F$100="",$E$8:$E$100="PCO"), SUM($G$8:$G$100), 0)

Returns 0 when it should a sum of numbers.
My Logic is:
When column f is blank and column E = "PCO" then sum column G.

What am I doing wrong?
 
Hi!

Try this instead:

=SUMPRODUCT(--(E8:E100="PCO"),--(F8:F100=""),G8:G100)

OR, use a cell to hold PCO:

A1 = PCO

=SUMPRODUCT(--(E8:E100=A1),--(F8:F100=""),G8:G100)

Biff
 
Works Great!....

Now, how do I get a count based on the same conditions?

Thanks so much!
 
Now, how do I get a count based on the same conditions?

Try: =SUMPRODUCT(--(E8:E100="PCO"),--(F8:F100=""))
(w/o the col G range)
 

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

lookup functions 1
Error when using Sum command 3
Leave Blank If No Data 6
Sort data 2
Sum / Lookup 9
Index/match across multiple columns? 19
Excel Countifs/Sumproduct with mutil Or statement 3
msgBox after update a cell 9

Back
Top