+ Reply to Thread
Results 1 to 2 of 2

IF statements and VLOOKUP

  1. #1
    Registered User
    Join Date
    01-15-2019
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2

    IF statements and VLOOKUP

    Hello,

    I am currently trying to build a file that will pull different numbers on different tables using IF and VLOOKUP. I currently have it pulling the correct numbers for just two tables but I have several more tables to use. I am getting an error saying Im using too many arguements.

    =IF(B4=150,VLOOKUP(B3,'sheet2'!B3:U23,3),IF(B4=300,'sheet2'!B28:U48,3),IF(B4=400,'sheet2'!B53:R73,3)))

    I also have to get values for 5 more tables. What's the best way to approach this?

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: IF statements and VLOOKUP

    You need to have VLOOKUP for the middle and third IF, as well as having a FALSE value if none of the IFs are met:

    =IF(B4=150,VLOOKUP(B3,'sheet2'!B3:U23,3),IF(B4=300,VLOOKUP(B3,'sheet2'!B28:U48,3),IF(B4=400,VLOOKUP(B3,'sheet2'!B53:R73,3),"")))

    Hope this helps.

    Pete

+ 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] Using IF and AND statements with Vlookup
    By Bobh42 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-22-2018, 10:33 PM
  2. using vlookup & if/then statements together
    By James Mac1971 in forum Excel General
    Replies: 1
    Last Post: 08-06-2017, 01:10 AM
  3. VLookup with IF statements
    By MattKoleczko in forum Excel General
    Replies: 4
    Last Post: 11-28-2016, 08:45 PM
  4. Excel 2007 : IF/AND Statements and VLookup
    By dchuck in forum Excel General
    Replies: 9
    Last Post: 09-07-2011, 04:48 PM
  5. Can you use AND statements with VLOOKUP?
    By trfoster in forum Excel General
    Replies: 1
    Last Post: 04-12-2010, 02:32 PM
  6. Vlookup or IF statements
    By vasto in forum Excel General
    Replies: 17
    Last Post: 12-08-2008, 08:10 PM
  7. [SOLVED] VLOOKUP + IF STATEMENTS
    By in forum Excel General
    Replies: 7
    Last Post: 04-01-2005, 04:06 AM

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