+ Reply to Thread
Results 1 to 17 of 17

Extracting specific word/number from a cell

  1. #1
    Registered User
    Join Date
    10-15-2017
    Location
    Bangalore, India
    MS-Off Ver
    Ms office 10
    Posts
    35

    Extracting specific word/number from a cell

    Hi there,

    Can anyone help me to pull the code number from a cell to the adjacent cell.

    The code has 10 digits and it starts with "7". Attached please find the data.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Extracting specific word/number from a cell

    Attachment please.

  3. #3
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Extracting specific word/number from a cell

    Place this into F3:
    Please Login or Register  to view this content.
    Copy down.

    Pete

  4. #4
    Registered User
    Join Date
    10-15-2017
    Location
    Bangalore, India
    MS-Off Ver
    Ms office 10
    Posts
    35

    Re: Extracting specific word/number from a cell

    Here you go..
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-15-2017
    Location
    Bangalore, India
    MS-Off Ver
    Ms office 10
    Posts
    35

    Re: Extracting specific word/number from a cell

    Thank you so much, Pete... Its working.

  6. #6
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Extracting specific word/number from a cell

    Anytime.

  7. #7
    Registered User
    Join Date
    10-15-2008
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    11

    Re: Extracting specific word/number from a cell

    is that always start with "700" or it can be other numbers aside from "0" after the "7"?

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by kenkie; 08-20-2018 at 02:35 PM.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Extracting specific word/number from a cell

    Pretty much the same as kenkie...
    =MID(C3,SEARCH("70",C3),10)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  9. #9
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: Extracting specific word/number from a cell

    Hi,

    If you're using the formula in Post #3, you should change the 11 to 10, as it is, your result will contain a Trailing Space, which will be problematic if you're doing further comparisons with the results.

    If your Code number Always starts with either 700 or 70, then use either formula from Post # 7 or #8.

    But if the Only certainty is it Always starts with 7 (i.e. 7123456789), then use this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    See attached.
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Extracting specific word/number from a cell

    jtakw: I sit corrected. 10 would be the magic number. Thanks for the checkup.
    Pete

  11. #11
    Registered User
    Join Date
    10-15-2017
    Location
    Bangalore, India
    MS-Off Ver
    Ms office 10
    Posts
    35

    Re: Extracting specific word/number from a cell

    Hi , I need to lookup the date from Column C to Column G. The problem i face is some of the items in Column F and A are repeated and its amount are different. So if i simply apply vlookup, excel will not pick the correct amount for the items which are repeated.

    For eg. ERRFVA111818-1 is repeated three times (line# 3,4 & 5) and the amount for each line are different($504, $1008 and $750). When i apply vlookup, excel will not pick all the three values/amount. it will only pick $504.
    Attached Files Attached Files

  12. #12
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Extracting specific word/number from a cell

    Vlookup can't be used for a duplicate search table, it only finds the first value for the exact match.

    The simple one is G3
    =C3

    or more complex

    =INDEX($C$3:$C$31,AGGREGATE(15,6,$A$3:$A$31/(F3=$B$3:$B$31),COUNTIF(F$3:F3,F3)))

  13. #13
    Registered User
    Join Date
    10-15-2017
    Location
    Bangalore, India
    MS-Off Ver
    Ms office 10
    Posts
    35

    Re: Extracting specific word/number from a cell

    Hi Bo,

    Thank you so much. Its working. Appreciate your help.

  14. #14
    Registered User
    Join Date
    10-15-2017
    Location
    Bangalore, India
    MS-Off Ver
    Ms office 10
    Posts
    35

    Re: Extracting specific word/number from a cell

    Hi BO,

    Sorry for the confusion.

    This formula won't work if the data in column B and F are not in the same order. Could you please help me to find a formula if the data are not in the same order. Please find the attachment
    Attached Files Attached Files

  15. #15
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Extracting specific word/number from a cell

    Please try

    G3
    =INDEX($C:$C,AGGREGATE(15,6,ROW($B$3:$B$31)/(F3=$B$3:$B$31),COUNTIF(F$3:F3,F3)))

  16. #16
    Registered User
    Join Date
    10-15-2017
    Location
    Bangalore, India
    MS-Off Ver
    Ms office 10
    Posts
    35

    Re: Extracting specific word/number from a cell

    Thank you, Bo. Its working.
    Once again thank you for your valuable time.

  17. #17
    Registered User
    Join Date
    10-15-2017
    Location
    Bangalore, India
    MS-Off Ver
    Ms office 10
    Posts
    35

    Re: Extracting specific word/number from a cell

    Thank you so much, Bo. Its working. That is what i exactly want.

    Once again thank you for your valuable time.

+ 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] If a cell contains a specific word and a number, make the number negative
    By Andrew Watson in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-08-2017, 10:13 AM
  2. Extracting first number from numbers and texts in specific cell
    By macky18 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-25-2014, 08:53 AM
  3. [SOLVED] Extracting Row after The Row above has a Specific Word
    By mookh01 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 08-15-2012, 06:01 PM
  4. [SOLVED] Extracting word for number of specific lenth to other cell
    By parajf in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-11-2012, 09:51 PM
  5. Extracting Specific Word Using Mid/Find
    By Stonesteel15 in forum Excel General
    Replies: 15
    Last Post: 05-21-2012, 10:11 PM
  6. Extracting specific word in a cell
    By Conditional Formatting in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2006, 06:00 PM
  7. If Cell Not Number Than Specific Word?
    By JK in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-17-2005, 03: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