Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 237
Default Last cell in range

Below is a code I saw in a post that selects the last cell
in columnA that has a value. It skips blank cells. How
do I make it select the first cell in the range that has
no value.

And also(2nd modification) how do I make it select the
first cell in the range that has no value skipping blank?


Range("A65536").End(xlUp).Select
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Last cell in range

Todd,

It skips blank cells

Actually it doesn't "skip" them.
It looks from the bottom of column "A" upwards until it
finds a non-blank cell.

To modify it, use
Range("A1").End(xlDown).Select
That'll look downward from A1 until it finds the first non-blank cell.

And also(2nd modification) how do I make it select the
first cell in the range that has no value skipping blank?

I'm not sure what you mean by that statement??

John

"Todd Huttenstine" wrote in message
...
Below is a code I saw in a post that selects the last cell
in columnA that has a value. It skips blank cells. How
do I make it select the first cell in the range that has
no value.

And also(2nd modification) how do I make it select the
first cell in the range that has no value skipping blank?


Range("A65536").End(xlUp).Select



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Last cell in range

Todd,

Modify this statement:
Range("A1").End(xlDown).Select
That'll look downward from A1 until it finds the first non-blank cell.

to read.......................
Select the cell in column "A" just above the first blank cell it encounters
below A1.

John

"John Wilson" wrote in message
...
Todd,

It skips blank cells

Actually it doesn't "skip" them.
It looks from the bottom of column "A" upwards until it
finds a non-blank cell.

To modify it, use
Range("A1").End(xlDown).Select
That'll look downward from A1 until it finds the first non-blank cell.

And also(2nd modification) how do I make it select the
first cell in the range that has no value skipping blank?

I'm not sure what you mean by that statement??

John

"Todd Huttenstine" wrote in message
...
Below is a code I saw in a post that selects the last cell
in columnA that has a value. It skips blank cells. How
do I make it select the first cell in the range that has
no value.

And also(2nd modification) how do I make it select the
first cell in the range that has no value skipping blank?


Range("A65536").End(xlUp).Select





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 237
Default Last cell in range

Let say Im using this code:
Range("A1").End(xlDown).Select

Lets say: Cell A1:A3 contain values. That code would
select cell A3. I want it to select cell A4(which is 1
cell more than the target). How do I get it to do this?

-----Original Message-----
Todd,

It skips blank cells

Actually it doesn't "skip" them.
It looks from the bottom of column "A" upwards until it
finds a non-blank cell.

To modify it, use
Range("A1").End(xlDown).Select
That'll look downward from A1 until it finds the first

non-blank cell.

And also(2nd modification) how do I make it select the
first cell in the range that has no value skipping

blank?
I'm not sure what you mean by that statement??

John

"Todd Huttenstine"

wrote in message
...
Below is a code I saw in a post that selects the last

cell
in columnA that has a value. It skips blank cells. How
do I make it select the first cell in the range that has
no value.

And also(2nd modification) how do I make it select the
first cell in the range that has no value skipping

blank?


Range("A65536").End(xlUp).Select



.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 135
Default Last cell in range

Todd, try this, Range("A1").End(xlDown).Offset(1, 0).Select


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2000 & 97
** remove news from my email address to reply by email **
"Todd Huttenstine" wrote in message
...
Let say Im using this code:
Range("A1").End(xlDown).Select

Lets say: Cell A1:A3 contain values. That code would
select cell A3. I want it to select cell A4(which is 1
cell more than the target). How do I get it to do this?

-----Original Message-----
Todd,

It skips blank cells

Actually it doesn't "skip" them.
It looks from the bottom of column "A" upwards until it
finds a non-blank cell.

To modify it, use
Range("A1").End(xlDown).Select
That'll look downward from A1 until it finds the first

non-blank cell.

And also(2nd modification) how do I make it select the
first cell in the range that has no value skipping

blank?
I'm not sure what you mean by that statement??

John

"Todd Huttenstine"

wrote in message
...
Below is a code I saw in a post that selects the last

cell
in columnA that has a value. It skips blank cells. How
do I make it select the first cell in the range that has
no value.

And also(2nd modification) how do I make it select the
first cell in the range that has no value skipping

blank?


Range("A65536").End(xlUp).Select



.





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Last cell in range

Todd,

Many ways...
One of them...

Range("A1").End(xlDown).Offset(1,0).Select

John

"Todd Huttenstine" wrote in message
...
Let say Im using this code:
Range("A1").End(xlDown).Select

Lets say: Cell A1:A3 contain values. That code would
select cell A3. I want it to select cell A4(which is 1
cell more than the target). How do I get it to do this?

-----Original Message-----
Todd,

It skips blank cells

Actually it doesn't "skip" them.
It looks from the bottom of column "A" upwards until it
finds a non-blank cell.

To modify it, use
Range("A1").End(xlDown).Select
That'll look downward from A1 until it finds the first

non-blank cell.

And also(2nd modification) how do I make it select the
first cell in the range that has no value skipping

blank?
I'm not sure what you mean by that statement??

John

"Todd Huttenstine"

wrote in message
...
Below is a code I saw in a post that selects the last

cell
in columnA that has a value. It skips blank cells. How
do I make it select the first cell in the range that has
no value.

And also(2nd modification) how do I make it select the
first cell in the range that has no value skipping

blank?


Range("A65536").End(xlUp).Select



.



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 237
Default Last cell in range

Ahh the offset method once again. Man I keep forgetting
about that. That is the most helpful function.


-----Original Message-----
Let say Im using this code:
Range("A1").End(xlDown).Select

Lets say: Cell A1:A3 contain values. That code would
select cell A3. I want it to select cell A4(which is 1
cell more than the target). How do I get it to do this?

-----Original Message-----
Todd,

It skips blank cells

Actually it doesn't "skip" them.
It looks from the bottom of column "A" upwards until it
finds a non-blank cell.

To modify it, use
Range("A1").End(xlDown).Select
That'll look downward from A1 until it finds the first

non-blank cell.

And also(2nd modification) how do I make it select the
first cell in the range that has no value skipping

blank?
I'm not sure what you mean by that statement??

John

"Todd Huttenstine"

wrote in message
...
Below is a code I saw in a post that selects the last

cell
in columnA that has a value. It skips blank cells.

How
do I make it select the first cell in the range that

has
no value.

And also(2nd modification) how do I make it select the
first cell in the range that has no value skipping

blank?


Range("A65536").End(xlUp).Select



.

.

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
Find Last cell in Range when range is date format default105 Excel Discussion (Misc queries) 5 July 7th 09 03:11 PM
RANGE EXCEL copy cell that meets criteria in a range confused Excel Worksheet Functions 3 March 27th 08 01:41 PM
copy range and paste into every 3rd cell of new range thomsonpa New Users to Excel 4 December 3rd 07 01:47 PM
Referencing a named range based upon Range name entry in cell Barb Reinhardt Excel Worksheet Functions 14 June 20th 07 07:19 PM
Selecting range in list of range names depending on a cell informa Courreges Excel Discussion (Misc queries) 2 June 19th 06 10:59 AM


All times are GMT +1. The time now is 03:39 AM.

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

About Us

"It's about Microsoft Excel"