Your descriptions of what you want are inconsistent.
In the above, you write 0.1 --> 0R1
but in a later posting you write:
"Numbers below 1.0 are shown decimal (R) first"
which implies that 0.1 --> R1
Both of which, the Brits state are correct.
I am just trying to display our standard values using their
nomenclature, and they use the R as a decimal point and the presence of a
preceding zero is not required. Essentially, it can only refer to non
"stripe marked" resistors, because the list of valid numerals that can be
used in the first three (or two) significant digit values have no values
that begin with zero.
The E24, E48, and E96 "preferred values" all begin with a whole number,
and it is a rule.
A part that is bought and numerically marked and not marked using a
color coded demarcation are considered 'custom' values and can be marked
differently. The example being the numeric designation on a surface
mount resistor compared to the colored stripe designation on an axial
leaded, though-hole resistor.
Since the list is finite I could create a substitution for every value
or groups of values for each unique case or set of cases.
It simply does not merely follow the decimal as the way the industry
represents resistors using three significant digits and an order of
magnitude multiplier (with two of those being divisors).
Anyway, long story short, I have to give the resultant needs a bit more
research. I think substitution will be fine since this is not some huge
spreadsheet workbook full of difficult math or huge numeric data sets.
It should be no problem to simple use conditional formatting,data
validation, and substitutions, etc. to get all of the variants without
having to do every single permutation individually. I should be able to
reduce it to ten classes (or twelve) to match the twelve multiplication
factors, which determine which and whether or not a decimal occurs in
side the three significant digit set for the value being derived at the
time.
Should be no need for VB if I stick with Substututions, I will simply
have to do a LOT of them in the worst case.
I would have an entire lookup table.
Heck, the more I think about it, the easier I think it will be.
As Arnold would say... "I'll be back..."
I will return to give the link to the finished, refined workbook, and
the resultant yay or nay as to whether I succeeded or not.
Thanks for your help thus far. Feedback to follow.