+ Reply to Thread
Results 1 to 5 of 5

Search more than 6 words and write by using Macros

  1. #1
    Registered User
    Join Date
    02-05-2010
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    41

    Search more than 6 words and write by using Macros

    Hi,
    I will appreciate your expert help.
    Attached is excel example.

    I want to search say in column A for specific words say “Don” and then write in another column (say column 2) as “one”. Then it should keep searching for specific word until the last cell in that column and keep writing specific word in another column. It should do nothing if that specific word is not found.

    I was able to use IF(ISERROR) but there is limitation of max 6 searches. Also i was able to achieve it by so many iteration of IF(ISERROR) and using autofilter.

    My goal is to search around 30 to 40 criteria in one shot or by writing macros.
    I guess i have presented my problem properly.

    Thanks in advance.
    Sanjay
    Attached Files Attached Files
    Last edited by canada123; 02-22-2010 at 06:19 PM. Reason: New question has been moved to new thread.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Search more than 6 words and write by using Macros

    Based on your example,I would switch to a VLookup table, like so...
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-05-2010
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: Search more than 6 words and write by using Macros

    JBeaucaire,

    It is perfect and that's what i was looking for.

    Thanks a lot,,You are genius for me.
    Sanjay

  4. #4
    Registered User
    Join Date
    02-05-2010
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: Search more than 6 words and write by using Macros

    This post has been deleted and moved to new thread.
    Attached Files Attached Files
    Last edited by canada123; 02-22-2010 at 06:20 PM. Reason: Deleted to create new thread for new topic

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Search more than 6 words and write by using Macros

    Not sure, really. That is a completely different puzzle. If you close this thread (erase the post above) and start a new thread, you'll get the most attention from new contributors.

    Be sure to EDIT your original post in this thread, click Go Advanced and mark the PREFIX box [SOLVED].

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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