+ Reply to Thread
Results 1 to 3 of 3

Converting Text within a cell to multiplier

  1. #1
    Registered User
    Join Date
    11-18-2009
    Location
    New York City, US
    MS-Off Ver
    Excel 2003
    Posts
    2

    Converting Text within a cell to multiplier

    I'm not very experienced with excel, not beginner but certainly not pro, so any help would really be appreciated.

    I have numbers mixed in with a letter which I would like to replace with a certain multiplier. To give an example, I start off with the following in the cell: "100K". I'd like to replace the K with "x1000" so that it turns the cell into 100000. If it'd be possible to include some code that would also convert "m" to "x1000000" that would be absolutely wonderful.

    Having one piece of code search for K and M in the cell and then replace it as necessary would be best.

    Thanks in advance!

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Converting Text within a cell to multiplier

    Hi Greenfire, and welcome to the forum.

    Would a formula suffice?

    =IF(ISNUMBER(FIND("K",UPPER(G1))),SUBSTITUTE(UPPER(G1),"K","")*1000,IF(ISNUMBER(FIND("M",UPPER(G1))),SUBSTITUTE(UPPER(G1),"M","")*1000000,G1))

    Where G1 contains a number, or a number with a K or an M in it.

  3. #3
    Registered User
    Join Date
    11-18-2009
    Location
    New York City, US
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Converting Text within a cell to multiplier

    Beautiful. Exactly what I was looking for.

    Thanks a lot!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1