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!
 

Some videos you may like

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,071
Office Version
  1. 365
Platform
  1. Windows
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,851
Messages
5,598,452
Members
414,240
Latest member
xnanx

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
Top