+ Reply to Thread
Results 1 to 3 of 3

Offset a variable range

  1. #1
    Registered User
    Join Date
    02-20-2009
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    92

    Offset a variable range

    Hey guys,

    Need some help. Should be a quick hitter. Just need a syntax/function lesson.

    I've declared a range which spans several columns. I paste the range in a new location and now want to add a formula offsetting (0,-1) from the first column in my range.

    Here is a simplified piece of code
    Please Login or Register  to view this content.
    This fills only the top cell in my range. Since the range changes, I don't know how many rows it will be. How can I fix this?

    I'm trying to learn something new. I could autofill (but this might create complications with only 1 row in the range) or I would have selected the (0,-1) offset cell and run a loop filling in the formula until the offset cell to the right is blank. But there has to be a way to use the range to finish it off. As always, thanks for the help - I really appreciate it.
    Last edited by starcraftbud; 09-21-2010 at 04:47 PM.

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

    Re: Offset a variable range

    Try this
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-20-2009
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    92

    Re: Offset a variable range

    Interesting.

    Resize is a new one for me. That worked. Thank you very much.

+ 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