PC Review


Reply
Thread Tools Rate Thread

abs() in EXCEL

 
 
=?Utf-8?B?R2Vvcmdl?=
Guest
Posts: n/a
 
      17th Jul 2006
Hi.
I would like to calculate (only in one cell) the sum of absolute values (
ABS() ) of a column. The column includes positive and negative numbers and
some blank cells. I would like to reject the non number cells.
Is this possible?
Th.
p.s.
Could a form of SUM ( SUMIF, SUMPRODUCT, e.g.) help?

 
Reply With Quote
 
 
 
 
Bondi
Guest
Posts: n/a
 
      17th Jul 2006

George wrote:
> Hi.
> I would like to calculate (only in one cell) the sum of absolute values (
> ABS() ) of a column. The column includes positive and negative numbers and
> some blank cells. I would like to reject the non number cells.
> Is this possible?
> Th.
> p.s.
> Could a form of SUM ( SUMIF, SUMPRODUCT, e.g.) help?


Hi George,

I guess one way to do it would be to use something like ( If your data
is in A1:A10):

=SUM(IF((A1:A10)<0,(A1:A10)*-1,A1:A10))

(sure there is a more elegant way)

It is an array formula so you have to activate it with Ctrl + Shift
Enter

Regards,
Bondi

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      17th Jul 2006
=SUM(IF(ISNUMBER(A1:A20),ABS(A1:A20)))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

if it just blanks, not text, this will suffice

=SUM(ABS(A1:A20))

also an array formula

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"George" <(E-Mail Removed)> wrote in message
news:C574AED5-C244-4133-94B7-(E-Mail Removed)...
> Hi.
> I would like to calculate (only in one cell) the sum of absolute values (
> ABS() ) of a column. The column includes positive and negative numbers and
> some blank cells. I would like to reject the non number cells.
> Is this possible?
> Th.
> p.s.
> Could a form of SUM ( SUMIF, SUMPRODUCT, e.g.) help?
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy Paste failed in excel file migrated from Excel 2003 to Excel Handong Chen Microsoft Excel Crashes 1 4th Mar 2010 06:05 PM
Application coded in excel 2000 when used in excel 2003 excel doesnot perform well and takes double the time to give the output Prince Microsoft Excel Programming 4 17th Feb 2009 03:05 PM
Problem with Excel reports ::::Excel 2003 Migration To Excel 2007 =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?= Microsoft Excel Programming 0 5th Oct 2007 10:26 AM
Excel 2003 crashes loading excel files created Excel 2000 =?Utf-8?B?SmVmZiBMZXdpbiAgQXVzdHJhbGlh?= Microsoft Excel Misc 0 27th Jun 2005 04:20 AM
Why my Excel 2003 don't open excel files by duble click on excel . =?Utf-8?B?VmFseQ==?= Microsoft Excel Crashes 1 20th Jan 2005 03:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:22 PM.