+ Reply to Thread
Results 1 to 2 of 2

Static Cell References in Formula Despite Sorting and Cut/Pasting Range

  1. #1
    Registered User
    Join Date
    12-15-2006
    Posts
    64

    Static Cell References in Formula Despite Sorting and Cut/Pasting Range

    I have a worksheet with columns of data. On another worksheet which summarizes the data I have formulas referring to the columns of data.

    If I delete rows or sort rows on the data sheet the formulas change to reflect those deletions or sorts.

    How do I in the formulas refer to a range in the data worksheet such that when the data is sorted or when data rows are deleted the formulas still refer to the same range of cells without changing.

    Example:

    Original formula:

    =COUNTIF('Data'!$T$2:$T$5001,'Data Analysis'!B3)

    After deleting the top 10 rows of data:

    =COUNTIF('General Delivery'!$T$2:$T$4991,'Data Analysis'!B3)

    After then cuttting & then inserting rows 12-22 into row 2

    =COUNTIF('General Delivery'!$T$13:$T$4991,'Data Analysis'!B3)

    I'd like to find a way such that the delete or cut/insert operations do not change the orginal formula's cell references.

    Any help will be much appreciated.

    LongFisher

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481
    Quote Originally Posted by longfisher
    I have a worksheet with columns of data. On another worksheet which summarizes the data I have formulas referring to the columns of data.

    If I delete rows or sort rows on the data sheet the formulas change to reflect those deletions or sorts.

    How do I in the formulas refer to a range in the data worksheet such that when the data is sorted or when data rows are deleted the formulas still refer to the same range of cells without changing.

    Example:

    Original formula:

    =COUNTIF('Data'!$T$2:$T$5001,'Data Analysis'!B3)

    After deleting the top 10 rows of data:

    =COUNTIF('General Delivery'!$T$2:$T$4991,'Data Analysis'!B3)

    After then cuttting & then inserting rows 12-22 into row 2

    =COUNTIF('General Delivery'!$T$13:$T$4991,'Data Analysis'!B3)

    I'd like to find a way such that the delete or cut/insert operations do not change the orginal formula's cell references.

    Any help will be much appreciated.

    LongFisher
    Try a dynamic range
    http://www.contextures.com/xlNames01.html#Dynamic

    As for sorting, the cell references should stay the same

+ 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