cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
%3CLINGO-SUB%20id%3D%22lingo-sub-216358%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EConvertir%20mg%20%2F%20dL%20a%20mg%20%2F%20l%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-216358%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%C2%A1%C2%A1%C2%A1HOLA!!!%3C%2FP%3E%3CP%3ETengo%20una%20columna%20y%20tengo%20algunas%20de%20las%20medidas%20en%20mg%20%2F%20dL%20la%20otra%20mitad%20en%20mg%20%2F%20L.%20%C2%BFC%C3%B3mo%20es%20la%20mejor%20manera%20de%20convertirlos%3F%3C%2FP%3E%3CP%3E%C2%A1Gracias%20de%20antemano!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-216390%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Convertir%20mg%20%2F%20dL%20a%20mg%20%2F%20l%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-216390%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ESi%20conoce%20el%20n%C3%BAmero%20exacto%20de%20filas%20con%20datos%20en%20mg%20%2F%20dL%20vs.%20mg%20%2F%20L%2C%20puede%20crear%20una%20nueva%20columna%20con%20una%20declaraci%C3%B3n%20%22If%22%20que%20verifique%20que%20la%20%22Fila%20()%22%20sea%20m%C3%A1s%20peque%C3%B1a%20o%20igual%20que%20la%20fila%20de%20umbral.%20%3CBR%20%2F%3E%20Si%20(Fila%20()%20%26lt%3B%3D%2050%2C%20%3CBR%20%2F%3E%20%3A%20DATOS%20*%2010%2C%20%3CBR%20%2F%3E%20%3ADATOS%20%3CBR%20%2F%3E%20)%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20Si%20tiene%20una%20columna%20de%20referencia%20con%20las%20Unidades%2C%20puede%20usar%20la%20misma%20declaraci%C3%B3n%20%22Si%22%20simple%20de%20la%20siguiente%20manera%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20Si%20(UNIDAD%20%26lt%3B%3D%20%22mg%20%2F%20dL%22%2C%20%3CBR%20%2F%3E%20%3A%20DATOS%20*%2010%2C%20%3CBR%20%2F%3E%20%3ADATOS%20%3CBR%20%2F%3E%20)%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
Batista
Level II

Converting mg/dL to mg/L

HI!!!

I have a column and I have some of the measures are in mg/dL the other half in mg/L . How is the best way to convert them?

Thank you in advance!

1 REPLY 1
Thierry_S
Super User

Re: Converting mg/dL to mg/L

If you know the exact number of rows with data in mg/dL vs. mg/L, you can create a new column with an "If" statement checking for the "Row()" to be smaller or equal to the threshold row.
If( Row() <= 50,
:DATA * 10,
:DATA
)

If you have a reference column with the Units, the same simple "If" statement can be used as follows

If( UNIT <= "mg/dL",
:DATA * 10,
:DATA
)
Thierry R. Sornasse

Recommended Articles