Filtering out non number values
Filtering out non number values
(OP)
I use excell to sort and average some data collected via OSI's plant information system.
Ocasionally, there will be a problem with the server or the instruments which caused the archived value to read "invalid" or "bad data" or "no good data", whatever the divice is configured to read at those times.
I cannot use this to do any calculations because it is not a number. If there any function that will filter these cells out and replace them with a number or a null value?
Everything that I have tried comes up with #VALUE!.
Ocasionally, there will be a problem with the server or the instruments which caused the archived value to read "invalid" or "bad data" or "no good data", whatever the divice is configured to read at those times.
I cannot use this to do any calculations because it is not a number. If there any function that will filter these cells out and replace them with a number or a null value?
Everything that I have tried comes up with #VALUE!.
RE: Filtering out non number values
Wheels within wheels / In a spiral array
A pattern so grand / And complex
Time after time / We lose sight of the way
Our causes can't see / Their effects.
RE: Filtering out non number values
RE: Filtering out non number values
Wheels within wheels / In a spiral array
A pattern so grand / And complex
Time after time / We lose sight of the way
Our causes can't see / Their effects.
RE: Filtering out non number values
Formatting did not help.
For me average add subtract if whatever still returns #VALUE!
RE: Filtering out non number values
I guess this tells us that the non numerical values I am getting from the PI servers is not text.
RE: Filtering out non number values
If there are any cells with #N/A or #VALUE, they will propagate throughout the the calculation. For example, AVERAGE on cells occupied with 5 and #VALUE, will return #VALUE. Could this be the case in your sheet?
I'm sure there is a means to filter offending cells via macro on built in function, I am just a loss right now for the solution.
RE: Filtering out non number values
=IF(ISNUMBER(E1:E6),AVERAGE(E1:E6),0)
Enter as an array formula (Ctrl+shift+enter)
RE: Filtering out non number values
2) Select all of the cells and sort by 2 criteria: the data, and then by new column. This should collect all of the text, and still preserve the order of the data.
Hope that helps!
RE: Filtering out non number values
Just waht I was needing to know. Thanks a bunch
RE: Filtering out non number values
{=AVERAGE(IF(ISNUMBER(E1:E6),E1:E6,""))}
The brackets {} indicate the array formula when you type (CTRL+SHIFT+ENTER)
Keep in mind that if you put a zero (0) at the end of the IF portion, that zero is averaged into the calculation. Putting a null value ("") into the calculation causes it to average only the remaining values.
At least, this is what I had to do. Note: Microsoft Excel 2000 with SP-3.
-InspEngr