+ Reply to Thread
Results 1 to 6 of 6

vlookup dynamic range

  1. #1
    Forum Contributor
    Join Date
    07-22-2013
    Location
    Sibiu
    MS-Off Ver
    Excel 2007
    Posts
    114

    vlookup dynamic range

    Hey guys I need some help in finding the right formula for my situation.
    I have 3 separate sheets: A, B, C. On each sheet i have two columns one with name one with price.
    I want to create another sheet in which i can have one cell with name and to the right a cell with a formula that will retrieve the price
    test.xlsx

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: vlookup dynamic range

    Hi
    use this formula
    =IFERROR(VLOOKUP(C4,A!C3:D6,2,FALSE),IFERROR(VLOOKUP(C4,B!C3:D6,2,FALSE),IFERROR(VLOOKUP(C4,'C'!C3:D6,2,FALSE),"")))
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Regards

  3. #3
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: vlookup dynamic range

    Hi !

    Try something like this..

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    test.xlsx
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: vlookup dynamic range

    Try this...
    =VLOOKUP(C4,IF(ISERROR(MATCH(C4,A!$C$3:$C$6,0)),IF(ISERROR(MATCH(C4,B!$C$3:$C$6,0)),'C'!$C$3:$D$6,B!$C$3:$D$6),A!$C$3:$D$6),2,0)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Contributor
    Join Date
    07-22-2013
    Location
    Sibiu
    MS-Off Ver
    Excel 2007
    Posts
    114

    Re: vlookup dynamic range

    thanks for the help guys ... awesome as always.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: vlookup dynamic range

    Happy to help and thanks for the feedback

+ 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] Vlookup on Dynamic Range
    By hamidxa in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-20-2014, 03:49 PM
  2. [SOLVED] VLookup using a dynamic range
    By Excelgent in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-03-2013, 01:53 AM
  3. Is this possible - type of Vlookup dynamic range
    By bottera in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 12-04-2012, 10:49 AM
  4. VLookup in Dynamic Range
    By irish1two3 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-19-2007, 03:00 AM
  5. vlookup in VBA (dynamic range)
    By Kayote in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-16-2006, 01:15 PM
  6. [SOLVED] Dynamic range for Table_array in a VLOOKUP.
    By DaveO in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-12-2005, 12:05 PM
  7. Dynamic Range for Function (Vlookup etc)
    By IshtiaqM in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-27-2005, 05:08 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