excel - Rounding number values in notation for thousands and millions -


any recipes out there "smart" number formatting formula that's "scale-aware," la rails actionview's distance_of_time_in_words method?

i expect enter number like: 1,816,724 , see 1.8m (or enter 2,394 , see 2.4k).

select cells receive custom number format , tap ctrl+1. when format cells dialog opens, go number tab , choose custom list down left side. supply following type:,

[>999999]0.0,,\m;[>999]0.0,k;0 

note m reserved character in format mask , must escaped backslash become literal. can wrap in quotes since use custom number formats in vba's .numberformat property, prefer escape character avoid having deal quotes within quoted strings. results should resemble following:

        m , k custom number format


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -