+ Reply to Thread
Results 1 to 17 of 17

Searching specific word with find function

  1. #1
    Forum Contributor
    Join Date
    05-09-2015
    Location
    Thailand
    MS-Off Ver
    MS365
    Posts
    318

    Searching specific word with find function

    Dear Sir,
    I have the sample data to contain with unit as TEU and M3. I tried to find these units to be new column to show as TEU or M3.
    I saw in raw data to show these unit but when I used the find function.It can not active. Moreover, when I click into each cell.I cannot see the unit to show but I saw without click into the cell. There are something wrong in this raw data? I use the real data and just revised the number.
    Please kindly suggest for this case.
    thanks a lot.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,771

    Re: Searching specific word with find function

    The "TEU" / "M3" are result of the format and do not appear in the cell itself.

    Click on cell in A, then "Format cells" and you will see the format.

  3. #3
    Forum Contributor
    Join Date
    05-09-2015
    Location
    Thailand
    MS-Off Ver
    MS365
    Posts
    318

    Re: Searching specific word with find function

    Hi Sir,
    Right Click -- format cell -- and then? I try to change format cell to be text?
    sorry , please clarify more ? still not understand how to solve this solution.

    thanks a lot.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,771

    Re: Searching specific word with find function

    Please Login or Register  to view this content.
    The above UDF returns the currency tags

    See attached
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    05-09-2015
    Location
    Thailand
    MS-Off Ver
    MS365
    Posts
    318

    Re: Searching specific word with find function

    Hi sir
    Thank a lot but i want to show only TEU or M3 as in the formular.
    It will work right?
    And in case i have to use your vb in my original girl?how i van do?
    Pls suggest.
    Thanks.

  6. #6
    Forum Contributor
    Join Date
    05-09-2015
    Location
    Thailand
    MS-Off Ver
    MS365
    Posts
    318

    Re: Searching specific word with find function

    Hi John
    How can insert this code in original excel file?
    Please suggest.
    thanks.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,771

    Re: Searching specific word with find function

    Click on "Developer"==>"Visual Basic"

    Right Click "Thisworkbook" ==> Insert==> Module

    Copy/paste code on blank page

  8. #8
    Forum Contributor
    Join Date
    05-09-2015
    Location
    Thailand
    MS-Off Ver
    MS365
    Posts
    318

    Re: Searching specific word with find function

    Hi John
    as i ask previous that I need to show only "TEU" or "M3" as my excel formular. pls suggest.
    thanks a lot.

  9. #9
    Forum Contributor
    Join Date
    05-09-2015
    Location
    Thailand
    MS-Off Ver
    MS365
    Posts
    318

    Re: Searching specific word with find function

    Hi, John
    I tried with attached photo
    and close right?
    but the formula still not work.

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,771

    Re: Searching specific word with find function

    Please post a file with "problem". You need to put

    =GetCurrency(A2) in B2 if the data is A2: this will display the currency data

    It only returns "M" not "M3": I obtained the code from the Wen and I don't know how to change it to show the numeric digit.

  11. #11
    Forum Contributor
    Join Date
    05-09-2015
    Location
    Thailand
    MS-Off Ver
    MS365
    Posts
    318

    Re: Searching specific word with find function

    Hi, John
    I attached the revised excel file to you with insert visual basic code but still not show right results.
    I change the raw data to be new set as show only number and unit , no currency. I think the visual basic code is apply for old raw data with currency right.
    Please suggest.
    thanks a lot.
    Attached Files Attached Files

  12. #12
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,175

    Re: Searching specific word with find function

    Or try:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    05-09-2015
    Location
    Thailand
    MS-Off Ver
    MS365
    Posts
    318

    Re: Searching specific word with find function

    I use this code to insert in visual basic as this workbook right?
    and use getcurrency in excel file but show that #NAME?

  14. #14
    Forum Contributor
    Join Date
    05-09-2015
    Location
    Thailand
    MS-Off Ver
    MS365
    Posts
    318

    Re: Searching specific word with find function

    Hi
    still not work.

  15. #15
    Forum Contributor
    Join Date
    05-09-2015
    Location
    Thailand
    MS-Off Ver
    MS365
    Posts
    318

    Re: Searching specific word with find function

    Hi,
    I use this formular withing formular sheets mean that I use index match to pull all raw data to new sheet and then I use put getcurrency2(cell) in same sheet which contain all formular with all index match but i try to use getcurrency2(cell) from raw data and run.
    so it can not use formula within formula?
    i ever tried to vlookup with index colum which contain formula and can work.
    so confuse. haha
    pls suggest.
    thanks a lot for all helps.

  16. #16
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,771

    Re: Searching specific word with find function

    Please post a file with the "error" condition.

  17. #17
    Forum Contributor
    Join Date
    05-09-2015
    Location
    Thailand
    MS-Off Ver
    MS365
    Posts
    318

    Re: Searching specific word with find function

    Hi Sir,
    Could you please help for this post?

    https://www.excelforum.com/excel-pro...condition.html

    thanks.

+ 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 / Extract Word & Words after a Specific Word
    By roseuz in forum Excel General
    Replies: 8
    Last Post: 07-05-2017, 01:07 PM
  2. Replies: 1
    Last Post: 02-21-2016, 02:39 AM
  3. [SOLVED] Help with macro to find a specific word and replace the entire cell with the return word.
    By BG1983 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 08-24-2015, 09:40 PM
  4. Deleting rows by searching a specific word or empty cell.
    By erickmcburger in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-31-2015, 07:42 AM
  5. Replies: 16
    Last Post: 04-25-2013, 03:12 PM
  6. Searching through a Word documents for specific words
    By lwkochis@gmail.com in forum Word Programming / VBA / Macros
    Replies: 1
    Last Post: 01-30-2013, 04:41 AM
  7. Searching for specific word then delete it
    By karinos57 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-12-2008, 04:20 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