Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Wu Wu is offline
external usenet poster
 
Posts: 36
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default 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


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default 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



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,059
Default 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


  #7   Report Post  
Posted to microsoft.public.excel.misc
Wu Wu is offline
external usenet poster
 
Posts: 36
Default 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


  #8   Report Post  
Posted to microsoft.public.excel.misc
Wu Wu is offline
external usenet poster
 
Posts: 36
Default 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

  #9   Report Post  
Posted to microsoft.public.excel.misc
Wu Wu is offline
external usenet poster
 
Posts: 36
Default 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



  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default 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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Started out as an Access problem. Now an Excel problem RobertM Excel Discussion (Misc queries) 2 April 26th 06 07:30 PM
problem with a conditional max problem Brian Cornejo Excel Discussion (Misc queries) 1 February 18th 05 06:25 PM


All times are GMT +1. The time now is 05:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"