+ Reply to Thread
Results 1 to 3 of 3

Using Vlookup to two different cell references

  1. #1
    Registered User
    Join Date
    09-28-2014
    Location
    Lutz, Florida
    MS-Off Ver
    2010
    Posts
    1

    Question Using Vlookup to two different cell references

    I may be overthinking this but I'm trying to get my formula to look at the cell below if the results come back with "NA". Is this possible?
    In this case, if B2 comes back as "NA", then I want the formula to point to B3 instead.



    IF(ISNA(VLOOKUP($B$2,MPS!$D$6:$AF$2492,2,TRUE)),(VLOOKUP($B$3,MPS!$D$6:$AF$2492,2,0)))

  2. #2
    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
    52,939

    Re: Using Vlookup to two different cell references

    Have you tried your formula, and if it didnt what, what did you get? It looks like it should work. You can shorten it a bit by this...

    IFERROR(VLOOKUP($B$2,MPS!$D$6:$AF$2492,2,TRUE),VLOOKUP($B$3,MPS!$D$6:$AF$2492,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

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Using Vlookup to two different cell references

    The correct way of doing this is what is suggested by Ford.
    But your formula didn't work because you didn't provide the false condition in the IF statement. Your formula should be like this....
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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. Copy cell contents between tabs provided cell references match (VLOOKUP?)
    By jparnell8839 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-29-2014, 09:05 AM
  2. [SOLVED] Using VLOOKUP with cell references
    By JamesFletcher in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2013, 05:38 AM
  3. vlookup of multiple references in same cell
    By darthshani in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-11-2009, 01:17 PM
  4. vlookup using absolute cell references in VBA
    By Colin Vicary in forum Excel General
    Replies: 3
    Last Post: 01-23-2007, 09:45 AM
  5. vlookup with linked cell references
    By JAB in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-20-2006, 01:00 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