+ Reply to Thread
Results 1 to 15 of 15

to find selective words from a senetence

  1. #1
    Registered User
    Join Date
    07-11-2016
    Location
    Delhi, India
    MS-Off Ver
    7
    Posts
    47

    to find selective words from a senetence

    Hi All,


    i have hard time figuring out a possible way to simplify my task which requires me to look through a range of data,(e.g, A1:A20), each cell contain a specific word. Look for that word into a range of B1: B10, each cell contains Sentence, if taht words are founds then output it as the word, which are find in that particular cell.
    Attachment are for sample example. will it be possible to get the desired result through VBA, i was using formula for the same purpose.
    Formula: =MAX(IF(ISERROR(FIND(A1:A20,B1)),-1,1)*ROW(A1:A20))

    >>if senetence from range B, have 2 words founds from range A, then output should be the first word found


    if done through VBA, will be best option to resolve this.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: to find selective words from a senetence

    UDF
    C2:

    =GetWords(B2,$A$2:$A$21)
    filldown.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-11-2016
    Location
    Delhi, India
    MS-Off Ver
    7
    Posts
    47

    Re: to find selective words from a senetence

    Hi jindon,

    Thanks for you reply, But can you please provide me little clarity on how can i use This Code.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: to find selective words from a senetence

    ......................
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-11-2016
    Location
    Delhi, India
    MS-Off Ver
    7
    Posts
    47

    Re: to find selective words from a senetence

    Hi,

    Please check for the attached file, as its giving me output of some words, which are not in range data(Range A words)
    E.G: Tommy


    Thanks
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: to find selective words from a senetence

    Quote Originally Posted by khushboo# View Post
    Please check for the attached file, as its giving me output of some words, which are not in range data(Range A words)
    What is it?

  7. #7
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: to find selective words from a senetence

    Hi Khushboo,

    you are not clarifying If a word not found then what to do?

    May be below code would be work

    beacause of Jindon Sir i made below code (earlier he help me for finding words in array)

    Please Login or Register  to view this content.
    Last edited by mohan.r1980; 11-28-2017 at 09:59 AM.

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: to find selective words from a senetence

    Withdrawn by FR ... double posted.
    Last edited by FlameRetired; 11-28-2017 at 03:46 PM.
    Dave

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: to find selective words from a senetence

    @ khushboo#

    I'm confused. Which upload do you want solution for? Post #1 and Post #5 are not the same problem.

    I have formula solution for post #1 if you are interested. It doesn't "fit" the other file though.

    Array entered in C2 and filled down.

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

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

  10. #10
    Registered User
    Join Date
    07-11-2016
    Location
    Delhi, India
    MS-Off Ver
    7
    Posts
    47

    Re: to find selective words from a senetence

    Hi mohan.r1980,


    Can you attach a sample file with your code.

  11. #11
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: to find selective words from a senetence

    Hi Khushboo,

    Please find attached file with code
    Attached Files Attached Files

  12. #12
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: to find selective words from a senetence

    hi khushboo#,

    Please find updated file
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    07-11-2016
    Location
    Delhi, India
    MS-Off Ver
    7
    Posts
    47

    Re: to find selective words from a senetence

    Hi jindon,


    As my post question has got its solution, and i am using code which are provided by you, but as i was looking for little more modification.
    I want data from Column A to be in other sheet and output to be different sheet.
    As numbers of data is reaching to 23500 number, so saving taht into a separate sheet will be really helpful.
    Thanks in advance!

  14. #14
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: to find selective words from a senetence

    See the attached
    Please Login or Register  to view this content.
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    07-11-2016
    Location
    Delhi, India
    MS-Off Ver
    7
    Posts
    47

    Re: to find selective words from a senetence

    Hi jindon,
    Thanks a lot for Help.

+ 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. Replies: 16
    Last Post: 11-02-2017, 08:25 PM
  2. [SOLVED] Find date/day across columns and update selective cell below
    By emina002 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-15-2015, 01:08 PM
  3. Find pairs of words in range, then find next pair
    By brent.fraser in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-06-2014, 12:31 PM
  4. Replies: 5
    Last Post: 12-11-2012, 05:04 AM
  5. Replies: 3
    Last Post: 11-28-2012, 04:00 AM
  6. Replies: 4
    Last Post: 04-27-2012, 06:38 AM
  7. Replies: 1
    Last Post: 04-04-2012, 07:15 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