# SUM the output of a cell, not the formula

#### stully

##### New Member
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?

### Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

#### Fluff

##### MrExcel MVP, Moderator
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.

#### arthurbr

##### Well-known Member
Try =SUMIF(\$H4:\$H114, "="&"<30 DAYS", \$N4:\$N114)

#### stully

##### New Member
Try =SUMIF(\$H4:\$H114, "="&"<30 DAYS", \$N4:\$N114)
Thank you very much - that worked!! Much appreciated!

Replies
3
Views
330
Replies
5
Views
133
Replies
3
Views
307
Replies
5
Views
171
Replies
6
Views
1K

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,163,987
Messages
5,834,718
Members
430,313
Latest member
smartykatwinks

### 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.

### Which adblocker are you using?

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

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