+ Reply to Thread
Results 1 to 20 of 20

Search and highlight only containing text

Hybrid View

  1. #1
    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 and highlight only containing text

    Here's a new version that gives you the Vendor or Item code only search ability on sheet 3.

    1) It no longer uses column A on Sheet1 at all. Depending on which search code you enter, it searches by THAT column on sheet1.

    2) The ITEM CODES on sheet1 need to be TEXT STRINGS for this to work properly. The easiest way to convert an existing numeric value to text string is to use this in an adjacent cell:

    =B3&""

    Then copy that down the whole dataset to get the text values, then copy them and EDIT > PASTESPECIAL > VALUES over the original numbers to get a new set of text values instead.

    In the future, make sure the column is already formatted as text before entering the numbers and they will be accepted by Excel as text.

    3) Sheet3 now auto clears if you delete both search criteria

    4) Since only one search criteria is needed, the other cell will clear itself if you enter a value in the other search cell

    5) The VENDOR search will capitalize for you even if you enter "auto"...it becomes "AUTO".

    6) As soon as you enter a search string, the search will occur, no need to click a button.

    7) The CLEAR and SEARCH buttons aren't really needed anymore
    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!)

+ 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