Sum with condition

K

Khalil Handal

Hi,
Range F21:F33 has either numeric values copied from other sheet or non
numeric value.
Range C21:C33 has only numeric values copied from a different sheet or typed
in directly.
It looks like this:
Colomn C Colomn F
100 87
200 120
100 - -
100 Sam

I want to SUM only the number in Range C21:F33 that has correspondance
numbers in the range F21:F33.
In the preious example I need the sum of the first 2 numbers only 100+200 =
300
Can this be done?
 
D

Domenic

Try...

=SUMIF(F21:F33,"<9.99999999999999E+307",C21:C33)

or

=SUMPRODUCT(--ISNUMBER(F21:F33),C21:C33)

Note, however, SUMIF should be faster.
 
B

Bernard Liengme

=SUMPRODUCT(--(isnumber(F21:F33)),C21:C31)
untested (getting late) but should work
best wishes
 
K

Khalil Handal

Thanks to both of you, it worked just fine.

Domenic said:
Try...

=SUMIF(F21:F33,"<9.99999999999999E+307",C21:C33)

or

=SUMPRODUCT(--ISNUMBER(F21:F33),C21:C33)

Note, however, SUMIF should be faster.

--
Domenic
Microsoft Excel MVP
www.xl-central.com
Your Quick Reference to Excel Solutions
 

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

Top