+ Reply to Thread
Results 1 to 4 of 4

Help with formula for extracting number value in cells that contains both text and number

Hybrid View

  1. #1
    Registered User
    Join Date
    04-06-2021
    Location
    Norway
    MS-Off Ver
    Several older verisons, but mostly 365
    Posts
    69

    Help with formula for extracting number value in cells that contains both text and number

    Hi !
    I am working with a workbook where i have a worksheet where i want to extract a numerical value from another sheet rows/cells that contains both numbers and text.
    The sheet i need to get the values from has from 1000 rows and up to 5000 rows where data is imported and paste to cells in comumn A, this results in both text and numbers in the same cell.
    I need to find the cells containing part of specific text, extraxt the numerical value and summarize all, then divide on amount of rows containing the part of specific text to get an average value.

    Attached a sample sheet

    Regards:
    Jan Ovecount extraxtion.xlsm

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Help with formula for extracting number value in cell`s that contains both text and nu

    I think you may have given us a very poor sample.

    after "part of specific text = "1404.52 Liters.

    Is that " ACTUALLY present in the cells?

    Is there ALWAYS only one number in the text?

    Is there ALWAYS only one word after the number?

    Is it ALWAYS Liters?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    04-06-2021
    Location
    Norway
    MS-Off Ver
    Several older verisons, but mostly 365
    Posts
    69

    Re: Help with formula for extracting number value in cell`s that contains both text and nu

    Quote Originally Posted by Glenn Kennedy View Post
    I think you may have given us a very poor sample.

    after "part of specific text = "1404.52 Liters.

    Is that " ACTUALLY present in the cells?, no i added them for showing wich part of specific text to look for.

    Is there ALWAYS only one number in the text?, no there is also other numbers like time and date.

    Is there ALWAYS only one word after the number?, Yes the word after the numbers i need to extract is always one.

    Is it ALWAYS Liters?, Yes the number i need will always end with Liters.
    Hi !
    sorry if the sample i provided was confusing..

    Regards:
    Jan Ove

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Help with formula for extracting number value in cell`s that contains both text and nu

    I was rather hoping that you might have taken the hint and provided a REPRESENTATIVE sample... with expected answers.

    So, a guess.

    =AVERAGE(TEXTAFTER(TEXTBEFORE(TOCOL('Week 01'!A1:A100,1)," ",-1)," ",-1)+0)

    Also, don't use merged cells. They're the spawn of Satan.
    Attached Files Attached Files

+ 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] Extracting number from text, no consistency on where number is located in text
    By yamalady in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-09-2019, 12:17 PM
  2. Extracting text before number(s)
    By hotwax in forum Excel General
    Replies: 6
    Last Post: 06-27-2018, 09:07 PM
  3. [SOLVED] Extracting Multiple Number Values from Text cells into separate cells
    By skydoc in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-14-2016, 10:14 AM
  4. [SOLVED] extracting number from cell contains both text and number alternatively
    By green369 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-03-2013, 10:17 AM
  5. Replies: 6
    Last Post: 07-29-2008, 03:23 PM
  6. Extracting a 'number' from text
    By Anthony Slater in forum Excel General
    Replies: 5
    Last Post: 04-05-2005, 09:06 AM
  7. [SOLVED] Extracting the number from a text
    By Venkatesh V in forum Excel General
    Replies: 1
    Last Post: 02-23-2005, 01:06 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