+ Reply to Thread
Results 1 to 5 of 5

IF and LOOKUPs

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    IF and LOOKUPs

    Evening,

    I use the following formulas for Lookups:

    =IFERROR(VLOOKUP(G5,LOOKUPS!$AG$19:$AH$218,2),"")

    However I would like to amend this so I have a single formula that:

    1. Looks in cell A5 and if H is the value then uses =IFERROR(VLOOKUP(G5,LOOKUPS!$AG$19:$AH$218,2),"")
    2. However if instead in cell A5 F is the value then it uses =IFERROR(VLOOKUP(G5,LOOKUPS!$AS$19:$AT$218,2),"")

    Any help combining these two formulas to do this would be greatly appreciated.

    Thanks
    Last edited by Cmorgan; 01-08-2016 at 02:06 PM.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: IF and LOOKUPs

    Maybe like this

    Formula: copy to clipboard
    =IFERROR(VLOOKUP(G5,LOOKUPS!$AG$19:$AH$218,2),IFERROR(VLOOKUP(G5,LOOKUPS!$AS$19:$AT$218,2),""))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Re: IF and LOOKUPs

    Many thanks but how does it know to check A5 for either the value H or F to decide which lookup to use?

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,077

    Re: IF and LOOKUPs

    Shouldn't it be this?

    =IFERROR(VLOOKUP(G5,IF(A5="H",LOOKUPS!$AG$19:$AH$218,LOOKUPS!$AS$19:$AT$218),2),"")
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  5. #5
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Re: IF and LOOKUPs

    Many thanks, I'll give this a go.

+ 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. Lookups?
    By VikkiIgg in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-10-2015, 06:11 AM
  2. More than Multiple Lookups: Conditional Multiple Lookups
    By mohitspamz in forum Excel General
    Replies: 6
    Last Post: 11-01-2009, 03:32 AM
  3. Lookups
    By rolltyde12 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-21-2007, 01:50 PM
  4. Lookups
    By rolltyde12 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-17-2007, 08:48 AM
  5. Maybe I need help with Lookups??
    By garry05 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-07-2005, 10:30 PM
  6. Replies: 2
    Last Post: 05-16-2005, 12:07 AM
  7. Replies: 1
    Last Post: 05-15-2005, 07:07 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