Yet more Excel - exclude certain cells in a sum

Soldato
Joined
7 May 2004
Posts
5,503
Location
Naked and afraid
I literally have two columns, Column A has a drop-down box with 'ok' or 'ignore'.

The column to the right column B, simply has a number.

I want to be able to add all these numbers in column B ONLY if column A says 'ok'.

I tried googling it but trying to word it right seem a chore, didn't find much to help me?
 
Can you use the SUMIF with a COUNTIF?

For example I have this formula that counts only 'W'

=COUNTIF($R$5:R44,"W")

So could you combine that with =SUMIF(A1:A10, "ok", B1:B10)

i.e. only count the 'W' and do the sum if you have an 'ok' too?
 
I don't need the B1 aspect, just the check for 'ok' and 'w'.

I need to count how many times an ok and w fall in the same row, if that makes sense?

And thank you for your excellent reply and in taking the time to help - much appreciated!
 
I don't need the B1 aspect, just the check for 'ok' and 'w'.

I need to count how many times an ok and w fall in the same row, if that makes sense?

And thank you for your excellent reply and in taking the time to help - much appreciated!

Anyone, I still can't work it out from the above example and the 2002 help file is a bit limited.

Perhaps it's time for an upgrade! :o
 
Back
Top Bottom