Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default can I use Indirect function within range definitons for names?

I am trying to define a name relating to an area whose boundaries will vary
depending upon the data contained within it. One cell (which does not reside
within the area) contains the cell reference of the second boundary point, so
I tried using the following definition of the area
"=Sheet1!$H$58:INDIRECT(Sheet1!$I$53)" -typically I53 contains:"H68". If I
use F5 (goto) there is no problem going to this new range, if however I use a
function such as "=COUNTIF(newarea,H61)" -where "newarea" is the name defined
with area above it crashes Excel -this is in both 2003 and 2007 versions.

Any ideas?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default can I use Indirect function within range definitons for names?

You need to have INDIRECT generate the actual range
=INDIRECT("Sheet1!$H$58:"&$I$53)
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"surreyjed" wrote in message
...
I am trying to define a name relating to an area whose boundaries will vary
depending upon the data contained within it. One cell (which does not
reside
within the area) contains the cell reference of the second boundary point,
so
I tried using the following definition of the area
"=Sheet1!$H$58:INDIRECT(Sheet1!$I$53)" -typically I53 contains:"H68". If
I
use F5 (goto) there is no problem going to this new range, if however I
use a
function such as "=COUNTIF(newarea,H61)" -where "newarea" is the name
defined
with area above it crashes Excel -this is in both 2003 and 2007 versions.

Any ideas?



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
Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions Mike Barlow Excel Worksheet Functions 7 May 21st 23 07:42 PM
INDIRECT and Defined Names Tevuna Excel Worksheet Functions 1 September 4th 07 08:10 AM
INDIRECT sheet Names Pester Excel Worksheet Functions 4 May 9th 06 07:55 PM
Help with using range names in sum function soteman2005 Excel Worksheet Functions 2 November 28th 05 04:43 PM
How to paste INDIRECT function to range of cells? Mike Williams Excel Worksheet Functions 4 March 18th 05 03:02 AM


All times are GMT +1. The time now is 04:30 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"