View Single Post
  #3   Report Post  
Arvi Laanemets
 
Posts: n/a
Default

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


"pfdubz" wrote in message
...
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?