+ Reply to Thread
Results 1 to 6 of 6

From the current cell, search up in the same column to specific cell then capture row #

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    From the current cell, search up in the same column to specific cell then capture row #

    I have a sub now that searches for specific text in the A column, and stops when it finds that text. Once it find that text, I need it to do the following:


    1. From the active cell, search upwards in the same column until reaching a cell with value Interior.Color = RGB(255, 0, 0).

    2. Once that cell is reached, stop, and capture the cells row number as a variable.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: From the current cell, search up in the same column to specific cell then capture row

    do until loop is what you are after.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Re: From the current cell, search up in the same column to specific cell then capture row

    Quote Originally Posted by nathansav View Post
    do until loop is what you are after.
    Can you give me an example of the code for this application?

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: From the current cell, search up in the same column to specific cell then capture row

    Maybe:

    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: From the current cell, search up in the same column to specific cell then capture row

    Google/Help Files can give you an idea

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: From the current cell, search up in the same column to specific cell then capture row

    @Nathan, you're being remarkably unhelpful to someone explicitly asking for help on our help forum. Please reexamine the quality and content of the help you're offering.

    @ks100, John's answer in post #4 is very good. If you are unable to adapt that to your needs let us know what issues you're having and we'll talk you through it. I'm subscribing to this thread to be sure. Thanks.
    _________________
    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)

Similar Threads

  1. Search for specific cell based off Row/Column and input data into that cell
    By dizzle in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-02-2014, 01:53 PM
  2. [SOLVED] Formula to search a column for a specific value, and return the value in the next cell
    By TimothyD in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-26-2013, 12:02 AM
  3. Capture only rows where a specific cell is populated.
    By cure4glass1 in forum Excel General
    Replies: 4
    Last Post: 06-05-2011, 11:15 PM
  4. capture last cell in column
    By bcamp1973 in forum Excel General
    Replies: 9
    Last Post: 03-10-2006, 07:36 PM
  5. search column for specific cell using vba
    By dave91 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2005, 01:05 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