ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Big problem................. (https://www.excelbanter.com/excel-discussion-misc-queries/208367-big-problem.html)

Wu

Big problem.................
 
I have the following data,

1. 103
2. 1002
3. 205

The last digit of above number represent how many zero it is.
103 equal to 10000 (10K), 1002 equal to 10000 (10k), 205 equal to 2000000(2M)

How to use the function to change 103 to 10K, 1002 to 10K, 205 to 2M ?

In fact, not only these number , other number I want to change contain
............3491 change to 3.49K, 121 change to 120 ,etc

Max

Big problem.................
 
Try: =(LEFT(A1,LEN(A1)-1)&REPT(0,RIGHT(A1)))*1
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,000 Files:362 Subscribers:62
xdemechanik
---
"Wu" wrote:
I have the following data,

1. 103
2. 1002
3. 205

The last digit of above number represent how many zero it is.
103 equal to 10000 (10K), 1002 equal to 10000 (10k), 205 equal to 2000000(2M)

How to use the function to change 103 to 10K, 1002 to 10K, 205 to 2M ?

In fact, not only these number , other number I want to change contain
...........3491 change to 3.49K, 121 change to 120 ,etc


Mike H

Big problem.................
 
Hi,

Assuming your first 3 example aare in a1 down put this in b1 and drag down

=(A1-RIGHT(A1,1))*10^RIGHT(A1,1)

Mike

"Wu" wrote:

I have the following data,

1. 103
2. 1002
3. 205

The last digit of above number represent how many zero it is.
103 equal to 10000 (10K), 1002 equal to 10000 (10k), 205 equal to 2000000(2M)

How to use the function to change 103 to 10K, 1002 to 10K, 205 to 2M ?

In fact, not only these number , other number I want to change contain
...........3491 change to 3.49K, 121 change to 120 ,etc


Niek Otten

Big problem.................
 
=LEFT(A1,LEN(A1)-1)*10^RIGHT(A1,1)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Wu" wrote in message
...
I have the following data,

1. 103
2. 1002
3. 205

The last digit of above number represent how many zero it is.
103 equal to 10000 (10K), 1002 equal to 10000 (10k), 205 equal to
2000000(2M)

How to use the function to change 103 to 10K, 1002 to 10K, 205 to 2M ?

In fact, not only these number , other number I want to change contain
...........3491 change to 3.49K, 121 change to 120 ,etc



Mike H

Big problem.................
 
oops forgot the division

=(A1-RIGHT(A1,1))*10^RIGHT(A1,1)/10

"Mike H" wrote:

Hi,

Assuming your first 3 example aare in a1 down put this in b1 and drag down

=(A1-RIGHT(A1,1))*10^RIGHT(A1,1)

Mike

"Wu" wrote:

I have the following data,

1. 103
2. 1002
3. 205

The last digit of above number represent how many zero it is.
103 equal to 10000 (10K), 1002 equal to 10000 (10k), 205 equal to 2000000(2M)

How to use the function to change 103 to 10K, 1002 to 10K, 205 to 2M ?

In fact, not only these number , other number I want to change contain
...........3491 change to 3.49K, 121 change to 120 ,etc


joeu2004

Big problem.................
 
On Oct 30, 6:11 am, Wu wrote:
The last digit of above number represent how
many zero it is. 103 equal to 10000 (10K),
1002 equal to 10000 (10k), 205 equal to 2000000(2M)
How to use the function to change 103 to 10K,
1002 to 10K, 205 to 2M ?


Assuming you actually want numeric results (e.g. 2000000, not "2M"),
try:

=INT(A1/10)*10^MOD(A1,10)

That also assumes that your original representation (e.g. 103) is
numeric. If it is text, change both references to A1 to N(A1).


----- original posting -----

On Oct 30, 6:11*am, Wu wrote:
I have the following data,

1. *103
2. *1002
3. *205

The last digit of above number represent how many zero it is.
103 equal to 10000 (10K), 1002 equal to 10000 (10k), 205 equal to 2000000(2M)

How to use the function to change 103 to 10K, 1002 to 10K, 205 to 2M ?

In fact, not only these number , other number I want to change contain
...........3491 change to 3.49K, 121 change to 120 ,etc



Wu

Big problem.................
 
YOUR FUNCTION IS WELL, BUT I WOULD LIKE TO CHANGE 102 TO 1K, 103 TO 10K, 205
TO 2M...........................



"Niek Otten" wrote:

=LEFT(A1,LEN(A1)-1)*10^RIGHT(A1,1)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Wu" wrote in message
...
I have the following data,

1. 103
2. 1002
3. 205

The last digit of above number represent how many zero it is.
103 equal to 10000 (10K), 1002 equal to 10000 (10k), 205 equal to
2000000(2M)

How to use the function to change 103 to 10K, 1002 to 10K, 205 to 2M ?

In fact, not only these number , other number I want to change contain
...........3491 change to 3.49K, 121 change to 120 ,etc



Wu

Big problem.................
 
BUT HOW TO CHANGE 102 TO 1K, 205 TO 2M..................

"Max" wrote:

Try: =(LEFT(A1,LEN(A1)-1)&REPT(0,RIGHT(A1)))*1
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,000 Files:362 Subscribers:62
xdemechanik
---
"Wu" wrote:
I have the following data,

1. 103
2. 1002
3. 205

The last digit of above number represent how many zero it is.
103 equal to 10000 (10K), 1002 equal to 10000 (10k), 205 equal to 2000000(2M)

How to use the function to change 103 to 10K, 1002 to 10K, 205 to 2M ?

In fact, not only these number , other number I want to change contain
...........3491 change to 3.49K, 121 change to 120 ,etc


Wu

Big problem.................
 
I WANT TO CHANGE FROME 102 TO 1K, 205 TO 2M.............

"joeu2004" wrote:

On Oct 30, 6:11 am, Wu wrote:
The last digit of above number represent how
many zero it is. 103 equal to 10000 (10K),
1002 equal to 10000 (10k), 205 equal to 2000000(2M)
How to use the function to change 103 to 10K,
1002 to 10K, 205 to 2M ?


Assuming you actually want numeric results (e.g. 2000000, not "2M"),
try:

=INT(A1/10)*10^MOD(A1,10)

That also assumes that your original representation (e.g. 103) is
numeric. If it is text, change both references to A1 to N(A1).


----- original posting -----

On Oct 30, 6:11 am, Wu wrote:
I have the following data,

1. 103
2. 1002
3. 205

The last digit of above number represent how many zero it is.
103 equal to 10000 (10K), 1002 equal to 10000 (10k), 205 equal to 2000000(2M)

How to use the function to change 103 to 10K, 1002 to 10K, 205 to 2M ?

In fact, not only these number , other number I want to change contain
...........3491 change to 3.49K, 121 change to 120 ,etc




Ron Rosenfeld

Big problem.................
 
On Thu, 30 Oct 2008 07:11:01 -0700, Wu wrote:

I have the following data,

1. 103
2. 1002
3. 205

The last digit of above number represent how many zero it is.
103 equal to 10000 (10K), 1002 equal to 10000 (10k), 205 equal to 2000000(2M)

How to use the function to change 103 to 10K, 1002 to 10K, 205 to 2M ?

In fact, not only these number , other number I want to change contain
...........3491 change to 3.49K, 121 change to 120 ,etc



=INT(A1/10)*10^(A1-INT(A1/10)*10)

If your values will not exceed something like 2^28, then you could use:

=INT(A1/10)*10^MOD(A1,10)

--ron


All times are GMT +1. The time now is 08:51 AM.

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