LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.misc
Domenic
 
Posts: n/a
Default Range from x to first non-blank cell?

In article ,
"Bill" wrote:

Sure, I've got a spreadsheet that's got the results of a survey. On the first
page, I
cut/paste the raw survey data. On the second page of the spreadsheet, I'm
reading and
interpreting the data. Presently, every time I paste into sheet 1, I've got
to manually
increase the ranges on sheet 2 to the end of the new range. What I'd prefer,
instead, is
for sheet 2 to automatically update when the new data is inputted.


You can use a dynamic named range. So, assuming that you want to create
one for Column B on Sheet1, starting from B2...

Insert Name Define

Name: MyRange (or any other name that you want)

Refers to:

=Sheet1!$B$2:INDEX(Sheet1!$B$2:$B$65536,MATCH(9.99 999999999999E+307,Sheet
1!$B$2:$B$65536))

Click Add

*Note that if Column B contains text instead of numerical values,
change...

9.99999999999999E+307

to

REPT("z",255)

Then use MyRange in your formula. For example...

=SUM(MyRange)

This doesn't seem to work - strangely, the cell I entered it into returns the
exact text
of the formula.


The cell is probably formatted as 'Text'. Try the following...

1) Format the cell as 'General'

2) Re-enter the formula

Does this help?
 
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
Return of blank cell if lookup fails TimM Excel Worksheet Functions 4 November 23rd 05 04:40 PM
Counting blank and filled cells within a range. greg7468 Excel Discussion (Misc queries) 3 June 28th 05 10:41 PM
blank cell turns to 0 LMB New Users to Excel 2 April 25th 05 03:57 PM
Cell set to wrap text and blank line -- fix? Fred Holmes Excel Discussion (Misc queries) 0 January 25th 05 07:10 PM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


All times are GMT +1. The time now is 08:25 PM.

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"