+ Reply to Thread
Results 1 to 11 of 11

Find Partial text in an array and extract charaters to right

  1. #1
    Registered User
    Join Date
    11-24-2013
    Location
    UAE
    MS-Off Ver
    Excel 2010
    Posts
    27

    Find Partial text in an array and extract charaters to right

    Hi,

    Since i am newbie, please help on below query

    I have "& Name: 24825" in a cell

    I want to search "& Name: " in an array from colmn A to G and once found i want to extract 5 characters after that

    Thanks,
    Jenita

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Find Partial text in an array and extract charaters to right

    perhaps:
    =MID(CONCATENATE(A1,B1,C1,D1,E1,F1,G1),SEARCH("& Name: ",CONCATENATE(A1,B1,C1,D1,E1,F1,G1),1)+8,5)

  3. #3
    Registered User
    Join Date
    11-24-2013
    Location
    UAE
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Find Partial text in an array and extract charaters to right

    Hey Yudlugar,
    This is not Working. Could you please help me out with Another Alternative

    "& Name: 24825" This Could be in any cell from Column A to F

    I want to search partial text "& Name: " this will be constant and then my final answer would be 24825

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Find Partial text in an array and extract charaters to right

    Hi:
    in A1, B1, D1, E1 and F1 enter "Random Text"
    in C1 enter "& Name: 24825"
    in G1 enter =MID(CONCATENATE(A1,B1,C1,D1,E1,F1),SEARCH("& Name: ",CONCATENATE(A1,B1,C1,D1,E1,F1),1)+8,5)

    The result in G1 is 24825.

    If it is still not working can you please upload an example workbook with the data for which it does not work (click go advanced and then attachments).

  5. #5
    Registered User
    Join Date
    11-24-2013
    Location
    UAE
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Find Partial text in an array and extract charaters to right

    Hey Yudlugar,
    This works now, My only concern is this text could be in Any cell from Column A to F.
    Hence Instead of Concatenate , is it possible to define and array to search
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Find Partial text in an array and extract charaters to right

    how about:
    =SUM(IF(ISERROR((FIND("& Name: ",A2:F25))),0,1*RIGHT(A2:F25,5)))
    as an array formula (confirm with ctrl+shift+enter).

    It relies on a couple of assumptions about your data:
    the 5 digits that you want are a number and are always at the end of the text in the cell. It works on the example you provided.

  7. #7
    Registered User
    Join Date
    11-24-2013
    Location
    UAE
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Find Partial text in an array and extract charaters to right

    Hey Yudlugar,
    I tried pasting the formula, I can retrive it as "0"
    May i please request you to attach the exel Sheet. Sorry for the inconvinience

  8. #8
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Find Partial text in an array and extract charaters to right

    See cell A29 in attachment.

    I think maybe you did not confirm as an array formula (ctrl+shift+enter)? You should see {} brackets around the formula if it is entered correctly.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    11-24-2013
    Location
    UAE
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Find Partial text in an array and extract charaters to right

    Hey Yudlugar,

    This is just Perfect , I was trying to paste in a cell inj the Array Specific. Hence It was retriving "0" and giving me a circular reference warning.

    Thank you so much for your help. This now works just perfect

  10. #10
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Find Partial text in an array and extract charaters to right

    No problem, sorry it took a few goes to understand what you meant!

  11. #11
    Registered User
    Join Date
    11-24-2013
    Location
    UAE
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Find Partial text in an array and extract charaters to right

    No Worries.
    All is well, That ends well. Have a nice day ahead

+ 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. Find Partial Text Match between Two Columns of data
    By samybelen in forum Excel General
    Replies: 1
    Last Post: 10-23-2013, 01:45 PM
  2. [SOLVED] To find partial text
    By gan_xl in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-06-2013, 10:44 AM
  3. Replies: 4
    Last Post: 07-27-2013, 07:38 AM
  4. [SOLVED] Find partial text string within another text string return original text into cell.
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-17-2013, 02:58 PM
  5. formula to extract partial content (text) of cell
    By milano in forum Excel General
    Replies: 3
    Last Post: 11-09-2005, 01: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