Results 1 to 4 of 4

Search string in column

Threaded View

  1. #1
    Registered User
    Join Date
    06-13-2009
    Location
    Rome
    MS-Off Ver
    Excel 2003
    Posts
    4

    Search string in column

    Hi

    I'll appreciate Your help on this macro:


    I have this sheet:

    BEFORE MACRO

    ,,,,,,,,,A,,,,,,,,,,,,,,,,,,,,,,,,,,,B,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,C,,,,,,,,,,,,,,,,
    SEARCH STRING,,,,,,,,,,RESULT,,,,,,,,,,,,,,,,,,,,,,,,LIST ITEMS
    aaaa,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,mnmnnm nmnmnm
    bbbb,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,jkjkjkjk jkkjkjkj
    cccc,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,klklklk klklk
    eeeff,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,lòlòlòl lòlòlòlò
    ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,ciccio ccc vvv ciao
    ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,eeeff mio micio
    ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,papi papi bbbbb
    ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,vbvbvbv klklkl klklklk
    ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,papi aaaa cattivaccio


    MACRO RESULT


    ,,,,,,,,,A,,,,,,,,,,,,,,,,,,,,,,,,,,,B,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,C,,,,,,,,,,,,,,,,
    SEARCH STRING,,,,,,,,,,,RESULT,,,,,,,,,,,,,,,,,,,,,,,,LIST ITEMS
    aaaa,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,papi aaaa cattivaccio,,,,,mnmnnm nmnmnm
    bbbb,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,papi papi bbbbb,,,,,,,,,,,,,jkjkjkjk jkkjkjkj
    cccc,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,NOT FOUD,,,,,,,,,,,,,,,,,,,,klklklk klklk
    eeeff,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,eeeff mio micio,,,,,,,,,,,,,,lòlòlòl lòlòlòlò
    ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,ciccio ccc vvv ciao
    ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,eeeff mio micio
    ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,papi papi bbbbb
    ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,vbvbvbv klklkl klklklk
    ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,papi aaaa cattivaccio



    Macro descripion:

    Column A ( SEARCH STRING) list the string to be searched in C column
    Column B (RESULT) reports the macro result
    Column C ( List ITEMS ) is the column where the macro have to search the string

    Operation:
    - Starting from A2 up to the end of value in A column
    - Search the substring ( A2 cell value ) in C column starting from C2 * if found copy all the C row content in B2
    If 'not found' write NOT FOUND

    (*) all search ( from A2 to An ) starts always from C2



    Thanks a lot in advance to ALL can help me

    Write
    Last edited by writetome; 06-22-2009 at 02:21 PM.

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