+ Reply to Thread
Results 1 to 4 of 4

Function to search for a string, return address of Nth occurance.

  1. #1
    Forum Contributor
    Join Date
    02-26-2014
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    173

    Function to search for a string, return address of Nth occurance.

    Hello again ExcelForum friends!

    Lately I've been using excel to copy web pages and then run a macro to turn it into a usable set spreadsheet of data but the paste results keep slightly shifting cell locations. Would it be possible to do something like the following?

    Here is a sample file: Attachment 335650 to keep us on the same page.

    I was thinking a function SearchCells() and it would work something like SearchCells("Sample", 1) would return the cell location "B4" and SearchCells("Sample", 2) would return the cell location "C4". SearchCells("Sample") would just default to first "Sample" found.

    All help and suggestions appreciated!

    Here is what I have so far.

    Please Login or Register  to view this content.
    Last edited by smpita; 07-29-2014 at 06:51 PM.

  2. #2
    Forum Contributor
    Join Date
    02-26-2014
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    173

    Re: Function to search for a string, return address of Nth occurance.

    Not having luck with Find method I am trying another route as well, without much success.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    02-26-2014
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    173

    Re: Function to search for a string, return address of Nth occurance.

    Bumped for some love.

  4. #4
    Forum Contributor
    Join Date
    02-26-2014
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    173

    Re: Function to search for a string, return address of Nth occurance.

    After prolonged toying with it, I made my function. Here, in case anyone else needs this functionality.
    Please Login or Register  to view this content.

+ 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. [SOLVED] VBA function to search partial string and return value
    By gorelordz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-28-2014, 11:48 AM
  2. search for specific string in the sheet and count occurance of it
    By kmksprasad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-23-2012, 02:32 PM
  3. search for specific string in the sheet and count occurance of it
    By kmksprasad in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-23-2012, 01:50 PM
  4. Search...Return...give info based on the return address
    By deek1004 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-11-2012, 03:36 PM
  5. Replies: 3
    Last Post: 07-27-2011, 02:29 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