+ Reply to Thread
Results 1 to 4 of 4

Changing Range Name Within Formula From Another Cells Information

  1. #1
    Registered User
    Join Date
    07-16-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    7

    Changing Range Name Within Formula From Another Cells Information

    I have 3 Ranges (Range1, Range2 and Range3)

    I can easily type a formulas to grad data from either Ranged areas =VLOOKUP(1,Range1,2)

    What I would like to do is be able to change the "Range1" within the formula from another cell in the worksheet.

    =VLOOKUP(1,K11,2) (K11 cell = Range2) but this returns an error #N/A

    Image attached as a reference.



    Range-Reference.png

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,277

    Re: Changing Range Name Within Formula From Another Cells Information

    Post your file with required result. not pict.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,646

    Re: Changing Range Name Within Formula From Another Cells Information

    Define 3 name "Range1", "Range2", "Range3" by Ctrl-F3 then choose the range and titles.

    Assum K11 contain "Range1" (or 2,3)

    =VLOOKUP(1,INDIRECT(K11),2,0)

    With INDIRECT helps Excel to inteprete text string into cell reference.
    Quang PT

  4. #4
    Registered User
    Join Date
    07-16-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Changing Range Name Within Formula From Another Cells Information

    Quote Originally Posted by avk View Post
    Post your file with required result. not pict.
    Sorry about that, thought it would be easier showing via a image than file.



    Quote Originally Posted by bebo021999 View Post
    Define 3 name "Range1", "Range2", "Range3" by Ctrl-F3 then choose the range and titles.

    Assum K11 contain "Range1" (or 2,3)

    =VLOOKUP(1,INDIRECT(K11),2,0)

    With INDIRECT helps Excel to inteprete text string into cell reference.
    Thank you! Works perfectly. I'll have to keep that "INDIRECT" in the mind when I have other ideas!


    Not sure how this works, but if I need to make it as solved or someone else. As my problem has now been solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Changing all formula references to absolute in a range of cells
    By warthog34 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-08-2013, 08:16 PM
  2. Replies: 1
    Last Post: 04-21-2013, 09:52 AM
  3. Changing all formula references to absolute in a range of cells
    By mtench in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-21-2012, 10:57 PM
  4. Changing part of a formula in a range of cells
    By Glyndo in forum Excel General
    Replies: 5
    Last Post: 04-20-2009, 05:06 PM
  5. [SOLVED] Pasting a formula in multiple cells without changing the range
    By Jeff Wheeler in forum Excel General
    Replies: 3
    Last Post: 06-15-2006, 11:55 AM
  6. [SOLVED] Changing the displayed information in a series of cells.
    By Fleone in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2005, 07:06 PM

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