Getting values from names by reference

C

Charlie Smith

I am looking to get a value from a name created by concatination. For Example
I have a Column with January in B2 and a Row with Income in A4. I have a
named reference of Income with a scope of January. I also have the other
months as well.
I want to create the reference [CONCATENATE(B$2,"!",$A4)] and get the value
of that reference in the cell.
If I use indirect, I get a reference error. Anyone have any ideas?
 
D

Dave Peterson

Maybe...

=indirect("'" & b$2 & "'!a4")

But I'm confused about this Row in A4. I'm assuming that you meant an address
or a range name????

If this doesn't help, you may want to share the values that you have in each of
those cells. (January isn't just the result of a date that's formatted to only
show the month name, right???)

Charlie said:
I am looking to get a value from a name created by concatination. For Example
I have a Column with January in B2 and a Row with Income in A4. I have a
named reference of Income with a scope of January. I also have the other
months as well.
I want to create the reference [CONCATENATE(B$2,"!",$A4)] and get the value
of that reference in the cell.
If I use indirect, I get a reference error. Anyone have any ideas?
 
C

Charlie Smith

A4 is "Income" and B2 is "January"
On the January Sheet I have a named cell of Income.
I want to create a formula that gets the value from the reference but I want
to be able to use the formula across the spreadsheet.
January!Income February!Income etc
January!Expense February!Expense etc
etc.
With Column A being the name and Row 2 being the sheet names, I should be
able to get the values withut having to enter the name directly into the cell.


Dave Peterson said:
Maybe...

=indirect("'" & b$2 & "'!a4")

But I'm confused about this Row in A4. I'm assuming that you meant an address
or a range name????

If this doesn't help, you may want to share the values that you have in each of
those cells. (January isn't just the result of a date that's formatted to only
show the month name, right???)

Charlie said:
I am looking to get a value from a name created by concatination. For Example
I have a Column with January in B2 and a Row with Income in A4. I have a
named reference of Income with a scope of January. I also have the other
months as well.
I want to create the reference [CONCATENATE(B$2,"!",$A4)] and get the value
of that reference in the cell.
If I use indirect, I get a reference error. Anyone have any ideas?
 
D

Dave Peterson

Does this work ok?

=indirect("'" & b$2 & "'!" & a$4)

Charlie said:
A4 is "Income" and B2 is "January"
On the January Sheet I have a named cell of Income.
I want to create a formula that gets the value from the reference but I want
to be able to use the formula across the spreadsheet.
January!Income February!Income etc
January!Expense February!Expense etc
etc.
With Column A being the name and Row 2 being the sheet names, I should be
able to get the values withut having to enter the name directly into the cell.

Dave Peterson said:
Maybe...

=indirect("'" & b$2 & "'!a4")

But I'm confused about this Row in A4. I'm assuming that you meant an address
or a range name????

If this doesn't help, you may want to share the values that you have in each of
those cells. (January isn't just the result of a date that's formatted to only
show the month name, right???)

Charlie said:
I am looking to get a value from a name created by concatination. For Example
I have a Column with January in B2 and a Row with Income in A4. I have a
named reference of Income with a scope of January. I also have the other
months as well.
I want to create the reference [CONCATENATE(B$2,"!",$A4)] and get the value
of that reference in the cell.
If I use indirect, I get a reference error. Anyone have any ideas?
 
C

Charlie Smith

=INDIRECT("'" & B$2 & "'!" & A$4) gets a #REF error
Still trying to figure out why.


Dave Peterson said:
Does this work ok?

=indirect("'" & b$2 & "'!" & a$4)

Charlie said:
A4 is "Income" and B2 is "January"
On the January Sheet I have a named cell of Income.
I want to create a formula that gets the value from the reference but I want
to be able to use the formula across the spreadsheet.
January!Income February!Income etc
January!Expense February!Expense etc
etc.
With Column A being the name and Row 2 being the sheet names, I should be
able to get the values withut having to enter the name directly into the cell.

Dave Peterson said:
Maybe...

=indirect("'" & b$2 & "'!a4")

But I'm confused about this Row in A4. I'm assuming that you meant an address
or a range name????

If this doesn't help, you may want to share the values that you have in each of
those cells. (January isn't just the result of a date that's formatted to only
show the month name, right???)

Charlie Smith wrote:

I am looking to get a value from a name created by concatination. For Example
I have a Column with January in B2 and a Row with Income in A4. I have a
named reference of Income with a scope of January. I also have the other
months as well.
I want to create the reference [CONCATENATE(B$2,"!",$A4)] and get the value
of that reference in the cell.
If I use indirect, I get a reference error. Anyone have any ideas?
 
C

Charlie Smith

Found the issue - the indirect works just fune, It's the name I mis-spelled.
Thanks

Dave Peterson said:
Does this work ok?

=indirect("'" & b$2 & "'!" & a$4)

Charlie said:
A4 is "Income" and B2 is "January"
On the January Sheet I have a named cell of Income.
I want to create a formula that gets the value from the reference but I want
to be able to use the formula across the spreadsheet.
January!Income February!Income etc
January!Expense February!Expense etc
etc.
With Column A being the name and Row 2 being the sheet names, I should be
able to get the values withut having to enter the name directly into the cell.

Dave Peterson said:
Maybe...

=indirect("'" & b$2 & "'!a4")

But I'm confused about this Row in A4. I'm assuming that you meant an address
or a range name????

If this doesn't help, you may want to share the values that you have in each of
those cells. (January isn't just the result of a date that's formatted to only
show the month name, right???)

Charlie Smith wrote:

I am looking to get a value from a name created by concatination. For Example
I have a Column with January in B2 and a Row with Income in A4. I have a
named reference of Income with a scope of January. I also have the other
months as well.
I want to create the reference [CONCATENATE(B$2,"!",$A4)] and get the value
of that reference in the cell.
If I use indirect, I get a reference error. Anyone have any ideas?
 

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