Z
ZenMasta
I'm in the US too. Strange. But glad it worked. Thanks again.
121c
133bb
hh212
133bb
This works, taken from a posting by macropod:
"..Here's a more flexible formula to strip out all leading and trailing
non-numerics from a cell:
=MID(A1,MIN(IF(ISNUMBER((--MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))),(ROW(INDIRECT("1:"&LEN(A1)))),"")),MAX(IF(ISNUMBER((--MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))),(ROW(INDIRECT("1:"&LEN(A1)))),""))-MIN(IF(ISNUMBER((--MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))),(ROW(INDIRECT("1:"&LEN(A1)))),""))+1)
This is an array formula, so you input it with Ctrl-Shift-Enter, after
which it will ben enclosed in a pair of braces (ie '{}') .."
ZenMasta said:Hi,
I'm trying to figure out portion info for food nutrition.
I have a sheet that has nutrition facts etc. However the columns will
often have letters like g, mg, mcg (grams miligrams, micrograms etc)
b12=33g d3=3
Well, =b12/d3 = 0 because the letter is throwing it off.
Is there a way I can ignore letters in a field so I can still perform math
on those fields?
__________ Information from ESET Smart Security, version of virus
signature database 4736 (20100101) __________
The message was checked by ESET Smart Security.
http://www.eset.com
Hello Max,Rick, that's great. How can your formula be modified so that it returns it
as text numbers instead, with all leading zeros retained?