+ Reply to Thread
Results 1 to 6 of 6

formula to extract number from alpha numeric data according to specific column criteria

  1. #1
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    formula to extract number from alpha numeric data according to specific column criteria

    I have a worksheet where I have to extract the quantity from column H to E based on column K .

    The criteria to extract to column E are U,m2,m,2U from column K , others to be disregarded

    There are the word EA with the numeric DATA with trailing space in hundreds and thousand figures EA of COLUMN H (1 8000.00EA)which need to be removed if condition is met.

    Looking a formula to to achieve this on a spreadsheet of 7000 rows
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: formula to extract number from alpha numeric data according to specific column criteri

    Try

    in E2 ....

    =IF(OR(K2={"U","m2","m","2U"}),SUBSTITUTE(H2,"EA",""),"")

    ...leaves TEXT field ... need to revise!
    Last edited by JohnTopley; 09-26-2017 at 11:18 AM.

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: formula to extract number from alpha numeric data according to specific column criteri

    In E2, try

    =IF(OR(K2={"U","m2","m","2U"}),SUBSTITUTE(LEFT(H2,LEN(H2)-2)," ","")+0,"")

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: formula to extract number from alpha numeric data according to specific column criteri

    ...corrected



    =IF(OR(K2={"U","m2","m","2U"}),SUBSTITUTE(SUBSTITUTE(H2,".00EA","")," ",""),"")

  5. #5
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    Re: formula to extract number from alpha numeric data according to specific column criteri

    Thank you both guys


    both formula works as a charm

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: formula to extract number from alpha numeric data according to specific column criteri

    You're welcome. Glad we could help.

    Thanks for the rep!

+ 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. Replies: 14
    Last Post: 03-08-2014, 03:25 PM
  2. [SOLVED] Formula to only return a number value in a column with mixed Alpha and Numeric values
    By AusVivienne in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-05-2012, 03:17 AM
  3. Replies: 4
    Last Post: 05-19-2011, 05:29 PM
  4. Replies: 2
    Last Post: 06-18-2010, 05:10 PM
  5. Extract Number from Alpha Numeric String
    By ausboi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-25-2009, 04:31 AM
  6. Replies: 1
    Last Post: 11-28-2006, 02:42 AM
  7. only extract numeric value from alpha numeric cell
    By Fam via OfficeKB.com in forum Excel General
    Replies: 5
    Last Post: 04-26-2006, 01:55 PM
  8. [SOLVED] Extract Numbers from Alpha-Numeric String
    By MrBill in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-02-2005, 06:17 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