# Changing where ctrl+end thinks the end of a document is

**URL:** <https://boards.straightdope.com/t/changing-where-ctrl-end-thinks-the-end-of-a-document-is/594057>\
**Category:** Factual Questions\
**Created:** [August 25, 2011, 4:58pm UTC](https://boards.straightdope.com/t/changing-where-ctrl-end-thinks-the-end-of-a-document-is/594057 "2011-08-25T16:58:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![batsto](https://avatars.discourse-cdn.com/v4/letter/b/b2d939/32.png) [@batsto](https://boards.straightdope.com/u/batsto)\
**Post date:** [August 25, 2011, 4:58pm UTC](https://boards.straightdope.com/t/changing-where-ctrl-end-thinks-the-end-of-a-document-is/594057/1 "2011-08-25T16:58:43Z")

</div>

In Excel, I often use ctrl+end to get to the end of the spreadsheet. But a lot of times a large amount of data gets deleted, and ctrl+end still wants to take me to the end of where that data used to be, rather than where the data actually ends after the delete. Is there a way to get to the actual end of the data with a keyboard shortcut, rather than just scrolling down and looking for it?

---

<div class="post-metadata">

**Author:** ![Claire\_Beauchamp](https://avatars.discourse-cdn.com/v4/letter/c/ec9cab/32.png) [@Claire\_Beauchamp](https://boards.straightdope.com/u/Claire_Beauchamp)\
**Post date:** [August 25, 2011, 5:04pm UTC](https://boards.straightdope.com/t/changing-where-ctrl-end-thinks-the-end-of-a-document-is/594057/2 "2011-08-25T17:04:18Z")

</div>

I’ve never found a way around that. Annoying, isn’t it?

---

<div class="post-metadata">

**Author:** ![LunarPlexus](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@LunarPlexus](https://boards.straightdope.com/u/LunarPlexus)\
**Post date:** [August 25, 2011, 5:28pm UTC](https://boards.straightdope.com/t/changing-where-ctrl-end-thinks-the-end-of-a-document-is/594057/3 "2011-08-25T17:28:41Z")

</div>

> [@batsto](#):
>
> In Excel, I often use ctrl+end to get to the end of the spreadsheet. But a lot of times a large amount of data gets deleted, and ctrl+end still wants to take me to the end of where that data used to be, rather than where the data actually ends after the delete. Is there a way to get to the actual end of the data with a keyboard shortcut, rather than just scrolling down and looking for it?

This can vary, I think, by Excel version and platform, but there’s a delete that just clears the contents of the cells, and there’s delete that actually deletes the rows. Maybe if you can find the row delete button, that might help you.

Sometimes you can select a cell and ctrl-down will take you to the last row in that column with data, although if you have an empty cell in a row in that column, it will stop there and you may have to keep ctrl-downing until you go too far. If you have a column with data in all rows, this can work OK.

---

<div class="post-metadata">

**Author:** ![nivlac](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@nivlac](https://boards.straightdope.com/u/nivlac)\
**Post date:** [August 25, 2011, 8:59pm UTC](https://boards.straightdope.com/t/changing-where-ctrl-end-thinks-the-end-of-a-document-is/594057/4 "2011-08-25T20:59:49Z")

</div>

> [@batsto](#):
>
> In Excel, I often use ctrl+end to get to the end of the spreadsheet. But a lot of times a large amount of data gets deleted, …

Use “Clear” to make sure you got rid of everything in those “empty” cells. If you do that, Excel shouldn’t take you to the end of the worksheet in whichever direction you’ve chosen.

---

<div class="post-metadata">

**Author:** ![Omphaloskeptic](https://avatars.discourse-cdn.com/v4/letter/o/bcef8e/32.png) [@Omphaloskeptic](https://boards.straightdope.com/u/Omphaloskeptic)\
**Post date:** [August 25, 2011, 9:01pm UTC](https://boards.straightdope.com/t/changing-where-ctrl-end-thinks-the-end-of-a-document-is/594057/5 "2011-08-25T21:01:21Z")

</div>

There are two issues. The first is that (as others have mentioned) clearing the cell _contents_ is not enough; you have to make sure the cell is completely empty of all formatting and other usually-invisible information. The easiest way to do that is to select the apparently-empty rows or columns, right-click and delete them (which then moves new blank cells upward and leftward).

The second issue is that Excel doesn’t automatically update its idea of the active range of a worksheet, even when you do this. The easy way to force this update is just to save the file, which forces this update. If you don’t want to do this you can run the Visual Basic command ActiveSheet.UsedRange, which [appears to be what actually calculates the range](http://www.techrepublic.com/article/reset-the-last-cell-of-your-excel-worksheet/6135485). (Attach it to a macro and bind it to a button if you like.)

---

<div class="post-metadata">

**Author:** ![batsto](https://avatars.discourse-cdn.com/v4/letter/b/b2d939/32.png) [@batsto](https://boards.straightdope.com/u/batsto)\
**Post date:** [August 26, 2011, 12:49pm UTC](https://boards.straightdope.com/t/changing-where-ctrl-end-thinks-the-end-of-a-document-is/594057/6 "2011-08-26T12:49:14Z")

</div>

That is exactly what I needed, thanks so much.

---

<div class="post-metadata">

**Author:** ![KneadToKnow](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/kneadtoknow/32/3999_2.png) [@KneadToKnow](https://boards.straightdope.com/u/KneadToKnow)\
**Post date:** [August 26, 2011, 2:27pm UTC](https://boards.straightdope.com/t/changing-where-ctrl-end-thinks-the-end-of-a-document-is/594057/7 "2011-08-26T14:27:38Z")

</div>

> [@Omphaloskeptic](#):
>
> The easiest way to do that is to select the apparently-empty rows or columns, right-click and delete them (which then moves new blank cells upward and leftward).

Concur.
