using logical functions as criteria with the SUMIF function

P

pfdubz

I have a datatable with a number of columns and I want to add all the numbers
in column "S" when the text in column "M begin with an "A". I also want to
use the same function for all the numbers in Cloumns "T", "U", "V", etc.
I have tried =SUMIF($M$3:$M$100,LEFT($M3,1)="A",S3:S100) and all I get is
"0". Any suggestions?
 
D

Don Guillett

try
=sumproduct((left(m3:m100,1)="A")*s3:s100)
=sumproduct((left(m3:m100,1)="A")*s3:v100)
 
A

Arvi Laanemets

Hi

=SUMPRODUCT(--(LEFT(M3:M300)="A"),S3:S300)

The formula above sums all rows with entriea im column M starting with
either "a" or "A". A case sensitive variant of same formula is
=SUMPRODUCT(--(EXACT(LEFT(D1:D5),"A")),C1:C5)


Arvi Laanemets
 
P

pfdubz

I am not trying to multiply column M and column S. I am trying to add all
the numbers in column S that correspond with text in column M that begins
with the letter "A"
 

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