ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   sumif absolute values (https://www.excelbanter.com/excel-discussion-misc-queries/55969-sumif-absolute-values.html)

DM

sumif absolute values
 
Is there any way to embed an absolute value function within a sumif function?
Is there an array formula that will do this?

Bob Phillips

sumif absolute values
 
Can you elaborate, with some example?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"DM" wrote in message
...
Is there any way to embed an absolute value function within a sumif

function?
Is there an array formula that will do this?




Dave Peterson

sumif absolute values
 
=sumif(a1:a10,"x",b1:b10)
could be rewritten as:
=sumproduct(--(a1:a10="x"),abs(b1:b10))


DM wrote:

Is there any way to embed an absolute value function within a sumif function?
Is there an array formula that will do this?


--

Dave Peterson


All times are GMT +1. The time now is 06:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com