+ Reply to Thread
Results 1 to 3 of 3

Detecting specific text in cell to activate functions

  1. #1
    Registered User
    Join Date
    02-02-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    21

    Exclamation Detecting specific text in cell to activate functions

    Hi to all,

    I have a form in which there is a field which has a few hundred specs for conducting inspections. They run in a sequence of values from "M1XXX rev. X" to "M4XXX rev. X" in cell N10. I'm trying to hide lines 513 to 538 whenever "M3XXX rev.X" to "M4XXX rev. X". I already have part of the form that is already hiding some of the rows and columns but i'm absolutely cluless on how to write the codes to detect just M3 and M4 in the value that appears in cell N10 to hide the lines. Can anyone help?

    Here is the form:
    testing_form.xlsm

    Thanks.

    Regards,
    Ayub

  2. #2
    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
    53,047

    Re: Detecting specific text in cell to activate functions

    Could you use a filter to achieve what you want?

    Failing that, maybe add a helper column and use a formula like...

    if(or(left(cell,2)="M3",left(cell,2)="M4"),"Yes","")........replace the "yes" and "" with whatever you want.
    You can then filter on just that value
    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

  3. #3
    Registered User
    Join Date
    02-02-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Detecting specific text in cell to activate functions

    Thanks for the tip, i will try it out. Can i just verify if i can use the formulas in macros?

    Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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