View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
Paul Mathews
 
Posts: n/a
Default Recognition of Binary Prefix Numerical Format

One potential solution involves the use of the "Substitute" function. Let's
assume that you have the value "10K" in cell A1 (the other data is also in
column A). What you'd like is to replace "10K" with "10000". You can do
this as follows (I'll assume that the result will reside in cell B1):

B1 =SUBSTITUTE(A1,"K","000")

We also would like to set the "M" suffix to "000000". So modify the above
formula to:

B1 =SUBSTITUTE(SUBSTITUTE(A1,"K","000"),"M","000000")

Okay, so that takes care of the thousands and millions. The result of the
substitute function is a text string that looks like a number. We'll need
that string to actually be a number:

B1 =VALUE(SUBSTITUTE(SUBSTITUTE(A1,"K","000"),"M","00 0000"))

Now copy this formula down for all data items in column A and you should be
good to go.

"Dogbert" wrote:


Dear forum users,

There is a problem I wonder if you could help me with. Perhaps it is a
simple matter but I have been unable to find the answer.

Large numbers are commonly abbreviated with binary prefixes, especially
in finance. By binary prefix, I am referring to the use of a single
letter to represent the order of magnitude of a number. For instance
"K" represents a thousand, and "M" denotes a million. e.g. The
population of the US is around 300M (or 0.3B).

So when I have a column of numbers such as "... 8000; 9000; 10K;
11K...", I want Excel to convert or recognise the value of "K". At the
moment, Excel is just treating this as text. Does anyone know how to do
this?

Thank you in advance for your help.


--
Dogbert
------------------------------------------------------------------------
Dogbert's Profile: http://www.excelforum.com/member.php...o&userid=35338
View this thread: http://www.excelforum.com/showthread...hreadid=551072