+ Reply to Thread
Results 1 to 6 of 6

Formula to Extract Number from First occurance of Text Col I

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,726

    Formula to Extract Number from First occurance of Text Col I

    I have a sheet "Imported Data"


    I need to extract a number to the left of text like "AVG EMP/MTH" that occurs for the first time in Col I on sheet "Imported Data"

    I set of a formula as follows , but it returns a blank

    Please Login or Register  to view this content.
    It would be appreciated if someone could amend my formula

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,914

    Re: Formula to Extract Number from First occurance of Text Col I

    Try this:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,726

    Re: Formula to Extract Number from First occurance of Text Col I

    thanks for the help. Formula works 100%

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Formula to Extract Number from First occurance of Text Col I

    You can also use Filter function according to your office version

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

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

    Re: Formula to Extract Number from First occurance of Text Col I

    Another alternative:


    =-LOOKUP(1,-LEFT(INDEX('Imported Data'!I:I,MATCH("*AVG*EMP/MTH*",'Imported Data'!I:I,0)),ROW($1:$100)))

    all of the formulae take into account that there's a double space after AVG in the first instance of:


    AVG EMP/MTH instead of
    AVG EMP/MTH

    shukla's may affect performance as this bit: ISNUMBER(SEARCH("*AVG*EMP/MTH*",'Imported Data'!I:I)) searches ALL 1,000,000-plus rows.
    Last edited by Glenn Kennedy; 03-23-2024 at 03:54 AM.
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,726

    Re: Formula to Extract Number from First occurance of Text Col I

    Thanks for the help Glenn& Shukla

+ 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] Formula to extract Number values from such text y 8P, 5BG, S yR 1U
    By qexcel2 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-06-2023, 08:46 PM
  2. Error in formula for fixing 4 characters in a number from text extract
    By snchitre in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-02-2022, 09:41 AM
  3. [SOLVED] Formula to find Row# of Occurance of certain text
    By rizmomin in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-26-2020, 07:05 PM
  4. Need Formula to extract number from text string
    By tuongtu3 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 03-28-2015, 06:01 PM
  5. [SOLVED] Formula to extract Registration Number (ABN) from text in a cell
    By &Roo in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 01-20-2015, 05:39 AM
  6. [SOLVED] Count the occurance of a number or text in a range that meets other criteria
    By kaneohe247 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-29-2012, 12:51 PM
  7. extract number and use in formula from text & numbers in cell
    By ivory_kitten in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-14-2006, 12:45 AM

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