Expand K or M amounts to full numbers

Turn 1.2K into 1200 and 0.5M into 500000.

What you'll make

In Excel: 1.2K becomes 1200.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1UPPER(RIGHT(A8,1))Reads the last letter, in capitals."K"
2"K",NUMBERVALUE( … )*1000For K, takes the number before it times 1,000.1200
3"M",NUMBERVALUE( … )*1000000For M, takes the number times 1,000,000.Not used for row 8
4"Review scale"Shown when the last letter isn't K or M.Not used for row 8
5SWITCH( … )Picks the part that matches the letter.1200

Small k and m work too.

=SWITCH(UPPER(RIGHT(A8,1)),"K",NUMBERVALUE(LEFT(A8,LEN(A8)-1),".",",")*1000,"M",NUMBERVALUE(LEFT(A8,LEN(A8)-1),".",",")*1000000,"Review scale")

How to use it

Yellow bar at the top? Click Enable Editing.

  1. See it work. The Example tab shows 20 made-up examples with the formula already in.
  2. Use your own list. Paste short amounts like 1.2K into the green column of the Template tab. The full amounts fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

K means thousand and M means million only if your source says so. Check that first.

Microsoft's help: SWITCH function