Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Getting values from names by reference

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?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Getting values from names by reference

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?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Getting values from names by reference

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" wrote:

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?


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Getting values from names by reference

Does this work ok?

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

Charlie Smith wrote:

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" wrote:

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?


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Getting values from names by reference

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


"Dave Peterson" wrote:

Does this work ok?

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

Charlie Smith wrote:

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" wrote:

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?

--

Dave Peterson


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Getting values from names by reference

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

"Dave Peterson" wrote:

Does this work ok?

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

Charlie Smith wrote:

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" wrote:

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?

--

Dave Peterson


--

Dave Peterson

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
reference other worksheets via variable names Huggy Excel Worksheet Functions 4 June 26th 08 05:52 AM
Fixing sheet names is a 3D reference Davidt New Users to Excel 4 January 26th 08 05:43 PM
worksheet names in drop down list for reference Mr. C Excel Discussion (Misc queries) 2 January 16th 07 04:04 AM
reference to range names duane Excel Discussion (Misc queries) 3 August 2nd 06 10:15 PM
reference to sheets without using sheet names Wes Excel Worksheet Functions 13 September 3rd 05 08:15 PM


All times are GMT +1. The time now is 05:36 PM.

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"