My example: here is some numbers: 00230, 12365, 1234
I need to place a decimal point after 3rd number from the left.. so I would get the following results: 002.30, 123.65 and 123.4
How do I do that? please
hm, let's look at the last number 1234, if you divide the number by 100 = result will be 12.34 my problem is that the decimal point needs to be after 3rd number from the left
Assuming your "numbers" are really text (as indicated by the leading zero on the first and only 4 characters on the last) then this formula should give you what you want:
Code:
=LEFT(A1,3)&"."&MID(A1,4,999)
To see whether your "numbers" are numbers or text, try the following formula to see what you get:
Code:
=TYPE(A1)
If it shows a 2, then it is really text. If it is really a number, then it would show a 1.
Oh pointy bird,
Oh pointy pointy,
Anoint my head,
Anointy nointy.
Steve Martin in The Man With 2 Brains and L.A. Story
To get the best answers fast, please read faq181-2886
If 00230 <> 230 then you are not dealing with NUMBERS. rather, you are dealing with STRINGS of numeric digits. BIG DIFFERENCE.
If your NUMBER, 230 is FORMATTED with leading ZEROS, it's STILL 230 and using =LEFT(A1,3) returns 230.
The OTHER thing is that =LEFT(A1,3) & "." & RIGHT(A1,(LEN(A1)-3)) returns a STRING that will NOT calculate arithmatically under some circumstances. Excel has some smarts to do the STRING to NUMBER conversion, but it can cause problems.
Skip, [red]Be advised:[/red] When transmitting sheet music... If it ain't baroque, don't fax it!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.