+ Reply to Thread
Results 1 to 3 of 3

Identify a range, pull first instance of a symbol, repeat

  1. #1
    Registered User
    Join Date
    06-11-2010
    Location
    grinnell, iowa
    MS-Off Ver
    Excel 2007
    Posts
    79

    Identify a range, pull first instance of a symbol, repeat

    Hey,
    Long title I know, but this is pretty specific. Take a look at the example worksheet attached to get an idea of what I'm trying to do. The ranges are essentially defined by all data between each instance of the symbol $. Within those ranges, sometimes the number 12 will appear in Column D. These are the ranges I'm interested in. When I find ranges with "12" somewhere in column D (other things can be in the cell with 12, just as long as 12 is there), then I want to pull the value of the first cell above that with $. Sheet2 of the worksheet attached demonstrates how it should look once the macro is run (note that lederho$en doesn't get pulled because there's no 12 in column D of that range). I can think of code to find "12" in column D (just using if/then value like "*12*"), but I have no idea how to identify the first cell with a $ above that in column A. Any ideas?

    *****
    Edit so it doesn't get bumped after 3 days, but in case you look at this again: thank you.
    Attached Files Attached Files
    Last edited by Jbm444; 07-12-2010 at 10:52 AM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Identify a range, pull first instance of a symbol, repeat

    Try this.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-14-2010
    Location
    NZ
    MS-Off Ver
    2007,2010
    Posts
    86

    Re: Identify a range, pull first instance of a symbol, repeat

    Edit: Beaten to it
    Attached Files Attached Files

+ 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