seattletimebandit
Board Regular
- Joined
- Apr 11, 2013
- Messages
- 69
Good day all.
I'm working with a bunch of laboratory results that has data qualifiers for results that are not detected and flagged with a "U" data qualifier for "undetected". However, my range of cells has a mix of numbers (detections) and some are numbers with the not detected "U" value. An example of the cells with the number/text value are: "1000 U" or "0.100 U". I want to be able to ignore the "U" to the right of the number then use that number in a graph or calculation. Is it possible to select a range and run some code to do this, even if some cells have only the detected number value?
My other option is to split all the columns using the Data -> Data Tools -> Text to Columns function in the Ribbon which would put the "U" (or blank space if no "U" exists) into the adjacent column, then convert the numbers that are free of the "U" for data calcs, yet maintaining the "U" value for the adjacent cell. BUT, I can only do that one column at a time, and there has to be a blank column to the right, otherwise I would overwrite the data in that adjacent column. Again, I have a macro that inserts a new column every other column, but that's just another step I'm trying to avoid.
Thanks!
stb
I'm working with a bunch of laboratory results that has data qualifiers for results that are not detected and flagged with a "U" data qualifier for "undetected". However, my range of cells has a mix of numbers (detections) and some are numbers with the not detected "U" value. An example of the cells with the number/text value are: "1000 U" or "0.100 U". I want to be able to ignore the "U" to the right of the number then use that number in a graph or calculation. Is it possible to select a range and run some code to do this, even if some cells have only the detected number value?
My other option is to split all the columns using the Data -> Data Tools -> Text to Columns function in the Ribbon which would put the "U" (or blank space if no "U" exists) into the adjacent column, then convert the numbers that are free of the "U" for data calcs, yet maintaining the "U" value for the adjacent cell. BUT, I can only do that one column at a time, and there has to be a blank column to the right, otherwise I would overwrite the data in that adjacent column. Again, I have a macro that inserts a new column every other column, but that's just another step I'm trying to avoid.
Thanks!
stb