+ Reply to Thread
Results 1 to 6 of 6

Select Range based on data in different column

  1. #1
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Select Range based on data in different column

    Hello all,

    How do I select a range in column G starting from the 3rd row till the word "total" occurs in column A?

  2. #2
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: Select Range based on data in different column

    The word "total" is always the last value in column A, so perhaps starting from the bottom and offset it with 2 to select the corresponding cell in column C.
    Now I need to resize the selection to the top of column C3

    Please Login or Register  to view this content.
    But I can't get it done.
    Any suggestions?

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

    Re: Select Range based on data in different column

    This?
    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor smuzoen's Avatar
    Join Date
    10-28-2011
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003/2007/2010
    Posts
    610

    Re: Select Range based on data in different column

    You could use this to set the range for Column G based on the word "total" being in Column A
    Please Login or Register  to view this content.
    Where foundRange is the range from G3 to Gx where x is the row number where Column A has the word "total"

    Edit - I did not see that total was always the last row in Column A - you would not need something as elaborate as above you would only have to find the last row number of column A
    Please Login or Register  to view this content.
    Did not read your second post
    Last edited by smuzoen; 01-24-2012 at 08:33 AM.
    Hope this helps.
    Anthony
    Pack my box with five dozen liquor jugs
    PS: Remember to mark your questions as Solved once you are satisfied. Please rate the answer(s) by selecting the Star in the lower left next to the Triangle. It is appreciated?

  5. #5
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Select Range based on data in different column

    Please Login or Register  to view this content.



  6. #6
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: Select Range based on data in different column

    Thank you guys,
    I used StephenR's code, works fine

+ 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