+ Reply to Thread
Results 1 to 8 of 8

convert Alphanumeric Value into Numeric Value in new column

  1. #1
    Registered User
    Join Date
    11-08-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    32

    convert Alphanumeric Value into Numeric Value in new column

    I have the following Data Validation options in cells in Column A: 0, <50, 50+, 100+, 250+, 500+, 1000+, 2500+, 5000+, Call
    I want to automatically have them appear as numeric values in Column B as these corresponding values: 0, 50, 50, 100, 250, 500, 1000, 2500, 5000, 100

  2. #2
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: convert Alphanumeric Value into Numeric Value in new column

    ie data at A1
    (formula array)
    =MAX(IFERROR(--MID(A1,ROW(1:10),SUMPRODUCT((ISNUMBER(--MID(A1,ROW(1:10),1)))*1)),""))

  3. #3
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: convert Alphanumeric Value into Numeric Value in new column

    Data start A1 :

    =SUMPRODUCT(MID(0&A1,LARGE(INDEX(ISNUMBER(--MID(A1,ROW($1:$25),1))*ROW($1:$25),0),ROW($1:$25))+1,1)*10^ROW($1,$25)/10)

    Azumi

  4. #4
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: convert Alphanumeric Value into Numeric Value in new column

    Is the data validation directly entered into the DV refers to? or is the list a range of cells stored elsewhere ?
    if directly entered you could try this :
    (assuming DV in A1) B1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    if stored elsewhere, say Z1-Z10, then put the values in AA1-AA10 and use either
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    or
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Hope these help
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: convert Alphanumeric Value into Numeric Value in new column

    =IFERROR(--SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"<",""),"+",""),"call",100),"")
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Registered User
    Join Date
    11-08-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: convert Alphanumeric Value into Numeric Value in new column

    Quote Originally Posted by martindwilson View Post
    =IFERROR(--SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"<",""),"+",""),"call",100),"")
    Thanks, this one works great, except for the value Call is not being replaced with 100 or any other value

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: convert Alphanumeric Value into Numeric Value in new column

    change call to Call substitute is case sensitive
    or
    use
    =IFERROR(--SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(UPPER(A1),"<",""),"+",""),"CALL",100),"")

  8. #8
    Registered User
    Join Date
    11-08-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: convert Alphanumeric Value into Numeric Value in new column

    Ah, i didn't notice, that does it. Thanks Again!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Find alphanumeric values in one column and split alpha from numeric
    By bowdendavid in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-08-2013, 03:23 PM
  2. VBA Excel 2007 - Convert column alpha to numeric value
    By bmack in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-06-2013, 12:05 AM
  3. Sort by Numeric value from Alphanumeric column
    By onenessboy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-08-2012, 02:39 AM
  4. [SOLVED] IF conditon on numeric and alphanumeric
    By emina002 in forum Excel General
    Replies: 5
    Last Post: 06-13-2012, 04:34 AM
  5. [SOLVED] How to convert contents of column from numeric data type to text
    By moondaddy in forum Excel General
    Replies: 6
    Last Post: 04-29-2006, 07:00 PM

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