+ Reply to Thread
Results 1 to 4 of 4

Selecting range relative to found values

  1. #1
    Registered User
    Join Date
    01-17-2012
    Location
    OK
    MS-Off Ver
    Excel 2003
    Posts
    7

    Selecting range relative to found values

    Hi all,

    I've been spooking around the forum for a year or so now and have recently started delving into the depths of VBA. Anyway.

    I'm trying to select a relative range based on a value found in a worksheet. In the attached, my goal would be to find the text "Count" (B2) and copy everything 1 cell below Count down to five cells to the right of the text "Grand Total" (cell F20). Not only that but I need to do the same for multiple instances of the same text in multiple tables on a worksheet, in multiple sheets in a workbook.

    I have several tables that change from month to month and the only consistent values are the "Count" and "Grand Total" in each table.

    Any help would be appreciated.
    Attached Files Attached Files
    Last edited by Maverick21; 11-13-2013 at 06:40 PM.

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Selecting range relative to found values

    It will be really easier if you send a real XLS file

  3. #3
    Registered User
    Join Date
    01-17-2012
    Location
    OK
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Selecting range relative to found values

    Brilliant Idea. Attached is a shortened version of the template I use. There are actually 8 similarly set up tables per sheet and roughly 30 sheets that are all based on this template. In this case, I need it to copy ranges B1:T36, B41:T44, and B49:T56 and paste them into another template that is set up identically. I would use absolute cell references but the options in column A change regularly.

    Thanks
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-17-2012
    Location
    OK
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Selecting range relative to found values

    Any ideas guys?

    What I'm basically looking for is

    Select Range: Find (in column B instance 1 of "Count")+1 row down: Find(Instance 1 of "Grand Total")+17 rows right
    Copy

    Then -

    Repeat for instance 2 of each.

+ 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] How to select 'found range' and the row above it (selecting two rows)
    By DanzaNZ in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-22-2013, 08:08 PM
  2. search a cell for values in a range, return values found
    By carpe.cervisiam in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-15-2011, 12:52 PM
  3. List all values found within a range.
    By ericwcf in forum Excel General
    Replies: 2
    Last Post: 10-30-2008, 10:17 PM
  4. Selecting a range with relative reference
    By HBF in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-12-2008, 04:45 PM
  5. Replies: 1
    Last Post: 07-31-2006, 07:33 AM

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