0

I got to search and find similar issues on this, but not specifically on this

'Why this works:
Range("A2").NumberFormat = "[>999999]0,,\M;[>999]0,K;0"

'And not this:
Range("A2").NumberFormat = "[>999999999]0,,,B;[>999999]0,,\M;0"

What I am trying to accomplish is to have billions as "B" and millions as "M" (ideally all three with thousands as "K"). As always thanks for the help/explanations.

2
  • You're missing a backslash before the B in the format code. Commented Jul 8, 2020 at 12:41
  • Try: [>=1000000000]#.##00,,," B";[>=1000000]#0.0,," M";#0.0," K" Commented Jul 8, 2020 at 12:41

1 Answer 1

1

Yes, thanks for the quick replies, I got it to work. Backslashes are mandatory not just for reserve "M" letter

Range("A2").NumberFormat = "[>=1000000000]0,,,\B;[>=1000000]0,,\M;0,\K"

Thanks Rory

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.