#1   Report Post  
Posted to microsoft.public.excel.misc
Wu Wu is offline
external usenet poster
 
Posts: 36
Default BIG PROBLEM 2

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 , 3491
to 3.49K ?

Not change to 10000, 2000000........................
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default BIG PROBLEM 2

=CHOOSE(LOOKUP(INT(A1/10)*10^RIGHT(A1,1),{0,1;1000,2;1000000,3}),INT(A1/10)*10^RIGHT(A1,1),(INT(A1/10)*10^RIGHT(A1,1))/10^3&"K",(INT(A1/10)*10^RIGHT(A1,1))/10^6&"M")

Currently, will handle up to millions, if you need billions, just add a 4th
category in the lookup, and on the fourth choice, divide by 10^9 then add the
"B"
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.


"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 , 3491
to 3.49K ?

Not change to 10000, 2000000........................

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default BIG PROBLEM 2

On Thu, 30 Oct 2008 07:49:00 -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 , 3491
to 3.49K ?

Not change to 10000, 2000000........................



Try to keep your questions in the same thread.

Using any of the routines that you were provided, you could Custom Format:

"[<1000]0_ ;[<1000000]0,K;0,,\M"
--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 07:17 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"