hi watersev,
When I set it up manually I use a simple, no-frills UDF:
It returns a single value, CUNITS, and not "ppm". I insert the function in the first cell and filldown and then autofilter the column leaving out the blanks and add ppm to second column. I set the function up so it would just put blanks if the unit was not there (and leave room for future additions). I convert most mass concentration items to parts per million (a base unit of comparison) and don't care about the rest since I filter/massage the data in a couple of pivottables later in the analysis.
I know I could streamline the function but I set it up for ease of reading rather than efficiency.
Did I answer you question? Short story is VALUE=CVALUE for mg/L, ug/g, and mg/kg and the CUNIT for all three becomes "ppm". "ug/kg" divides VALUE by 1000 and the the CUNIT would be "ppm". I would like to have the values and not formulas populated in the cells.
g
Bookmarks