+ Reply to Thread
Results 1 to 3 of 3

Dynamic ranges for cells

  1. #1
    Registered User
    Join Date
    02-11-2008
    Posts
    3

    Dynamic ranges for cells

    I think I have a problem that either has an easy solution or no solution (at least without going to VBA).

    I have a bunch of formulas that I need repeated on multiple worksheets.

    The formulas are different and they are variable in range. However, several formulas use the same range. The range changes depending on the worksheet.

    What I would like to do is put a number in a cell of a worksheet such that the formula will use that number as the cell range.

    For example, say I wanted to sum the entries in cells A2:A44. However, depending on the worksheet, the range may go to A54 or A61. Is there a way to write the formula such that it can draw range from cell entries (static) on that worksheet?

    If you have any questions, please let me know. I hope I have explained this properly.

    Thank you in advance,

    Don

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Dynamic ranges for cells

    You can use a dynamic named range
    Check this out
    http://support.microsoft.com/kb/830287

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Dynamic ranges for cells

    These are two options based on your example

    Cell B1 holds the number (44 in your example) of Rows you want to sum in Column A starting from Cell A2

    =SUMPRODUCT(A2:A1000,--(ROW(A2:A1000)<=B1))

    or

    =SUM(INDIRECT("A2:A"&B1))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ 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