Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
pfdubz
 
Posts: n/a
Default using logical functions as criteria with the SUMIF function

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?
  #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?



  #4   Report Post  
pfdubz
 
Posts: n/a
Default

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"

"Don Guillett" wrote:

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


--
Don Guillett
SalesAid Software

"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?




  #5   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
and this is just what this formula does. Just try it. For an
explanation see:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--
Regards
Frank Kabel
Frankfurt, Germany

"pfdubz" schrieb im Newsbeitrag
...
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"

"Don Guillett" wrote:

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


--
Don Guillett
SalesAid Software

"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?







  #6   Report Post  
pfdubz
 
Posts: n/a
Default

Thanks for the reference Frank. It is most illuminating and it works!
..
"Frank Kabel" wrote:

Hi
and this is just what this formula does. Just try it. For an
explanation see:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--
Regards
Frank Kabel
Frankfurt, Germany

"pfdubz" schrieb im Newsbeitrag
...
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"

"Don Guillett" wrote:

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


--
Don Guillett
SalesAid Software

"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?





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SUMIF Criteria Brent Martin Excel Discussion (Misc queries) 6 January 7th 05 05:17 AM
SUMIF with only one criteria cell within range Stan Excel Discussion (Misc queries) 5 December 16th 04 10:12 PM
SUMIF with more than 1 criteria Mike@Q Excel Worksheet Functions 4 November 26th 04 12:17 AM
How to load Engineering Functions into the Fx function wizard? jsaval Excel Worksheet Functions 1 November 11th 04 09:47 PM
Can I use a cell reference in the criteria for the sumif function. Number Cruncher Excel Worksheet Functions 2 November 4th 04 07:52 PM


All times are GMT +1. The time now is 07:47 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"