VBA
New Member
- Joined
- Jan 19, 2009
- Messages
- 39
Heya 
I ran into something odd today...
I have columns with data that run from row 1 to 9, then one row empty and then again 11 to 19, one row empty, etc.
The rows give (error) values in percentages and I would like to know the minimal error (closest to zero) and the maximum. The function "min" gives the minimal value over all, thus if the error is negative I get the largest negative value. To get the value closest to zero I thus need to take the absolute.
When I do this, I need to use an array function (as I take the absolute value of a whole column). This goes right a couple of times, but after 3 "rigth answers" the function only returns zero!?!
I think this might be because of the empty rows in between, but I do not understand why this goes right for the first 3...
I would really like to avoid having to create an extra column next to every now existing value, with the absolute values of the errors and then take the minimum...
I ran into something odd today...
I have columns with data that run from row 1 to 9, then one row empty and then again 11 to 19, one row empty, etc.
The rows give (error) values in percentages and I would like to know the minimal error (closest to zero) and the maximum. The function "min" gives the minimal value over all, thus if the error is negative I get the largest negative value. To get the value closest to zero I thus need to take the absolute.
When I do this, I need to use an array function (as I take the absolute value of a whole column). This goes right a couple of times, but after 3 "rigth answers" the function only returns zero!?!
I think this might be because of the empty rows in between, but I do not understand why this goes right for the first 3...

I would really like to avoid having to create an extra column next to every now existing value, with the absolute values of the errors and then take the minimum...