+ Reply to Thread
Results 1 to 2 of 2

Extract number from any position of the text

  1. #1
    Registered User
    Join Date
    04-11-2020
    Location
    Montreal
    MS-Off Ver
    10
    Posts
    4

    Lightbulb Extract number from any position of the text

    Hello,

    I see the below formula to separate number and text. I understand in general that it 1) check each character in the text and takes out only the numbers 2) 10^ that number by its position 3) Finally sumproduct to sum up all these number together.
    However, I could not understand in detail how each inside formula works. Could you help me please? Thank you so much.

    =SUMPRODUCT(MID(0&A22,LARGE(INDEX(ISNUMBER(--MID(A22,ROW(INDIRECT("1:"&LEN(A22))),1))*ROW(INDIRECT("1:"&LEN(A22))),0),ROW(INDIRECT("1:"&LEN(A22))))+1,1)*10^ROW(INDIRECT("1:"&LEN(A22))))/10

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Extract number from any position of the text

    These kinds of formulas are always a bit difficult to explain.
    This is an alternative with fewer moving parts:
    Please Login or Register  to view this content.
    Or...if you have a later version of Excel:
    Please Login or Register  to view this content.
    Helpful?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

+ 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. [SOLVED] Extract Only Number From Right Position
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-30-2019, 02:29 AM
  2. [SOLVED] How to extract a text if you know the position of the first letter and letter number
    By zanshin777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-04-2018, 05:00 AM
  3. [SOLVED] How to extract capitalize letter text at certain position
    By harimin in forum Excel General
    Replies: 16
    Last Post: 02-09-2016, 11:21 PM
  4. [SOLVED] Extract certain text dependant on number of characters in text
    By bjoanmark in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-28-2014, 02:57 AM
  5. finding position of number in text
    By momo123 in forum Excel General
    Replies: 9
    Last Post: 08-07-2009, 07:35 AM
  6. find number position in excel text cell
    By Don in forum Excel General
    Replies: 5
    Last Post: 04-07-2006, 04:40 PM
  7. How to extract text from-to a specific position in a text
    By Sven in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-13-2005, 04: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