Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Fletch
 
Posts: n/a
Default Using the text from a cell as a range name in a formula

I would like to create a forumla that uses the text from column A to be the
source for the named range in my forumla in column B.

For example, I have a spreadsheet where coulmn A has rows each with the name
of a city (branch location). I have a seperate table of data that has named
ranges (named by city). Can I write a LOOKUP formula that uses the text in
column A to be the source of the named range inside the formula. Referring
to the text in column A would save me the effort of typing the named range in
each formula

FYI - I don't think A pivot table would work for creating this spreadsheet
because the data is exported from another application and isn't in a friendly
format.
  #2   Report Post  
Bob Umlas, Excel MVP
 
Posts: n/a
Default

=Lookup(indirect(A1),...)
or
=LOOKUP(E3,INDIRECT(A1),...)
etc.

Indirect function treats text as references.
Bob Umlas

"Fletch" wrote:

I would like to create a forumla that uses the text from column A to be the
source for the named range in my forumla in column B.

For example, I have a spreadsheet where coulmn A has rows each with the name
of a city (branch location). I have a seperate table of data that has named
ranges (named by city). Can I write a LOOKUP formula that uses the text in
column A to be the source of the named range inside the formula. Referring
to the text in column A would save me the effort of typing the named range in
each formula

FYI - I don't think A pivot table would work for creating this spreadsheet
because the data is exported from another application and isn't in a friendly
format.

  #3   Report Post  
Fletch
 
Posts: n/a
Default

Thanks!


"Bob Umlas, Excel MVP" wrote:

=Lookup(indirect(A1),...)
or
=LOOKUP(E3,INDIRECT(A1),...)
etc.

Indirect function treats text as references.
Bob Umlas

"Fletch" wrote:

I would like to create a forumla that uses the text from column A to be the
source for the named range in my forumla in column B.

For example, I have a spreadsheet where coulmn A has rows each with the name
of a city (branch location). I have a seperate table of data that has named
ranges (named by city). Can I write a LOOKUP formula that uses the text in
column A to be the source of the named range inside the formula. Referring
to the text in column A would save me the effort of typing the named range in
each formula

FYI - I don't think A pivot table would work for creating this spreadsheet
because the data is exported from another application and isn't in a friendly
format.

  #4   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Try this:

=VLOOKUP(lookup_value,INDIRECT(A2),2,0)

Where A2 = city_name and city_name is the named range.

Biff

"Fletch" wrote in message
...
I would like to create a forumla that uses the text from column A to be the
source for the named range in my forumla in column B.

For example, I have a spreadsheet where coulmn A has rows each with the
name
of a city (branch location). I have a seperate table of data that has
named
ranges (named by city). Can I write a LOOKUP formula that uses the text
in
column A to be the source of the named range inside the formula.
Referring
to the text in column A would save me the effort of typing the named range
in
each formula

FYI - I don't think A pivot table would work for creating this spreadsheet
because the data is exported from another application and isn't in a
friendly
format.



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
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
Adding contents of one cell to a range of cells. CLJinVA Excel Worksheet Functions 1 February 10th 05 10:19 PM
Copy text from same cell on every sheet to title sheet? Jon Excel Discussion (Misc queries) 2 February 9th 05 03:11 PM
Formatting a cell as "text" in the number catagory. Ed Excel Worksheet Functions 3 December 7th 04 07:12 PM
Returning a Value to a Cell Based on a Range of Uncertain Size amc422 Excel Worksheet Functions 7 November 14th 04 03:03 PM


All times are GMT +1. The time now is 09:28 PM.

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"