Big problem.................

W

Wu

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
 
M

Mike H

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
 
J

joeu2004

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 -----
 
W

Wu

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

Ron Rosenfeld

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top