#1   Report Post  
Div. F-II
 
Posts: n/a
Default Sum Function - ajit

I have a5:a50 range with formula trim(countif(Muster!$d1:$d30,"TOI") which
results into number of TOIs in
a5:a50 but when I try =sum(a5:a50) in cell a51, I get 0.
How comes? What goes wrong?
Ajit


  #2   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

What do you get for =COUNT(A5:A50)? My guess is that you will get 0,
indicating that there are no numbers in that range to be summed (note
that "123" is different than 123, and SUM will only include the numeric
value, not the text digits).

Also, it is generally a good idea to copy/paste formulas from Excel into
your post to avoid transcription errors
=trim(countif(Muster!$d1:$d30,"TOI")
is not a valid formula, since parentheses are not matched. I can guess
that it is just missing the closing parenthesis, but am less than sure,
since it leaves me wondering why you are trying to trim a number.

Jerry

Div. F-II wrote:

I have a5:a50 range with formula trim(countif(Muster!$d1:$d30,"TOI") which
results into number of TOIs in
a5:a50 but when I try =sum(a5:a50) in cell a51, I get 0.
How comes? What goes wrong?
Ajit


  #3   Report Post  
Bryan Hessey
 
Posts: n/a
Default


As you are looking for the sum total the Count function will not assist
you.
You can sum the 'trim'ed values with

=SUMPRODUCT(VALUE(A5:A50))


--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=385211

  #4   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

If you read my post more carefully, I suggested COUNT as a diagnostic
function; if count is zero, then SUM is failing because it is not seeing
any numbers.

Jerry

Bryan Hessey wrote:

As you are looking for the sum total the Count function will not assist
you.
You can sum the 'trim'ed values with

=SUMPRODUCT(VALUE(A5:A50))


  #5   Report Post  
Bryan Hessey
 
Posts: n/a
Default


The Trim function is a Text function, you cannot Sum text

Use a helper column and Value(A1) to A50, then Sum the helper column


--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=385211



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
I NEED HELP with the SPELLNUMBER Function vag Excel Worksheet Functions 0 June 21st 05 08:17 AM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM


All times are GMT +1. The time now is 07:02 PM.

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

About Us

"It's about Microsoft Excel"