ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I shorten a number? (https://www.excelbanter.com/excel-discussion-misc-queries/63529-how-do-i-shorten-number.html)

swingkittenva

How do I shorten a number?
 
I have a list of 10-digit numbers, but I want to apply a formula/function or
format the cells so that only the first 6 digits show up. Is that possible?

Vijay

How do I shorten a number?
 
If you use the function below in another column next to your list, only 6
digits can be viewed...

=LEFT(F20,6)

Hope this helps.
Vijay

"swingkittenva" wrote:

I have a list of 10-digit numbers, but I want to apply a formula/function or
format the cells so that only the first 6 digits show up. Is that possible?


Stephen

How do I shorten a number?
 
"swingkittenva" wrote in message
...
I have a list of 10-digit numbers, but I want to apply a formula/function
or
format the cells so that only the first 6 digits show up. Is that
possible?


For a number in A1 you could use
=LEFT(A1,6)
which gives the first 6 characters as a text string
or
=VALUE(LEFT(A1,6))
which converts the text string back to a number.



B. R.Ramachandran

How do I shorten a number?
 
Hi,

If the 10-digit numbers are in A2:A101, enter the following formula in B2
and enter. Autofill the formula down to B101.

=LEFT(A2,6)

If you don't want the original numbers any more, select and copy B2:B101,
"Edit" -- "Paste Special" -- "Values" -- "OK". Then delete Column A.

Regards,
B. R. Ramachandran

"swingkittenva" wrote:

I have a list of 10-digit numbers, but I want to apply a formula/function or
format the cells so that only the first 6 digits show up. Is that possible?



All times are GMT +1. The time now is 04:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com