View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default Text Function 2nd argument

Hi,

Here's a number format that does what you want
[=1000000]0,,"M" ;General

but its better I think) if you adapt this to include thousands with this

[=1000000]0,,"M";[=1000]0,"K";0

Mike
"Gene" wrote:

I would like to format 1000000 (1 million) using the Text Function into $1M.
It works for K:
a1=1000
=TEXT(D15,"$#,###,k") Works fine
but
when a1=1000000
and I replace the K with an M, I get a #value error
I would like my end result to look like: $1M

It was successful just using the Formatcellscustom.
THANKS!
Gene:)