Absolute Value with SumIFS

Directony

New Member
Joined
Feb 8, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hey All,

I'm trying to get a 90 day total from a set of data, using the absolute values of the data, as some of the data comes back as negative numbers; column A is the date the data was entered, column C is the data values.

I have a formula to get the 90 day total (shown below*) but I'm having trouble adding the ABS function to get the numbers to all add together. The only way's it's worked so far has been adding it to the whole formula so that the total is a positive number, but doing this means the total will be wrong as some of the numbers are being subtracted.

*=SUMIFS(C5:C35,A5:A35,">="&TODAY()-90,A5:A35,"<="&TODAY())
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Welcome to the MrExcel board!

Try

Excel Formula:
=SUM(FILTER(ABS(C5:C35),(A5:A35>=TODAY()-90)*(A5:A35<=TODAY()),0))
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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