TacticalExcel
New Member
- Joined
- Oct 21, 2017
- Messages
- 4
Hi guys,
Current Format and Background:
I am trying to sum the absolute value of a long list of positive and negative values that also contains #N/As. Currently I have written an array formula that looks like this:
=(SUM(IF(ISNUMBER(Plants!$P$1676:$P$1744),IF(Plants!$P$1676:$P$1744>0,Plants!$P$1676:$P$1744)))-SUM(IF(ISNUMBER(Plants!$P$1676:$P$1744),IF(Plants!$P$1676:$P$1744<0,Plants!$P$1676:$P$1744))))
The ISNUMBER function works to deal with the N/A values and I am returning the absolute value for the range shown.
My full range is much longer and contains data from multiple "Plants". I want to return the absolute value for each individual plant, and and so I have organized the data such that all data from the same plant is grouped together. In the formula I simply change the range to reflect the range of data for Plant X vs. Plant Y vs. Plant Z and so on.
The Issue
As I refresh my data however, the range of data for a specific plant may change, and so I want to write a formula that refers to the name of "Plant X" as opposed to the range of Plant X so that way I do not have to go back and check the range in my table for each plant and then re-enter the new range into each formula.
Unfortunately I do not know how to structure the formula in a way that does all 3 things I need it to do
1) Sum the absolute value
2) Ignore #N/As to prevent errors
3) Do the following two only for a specific named Plant.
Thank you in advance for the help. I am using Excel 2016.
Current Format and Background:
I am trying to sum the absolute value of a long list of positive and negative values that also contains #N/As. Currently I have written an array formula that looks like this:
=(SUM(IF(ISNUMBER(Plants!$P$1676:$P$1744),IF(Plants!$P$1676:$P$1744>0,Plants!$P$1676:$P$1744)))-SUM(IF(ISNUMBER(Plants!$P$1676:$P$1744),IF(Plants!$P$1676:$P$1744<0,Plants!$P$1676:$P$1744))))
The ISNUMBER function works to deal with the N/A values and I am returning the absolute value for the range shown.
My full range is much longer and contains data from multiple "Plants". I want to return the absolute value for each individual plant, and and so I have organized the data such that all data from the same plant is grouped together. In the formula I simply change the range to reflect the range of data for Plant X vs. Plant Y vs. Plant Z and so on.
The Issue
As I refresh my data however, the range of data for a specific plant may change, and so I want to write a formula that refers to the name of "Plant X" as opposed to the range of Plant X so that way I do not have to go back and check the range in my table for each plant and then re-enter the new range into each formula.
Unfortunately I do not know how to structure the formula in a way that does all 3 things I need it to do
1) Sum the absolute value
2) Ignore #N/As to prevent errors
3) Do the following two only for a specific named Plant.
Thank you in advance for the help. I am using Excel 2016.