Use a function on a indirect range

I use this formula : =SUM.IF(INDIRECT("'"&$A4&"'!C:C");"D";INDIRECT("'"&$A4&"'!D:D"))
Now in fact I want the sum argument to be the absolute value so, something like this ABS(INDIRECT("'"&$A4&"'!D:D"))
I suspect this is possible as this remembers me something similar (but I don't remember where I saw it)
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Wayne Taylor (webtubbs)Commented:
Try this...

=SUMIF(INDIRECT("'" & ABS($A4) & "'!C:C"); "D"; INDIRECT("'" & ABS($A4) & "'!D:D"))
Ray PaseurCommented:
Is this somehow related to PHP?
LeTayAuthor Commented:
No, not PHP
Wayne, not ABS($A4)
The referenced range contains positive and negative value (in the other sheet)
I want the sum of ABS values
The ABS must be applied to the values, not the references
Exploring ASP.NET Core: Fundamentals

Learn to build web apps and services, IoT apps, and mobile backends by covering the fundamentals of ASP.NET Core and  exploring the core foundations for app libraries.

Saqib Husain, SyedEngineerCommented:

Rory ArchibaldCommented:
You can't apply functions in the sum range with SUMIF. You could either use 2 SUMIFS and subtract the negative result:


or use a SUMPRODUCT:
LeTayAuthor Commented:
Well, now I get #VALUE! as result
Rory ArchibaldCommented:
With which formula? If it's the SUMPRODUCT one, you probably have text values in at least one of the data rows. Change the ranges to not include header rows and any other text rows, if you can.
LeTayAuthor Commented:
Can you provide a small Excel example ?
I have the french version ... will be easier (automatic translation of formula)
My current formula (without ABS) and working fine (some non numeric cells present) was :
Rory ArchibaldCommented:
Try this one.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LeTayAuthor Commented:
Exactly what I need !
Many thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.