Jump to content
[[Template core/front/custom/_customHeader is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

excel & summing absolute values


muck
 Share

Recommended Posts

Is there any quick way to take a long string of numbers and add up the absolute value of those numbers without creating a new column/row to first find the ABS of each individual number?

 

Sorta like "SumProduct"?

Link to comment
Share on other sites

Create a new column with a field of @ABS(cell in other field) in each field and sum up the numbers in this column?

 

Doing that would be a REAL p.i.t.a ... presumably there is no other way, eh?

Link to comment
Share on other sites

How big is your column? You can do like this:

 

=ABS(A1)+ABS(A5)+ABS(A3)+ABS(A2)+ABS(A4)

 

but then you get into character limitations. You can't just create the column, then hide it? Or even create a second tab in the worksheet?

 

...that's basically what I did...there were 168 groups of 10 numbers spread across six sheets in a workbook...hence the reason that I said that adding a column would be a PITA (formatting = ugh).

Link to comment
Share on other sites

...that's basically what I did...there were 168 groups of 10 numbers spread across six sheets in a workbook...hence the reason that I said that adding a column would be a PITA (formatting = ugh).

 

Were all the numbers in a single column on each sheet? If so, I believe you could have selected the multiple worksheets, entered the formula in a new column on just one worksheet and it copies over. Take maybe 5 minutes to do.

Link to comment
Share on other sites

Found it...

 

Enter the formula below:

 

=SUM(ABS(A1:A10))

 

and then hit Ctrl+Shift+Enter

 

It will work and make your formula look like this:

 

{=SUM(ABS(A1:A10))}

 

Wow, good on you grungie. It doesn't work if you type it out with the brackets, just follow grunge's instructions though and it will work.

Link to comment
Share on other sites

Found it...

 

Enter the formula below:

 

=SUM(ABS(A1:A10))

 

and then hit Ctrl+Shift+Enter

 

It will work and make your formula look like this:

 

{=SUM(ABS(A1:A10))}

Wow! Nice.

 

I tried the formula but never though of the Ctrl+Shift+Enter. Great to know.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information