SUM the output of a cell, not the formula

stully

New Member
Joined
Oct 30, 2017
Messages
14
I am having trouble getting the SUM of the output of a range of cells. These cells contain a IFERROR formula and then I want to SUM based on the output of the cells. When I try to SUM the range, it takes the information in the formula and sums that information instead of the output of the cell's formula.
Formula of the Cells I want to SUM: =IFERROR(IF(G9<30,"<30 DAYS",IF(G9<60, "<60 DAYS", IF(G9<90, "<90 DAYS", IF(G9<180, "< 6 MONTHS", IF(G9<365, "< 1 YEAR", IF(G9<730, "<2 YEARS","")))))),"")
Formula I am using to SUM the cells: =SUMIF($H4:$H114, "<30 DAYS", $N4:$N114) where the N range is how much to SUM (1).
The SUM formula then returns 110 because that's how many cells I'm trying to count and the formula in those cells has "<30 DAYS" in side the formula.
What is the workaround so that it SUMS the OUTPUT of the cells, not what's in the formula in those cells? Or am I doing something else incorrectly?
Thank you for your assistance!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
All formulae look at the results of other formulae, not the formula itself.
The problem with your formula is the < sign & that is being treated to mean less.
Try changing it to read less than instead.
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,739
Members
449,050
Latest member
excelknuckles

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