Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 80
Default Clean/delete all cells outside of a range

Cells in range a1:m137 contain data.

But, when I use 'Go To Special' and click 'Last Cell', the cursor goes to a cell outside of range a1:m137.

How do I clear/delete all cells outside of range a1:m137?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,182
Default Clean/delete all cells outside of a range

Cells in range a1:m137 contain data.

But, when I use 'Go To Special' and click 'Last Cell', the cursor goes to a
cell outside of range a1:m137.

How do I clear/delete all cells outside of range a1:m137?


Select entire cols and/or rows, Delete both, then Save.

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 80
Default Clean/delete all cells outside of a range

That didn't work so I copied range a1:m137 and pasted it into a new spreadsheet.

Now, in the new spreadsheet, when I use 'Go To Special' and click 'Last Cell', the cursor goes to m137.
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,182
Default Clean/delete all cells outside of a range

That didn't work so I copied range a1:m137 and pasted it into a new
spreadsheet.

Now, in the new spreadsheet, when I use 'Go To Special' and click 'Last
Cell', the cursor goes to m137.


You only do cols or rows at a time outside the data area! So if Ctrl+End goes
to p150 then...

Select O:P and Delete
Select 138:150 and Delete
Save the file

This works EVERY TIME unless you do something wrong.

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 80
Default Clean/delete all cells outside of a range

I selected all columns to the right of m1 and deleted all of those columns.
I then selected all rows below a137 and deleted all of those rows.

I then used 'Go to Special' and clicked "Last cell" but the cursor still went to cells outside of a1.m137.


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,182
Default Clean/delete all cells outside of a range

I selected all columns to the right of m1 and deleted all of those columns.
I then selected all rows below a137 and deleted all of those rows.

I then used 'Go to Special' and clicked "Last cell" but the cursor still went
to cells outside of a1.m137.


You don't say you Saved the file after deleting; -*the most important part of
the process!*

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 80
Default Clean/delete all cells outside of a range

After I deleted the rows and columns in the original spreadsheet, I saved the file.

I then opened that file again.

Then I used the "Go to Special" and clicked "Last Cell" and the cursor went to a cell outside of the range.



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,182
Default Clean/delete all cells outside of a range

After I deleted the rows and columns in the original spreadsheet, I saved the
file.

I then opened that file again.

Then I used the "Go to Special" and clicked "Last Cell" and the cursor went
to a cell outside of the range.


Ok, this has been the process I've been using since Excel5.0 and it hasn't been
replaced yet with some other process! I use Ctrl+End (keyboard equivalent to
'Go to Special:Last Cell') It works as I'm describing it EVERY TIME! Go ahead
and try it; -duplicate the scenario and see what happens...

Not saying the behavior you got is not possible since Excel (MS Office in
general) has had a tendancy to 'misbehave' more than ever with the newer
releases. Just try the exercise for your own benefit so you can see *how it
should behave* normally.

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 80
Default Clean/delete all cells outside of a range

After I deleted the rows and columns in the original spreadsheet, I saved the file.

I then opened that saved file.

Then I used the "Go to Special" and clicked "Last Cell" and the cursor went to a cell outside of the range.



  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 80
Default Clean/delete all cells outside of a range

I resolved the problem by copying only the range, pasting it into a new spreadsheet and saving the new file.

I then deleted the original file so I can't "duplicate the scenario" and "try the exercise for your own benefit"


  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,182
Default Clean/delete all cells outside of a range

I resolved the problem by copying only the range, pasting it into a new
spreadsheet and saving the new file.

I then deleted the original file so I can't "duplicate the scenario" and "try
the exercise for your own benefit"


Huh!
You can enter some value outside your table, ClearContents, then Ctrl+End to
see where the LastCell is located. Just delete the rows/cols necessary to
eliminate the last cell, save, then Ctrl+End to see that the lower right corner
of your table is now the LastCell.

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
  #12   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,182
Default Clean/delete all cells outside of a range

I resolved the problem by copying only the range, pasting it into a new
spreadsheet and saving the new file.


You mean you 'got around' the problem this way. Seems an awefully inefficient
approach to me!<g

I then deleted the original file so I can't "duplicate the scenario" and
"try the exercise for your own benefit"


Huh!
You can enter some value outside your table, ClearContents, then Ctrl+End to
see where the LastCell is located. Just delete the rows/cols necessary to
eliminate the last cell, save, then Ctrl+End to see that the lower right
corner of your table is now the LastCell.


If you just use 1 cell then you only have to delete that 1 cell.

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
  #13   Report Post  
Posted to microsoft.public.excel.misc
dpb dpb is offline
external usenet poster
 
Posts: 109
Default Clean/delete all cells outside of a range

On 2/5/2018 12:02 PM, GS wrote:
I resolved the problem by copying only the range, pasting it into a
new spreadsheet and saving the new file.


You mean you 'got around' the problem this way. Seems an awefully
inefficient approach to me!<g

I then deleted the original file so I can't "duplicate the scenario"
and "try the exercise for your own benefit"


Huh!
You can enter some value outside your table, ClearContents, then
Ctrl+End to see where the LastCell is located. Just delete the
rows/cols necessary to eliminate the last cell, save, then Ctrl+End to
see that the lower right corner of your table is now the LastCell.


If you just use 1 cell then you only have to delete that 1 cell.


Those exercise work "most of the time" but I've found it's possible to
corrupt Excel where stuff like that is "just simply broke" with some
sheets. This seems more and more prevalent with newer release(s).

Most of the time things otherwise function normally.

We ran into one with a spreadsheet in which as far as could be told by
any way could be done seemed perfectly normal and functioned as should
(other than speed) but this particular version took up some 60MB of disk
storage.

I ran every MS and third party diagnostic on it I could find and none
could find anything to report. Like GARYWC here, the only way I could
find to resolve it was to copy values to a new sheet; pasting cell
content would reproduce the symptom so whatever it was was some huge
memory blob that simply couldn't get rid of any other way I could find.

--
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't filter/clean cells that contain #NAME? Parag Excel Programming 1 March 16th 11 12:28 PM
Macro to Clean Special characters for a Range Satish[_2_] Excel Worksheet Functions 5 December 18th 09 01:36 PM
how can I delete cells containing text within a range of cells jackwmbg Excel Discussion (Misc queries) 2 June 6th 08 09:08 PM
Is there a easy way to delete blank lines to clean up worksheets? jdf5 Excel Worksheet Functions 2 June 4th 06 06:05 PM
how to delete/clean out the row list in pivot table john² Excel Worksheet Functions 1 May 26th 05 04:56 AM


All times are GMT +1. The time now is 10:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"