ABS of a column

Leticia

New Member
Joined
Jun 9, 2021
Messages
45
Office Version
  1. 365
Platform
  1. Windows
Hi! I have a database and I want to obtain the absolute values based on some conditions.

TYPE (A)CODE (B)BOOK (C)VALUE (D)ABS VALUE (E)
A-XXX1998YYY55
P-XXX1998YYY-33
O-XXX3003ZZZ66
A-XXX1998ZZZ-99
P-XXX4605YYY44
O-XXX2008YYY-1313

The original contains the the first 3, so given the massive amount of data of the real database, for my calculus I would rather include the operation of the absolute value in the formula instead of adding a new column. (Is there any possible way of doing it? Maybe with dynamic arrays?)

1625498395956.png


The formula in E5 =SUM(SUMIFS($E:$E;$A:$A;L$4&"*";$C:$C;"<>ZZZ";$B:$B;$H$5:$I$5))

Thank you!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
I would use the helper column as it's almost certainly more efficient, but you can try
Excel Formula:
=SUM(FILTER(ABS($D$2:$D$100),(LEFT($A$2:$A$100,1)=L4)*($C$2:$C$100<>"ZZZ")*(($B$2:$B$100=$H$5)+($B$2:$B$100=$I$5))))
 
Upvote 0
Solution
I would use the helper column as it's almost certainly more efficient, but you can try
Excel Formula:
=SUM(FILTER(ABS($D$2:$D$100),(LEFT($A$2:$A$100,1)=L4)*($C$2:$C$100<>"ZZZ")*(($B$2:$B$100=$H$5)+($B$2:$B$100=$I$5))))
Great! It worked thank you!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,383
Members
448,955
Latest member
BatCoder

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top