+ Reply to Thread
Results 1 to 7 of 7

Extract and add numbers from a text range

  1. #1
    Registered User
    Join Date
    12-14-2015
    Location
    Chennai
    MS-Off Ver
    2007
    Posts
    4

    Extract and add numbers from a text range

    I have columns in a range like this

    Column1,Column2,Column3
    5O,5O2N,2N

    What I need is to sum all the values before O and N separately. Like the following,

    Column4,Column5
    10,4

    FYI. This scenario can also include decimal values. Also, as I need to implement this in Google Sheets, I need this in a direct excel formula rather than a VBA code.

    Is this possible? Kindly confirm.

  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,169

    Re: Extract and add numbers from a text range

    Please post a file with representative set of data.

    Click "Go Advanced" the "Paper Clip" icon to upload a file.

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Extract and add numbers from a text range

    IS ALWAYS O is First in a cell if there is O and N in the same cell
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Registered User
    Join Date
    12-14-2015
    Location
    Chennai
    MS-Off Ver
    2007
    Posts
    4

    Re: Extract and add numbers from a text range

    Yes. Always O comes first in any cell.

  5. #5
    Registered User
    Join Date
    12-14-2015
    Location
    Chennai
    MS-Off Ver
    2007
    Posts
    4

    Re: Extract and add numbers from a text range

    Thanks for your reply.

    Here is the sample file. Samples.xlsx

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Extract and add numbers from a text range

    D2
    Please Login or Register  to view this content.
    E2
    Please Login or Register  to view this content.
    Try this array formula (Ctrl+Shift+Enter) and copy towards down
    see attached file
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-14-2015
    Location
    Chennai
    MS-Off Ver
    2007
    Posts
    4

    Re: Extract and add numbers from a text range

    Wow!! This worked like a charm.

    Thanks a lot for your response.

+ 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 numbers/text after '
    By shrijan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-27-2013, 09:00 AM
  2. [SOLVED] Extract Certain Numbers from Text
    By tgallag1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-03-2013, 08:17 AM
  3. Extract only text and numbers from a range that includes 0's and ""
    By emricki in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-26-2011, 04:19 PM
  4. Extract numbers before text
    By OptionTrader in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-20-2009, 01:03 PM
  5. extract numbers from text
    By stevekirk in forum Excel General
    Replies: 2
    Last Post: 09-09-2007, 05:31 PM
  6. Extract numbers from cell with Text and Numbers
    By wiredwrx in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-18-2006, 06:00 PM
  7. [SOLVED] How do I extract numbers from a cell with both text and numbers?
    By SHANNON in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-01-2005, 10:35 PM
  8. [SOLVED] extract numbers from cell containing text & numbers
    By [email protected] in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-14-2005, 03:10 AM

Tags for this Thread

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