Referencing defined range

G

Guest

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&rangeMonth&rangeCCY,0))

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

Thanks,
John
 
G

Guest

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")
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top