+ Reply to Thread
Results 1 to 3 of 3

finding address of nth occurrence of text within sheet including selected variations.

  1. #1
    Forum Contributor
    Join Date
    09-05-2011
    Location
    Essex, England
    MS-Off Ver
    Excel 2003 Excel 2007
    Posts
    383

    finding address of nth occurrence of text within sheet including selected variations.

    Hi All,

    I need a little help with a formula i'm struggling with.

    The following example CSE (Control, Shift + Enter) formula,
    Please Login or Register  to view this content.
    Will find the address of the nth (in this cast 2nd) occurrence of "AD" within the range Rota!39:39. What i need it to do is find the nth occurrence of "AD", "AD/*" and/or "*/AD" (where * could be any other two or three letter string), any all or none of these combinations could exist within the range.

    any idea's?

    edit:

    I have tried
    Please Login or Register  to view this content.
    (CSE)
    but its not quite working.

    Think i'm one step closer...

    Please Login or Register  to view this content.
    just need to figure out how to get the wildcard element to work and i "might" be there.
    Last edited by Kramxel; 11-23-2015 at 10:34 AM.

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: finding address of nth occurrence of text within sheet including selected variations.

    Hello
    Maybe something like this CSE formula would work for you:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Here the nth occurrence is placed in cell C2. The FIND function looks for any occurrence of upper case "AD" within each cell.

    Hope this helps.
    DBY

  3. #3
    Forum Contributor
    Join Date
    09-05-2011
    Location
    Essex, England
    MS-Off Ver
    Excel 2003 Excel 2007
    Posts
    383

    Re: finding address of nth occurrence of text within sheet including selected variations.

    Hi DBY,

    thank you for your help! I had actually managed to solve this but by the time I had I was just too frustrated to even look at Excel again let alone update my progress yesterday.

    I ended up using exact for "AD" and nested if's and serches for the the other variations "*/AD" and "AD/*", I also needed to build in dynamic referencing so there's a few indirect's as well but here's the entire formula:

    Please Login or Register  to view this content.
    where:
    U$1 dictates the value of the Nth term.
    $C5 the row reference
    $F$2 the search reference (in this example "AD")

    I believe the find function would find the AD in the word BAD as well as standalone AD references, which is not what I needed

+ 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. Replies: 10
    Last Post: 07-22-2015, 05:16 AM
  2. finding variations in the data base
    By adryan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2015, 03:15 AM
  3. [SOLVED] validate 1 item has 5 variations; if not add missing variations
    By ccampbell14 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-25-2013, 03:03 PM
  4. Finding Address of a Date from another sheet
    By veejar in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-18-2012, 03:15 AM
  5. Finding the maximum occurrence of text over non-consecutive cells
    By raehippychick in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-15-2009, 09:04 AM
  6. Finding Text Occurrence With C#
    By lostintheloop in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-11-2005, 01:00 AM
  7. Finding address or column for text
    By pikapika13 in forum Excel General
    Replies: 4
    Last Post: 05-09-2005, 08:21 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