+ Reply to Thread
Results 1 to 4 of 4

Using the text from a cell as a range name in a formula

  1. #1
    Fletch
    Guest

    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. #2
    Bob Umlas, Excel MVP
    Guest

    RE: Using the text from a cell as a range name in a formula

    =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. #3
    Fletch
    Guest

    RE: Using the text from a cell as a range name in a formula

    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. #4
    Biff
    Guest

    Re: Using the text from a cell as a range name in a formula

    Hi!

    Try this:

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

    Where A2 = city_name and city_name is the named range.

    Biff

    "Fletch" <Fletch@discussions.microsoft.com> wrote in message
    news:AB85FD87-7A32-45EE-8164-330A84524D7A@microsoft.com...
    >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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1