Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
spartanmba
 
Posts: n/a
Default Referencing defined range

Hello,

I have three named ranges (percentSales,percentMaterial,percentLabor). When
a user types into an account cell and wants to retrieve information for
percentSales, they would type "Sales". How can I take this input into a
function and refer to the percentSales range. I tried percent&"Sales", but
this is not working. It errors out because it is not refering to the range,
but just the text "percentSales". Below is an example of what I am doing.
What can I do to take the input and refer to the named range.

What I would like to happen
=INDEX(percentSales,MATCH(A1&C1&B1,rangeEntity&ran geMonth&rangeCCY,0))

What is happening
=INDEX("percentSales",MATCH(A1&C1&B1,rangeEntity&r angeMonth&rangeCCY,0))

Thanks,
John
  #2   Report Post  
Gary''s Student
 
Posts: n/a
Default

Forget the quotation marks.

To add cells A1 through A6 we use
=sum(A1:A6)

If we defined A1:A6 as example1, then

=SUM(example1)

will work, not =SUM("example1")
--
Gary''s Student


"spartanmba" wrote:

Hello,

I have three named ranges (percentSales,percentMaterial,percentLabor). When
a user types into an account cell and wants to retrieve information for
percentSales, they would type "Sales". How can I take this input into a
function and refer to the percentSales range. I tried percent&"Sales", but
this is not working. It errors out because it is not refering to the range,
but just the text "percentSales". Below is an example of what I am doing.
What can I do to take the input and refer to the named range.

What I would like to happen
=INDEX(percentSales,MATCH(A1&C1&B1,rangeEntity&ran geMonth&rangeCCY,0))

What is happening
=INDEX("percentSales",MATCH(A1&C1&B1,rangeEntity&r angeMonth&rangeCCY,0))

Thanks,
John

  #3   Report Post  
spartanmba
 
Posts: n/a
Default

The issue is I am trying to dynamically refer to the defined name. If you
use evaluate formula on the audit toolbar you will see that instead of seeing
a dyamically referenced range you will see just text.

"Gary''s Student" wrote:

Forget the quotation marks.

To add cells A1 through A6 we use
=sum(A1:A6)

If we defined A1:A6 as example1, then

=SUM(example1)

will work, not =SUM("example1")
--
Gary''s Student


"spartanmba" wrote:

Hello,

I have three named ranges (percentSales,percentMaterial,percentLabor). When
a user types into an account cell and wants to retrieve information for
percentSales, they would type "Sales". How can I take this input into a
function and refer to the percentSales range. I tried percent&"Sales", but
this is not working. It errors out because it is not refering to the range,
but just the text "percentSales". Below is an example of what I am doing.
What can I do to take the input and refer to the named range.

What I would like to happen
=INDEX(percentSales,MATCH(A1&C1&B1,rangeEntity&ran geMonth&rangeCCY,0))

What is happening
=INDEX("percentSales",MATCH(A1&C1&B1,rangeEntity&r angeMonth&rangeCCY,0))

Thanks,
John

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
#VALUE! On An Array Formula Referencing a Range Outside The Workbo paige Excel Discussion (Misc queries) 5 September 9th 05 12:05 AM
Match function...random search? Les Excel Worksheet Functions 10 July 28th 05 11:54 AM
Defined range using more than one column Pat Excel Discussion (Misc queries) 5 January 18th 05 02:33 PM
Defined range problem Pat Excel Discussion (Misc queries) 8 January 17th 05 11:25 AM
Defined range difficulty Pat Excel Discussion (Misc queries) 7 January 16th 05 09:52 PM


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