Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / July 2006

Tip: Looking for answers? Try searching our database.

abs() in EXCEL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
George - 17 Jul 2006 10:16 GMT
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?
Bondi - 17 Jul 2006 10:39 GMT
> Hi.
> I would like to calculate (only in one cell) the sum of absolute values (
[quoted text clipped - 4 lines]
> 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
Bob Phillips - 17 Jul 2006 11:32 GMT
=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

Signature

HTH

Bob Phillips

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

> Hi.
> I would like to calculate (only in one cell) the sum of absolute values (
[quoted text clipped - 4 lines]
> p.s.
> Could a form of  SUM ( SUMIF, SUMPRODUCT, e.g.) help?

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.