SUMIF function?

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

Guest

How would I use the sumif function to calculate only numeric values in a row
that may contain text and numeric characters?
 
=SUMPRODUCT(--(NOT(ISTEXT(A1:A20))),A1:A20)

be aware, dates get counted as dates are just numbers in Excel.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Hi

One way
=SUMPRODUCT(--(ISNUMBER(A1:Z1))) for your numerics
=SUMPRODUCT(--(ISTEXT(A1:Z1))) for your text values

or if the formula is not in the same row as you are testing, then
=SUMPRODUCT(--(ISNUMBER(1:1)))
to count all 256 cells

Regards

Roger Govier
 

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

Text Function 1
SUMIF on a Calculated Field 3
using SUMIF with ISNUMBER 6
SUMIF ERROR 3
sumif functions 4
SUMIF with criteria "<>" & "=" 4
quick question on sumif 3
Why doesn't this work ? 2

Back
Top